search button not getting clicked on activation key page due to different locator - #1939
Merged
LadislavVasina1 merged 2 commits intoAug 4, 2025
Conversation
… to wrong locator Reason: - We have search button on activation key page - But other pages have search arrow and currently we are using locator of search arrow Fix : - We can add locator with or condition to avoid breaking existing test cases - PF5Button(locator=".//button[@aria-label='Search'] | .//button[span[normalize-space(.)='Search']]")
Contributor
Reviewer's GuideThis PR enhances the search button locator to support both activation key and other pages without breaking existing tests, and adds a wait step to the activation key creation workflow to ensure the form is ready before interaction. Sequence diagram for activation key creation with wait stepsequenceDiagram
actor Tester
participant ActivationKeyEntity
participant View
Tester->>ActivationKeyEntity: create(values)
ActivationKeyEntity->>View: navigate_to('New')
ActivationKeyEntity->>View: wait_displayed()
ActivationKeyEntity->>View: fill(values)
ActivationKeyEntity->>View: submit.click()
Class diagram for updated Search widget and ActivationKeyEntityclassDiagram
class Search {
+PF5Button search_button
+Text clear_button
}
class PF5Button {
+locator
}
class ActivationKeyEntity {
+create(values)
}
Search --> PF5Button : uses
ActivationKeyEntity --> "1" View : uses
class View {
+wait_displayed()
+fill(values)
+submit
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
jnagare-redhat
requested review from
ColeHiggins2,
LadislavVasina1 and
vijaysawant
July 31, 2025 13:20
Contributor
There was a problem hiding this comment.
Hey @jnagare-redhat - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
for more information, see https://pre-commit.ci
Contributor
Author
|
trigger: test-robottelo |
Contributor
Author
|
trigger: test-robottelo |
JacobCallahan
approved these changes
Aug 1, 2025
LadislavVasina1
approved these changes
Aug 4, 2025
LadislavVasina1
left a comment
Contributor
There was a problem hiding this comment.
ACK, good addition @jnagare-redhat!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Search button not getting clicked on activation key page due to different locator
Reason:
Summary by Sourcery
Fix search button locator to support both activation key and other pages and ensure activation key view is displayed before interaction
Bug Fixes:
Enhancements: