-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix "Click Action From Actions Menu" and CustomServingRuntime test #1117
Conversation
Robot Results
|
99df75b
to
0437118
Compare
...tests/Tests/400__ods_dashboard/415__ods_dashboard_projects/415__ods_dashboard_projects.robot
Fixed
Show fixed
Hide fixed
Wait Until Page Contains Element xpath=//tr[td[@data-label="Name"]//*[text()="${item_title}"]]/td[@class="pf-v5-c-table__action"]/div/ul/li/button[text()="${action}"] | ||
Click Element xpath=//tr[td[@data-label="Name"]//*[text()="${item_title}"]]/td[@class="pf-v5-c-table__action"]/div/ul/li/button[text()="${action}"] | ||
Wait Until Page Contains Element xpath=//tr[td[@data-label="Name"]//*[text()="${item_title}"]]//td//li//*[text()="${action}"] | ||
Click Element xpath=//tr[td[@data-label="Name"]//*[text()="${item_title}"]]//td//li//*[text()="${action}"] |
Check warning
Code scanning / Robocop
File has too many lines ({{ lines_count }}/{{max_allowed_count }}) Warning test
PR Validation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -837,9 +837,9 @@ Handle Deletion Confirmation Modal | |||
Click Action From Actions Menu | |||
[Documentation] Clicks an action from Actions menu (3-dots menu on the right) | |||
[Arguments] ${item_title} ${action} ${item_type}=${NONE} | |||
Click Element xpath=//tr[td[@data-label="Name"]//*[text()="${item_title}"]]/td[@class="pf-v5-c-table__action"]/div/button[@aria-label="Actions"] | |||
Click Element xpath=//tr[td[@data-label="Name"]//*[text()="${item_title}"]]/td[contains(@class,"-table__action")]//button[@aria-label="Kebab toggle"] # robocop: disable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to self, for the future we should have keywords for clicking common paternfly UI elements. Locators of this style appear many times. @aria-label="Kebab toggle"
is beginning to hound my dreams.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Click Action From Actions Menu
, like that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep I agree, that would help also reducing the code duplication. However I don't kow now from top of my head some more keywords like this one we could have. But if you find any, welcome to have it in a common place to be re-used
|
Signed-off-by: Jiri Daněk <[email protected]>
Signed-off-by: Jiri Daněk <[email protected]>
Signed-off-by: Jiri Daněk <[email protected]>
* Fix ODS-2206, ODS-2226 for ODH 2.6 The Pipelines-related UI has changed in the Dashboard Signed-off-by: Jiri Daněk <[email protected]> * fixup contains Signed-off-by: Jiri Daněk <[email protected]> * fixup paths Signed-off-by: Jiri Daněk <[email protected]> * fixup texts Signed-off-by: Jiri Daněk <[email protected]> * fixup use kebab menu locators from #1117 Signed-off-by: Jiri Daněk <[email protected]
Fixing
Verify RHODS Admins Can Delete A Custom Serving Runtime Template
which got broken after patternfly update.It involves fixing
Click Action From Actions Menu
kw