-
Notifications
You must be signed in to change notification settings - Fork 82
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
Update DW UI tests to align with the latest Dashboard UI improvements #2160
Update DW UI tests to align with the latest Dashboard UI improvements #2160
Conversation
Robot Results
|
... Get Element Attribute ${element} textContent | ||
Append To List ${text_list} ${text} | ||
Run Keyword If '${status}' == 'PASS' Append To List ${text_list} ${text} |
Check warning
Code scanning / Robocop
'{{ statement_name }}' is deprecated since Robot Framework version {{ version }}, use '{{ alternative }}' instead Warning test
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
${DISTRIBUITED_WORKLOAD_METRICS_TITLE_XP}= xpath=//h1[text()="Distributed Workload Metrics"] | ||
${DISTRIBUITED_WORKLOAD_METRICS_TITLE_XP}= xpath=//h1[@data-testid="app-page-title"] |
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.
This makes the verification too common since every page has this app-page-title
id.
Look at
ods-ci/ods_ci/tests/Tests/0600__distributed_workloads/test-distributed-workloads-metrics-ui.robot
Line 36 in 9d28a61
Page Should Contain Element ${DISTRIBUITED_WORKLOAD_METRICS_TITLE_XP} |
It tries to verify that we're in Distributed Workload Metrics.
btw, maybe you can also test it with Wait For Dashboard Page Title Distributed Workload Metrics
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.
@manosnoam Thanks for reviewing. Added Wait For Dashboard Page Title Distributed Workload Metrics
to verify
2d033bb
to
1593c59
Compare
Quality Gate passedIssues Measures |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ChughShilpa, manosnoam, Srihari1192, sutaakar The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
58b325d
into
red-hat-data-services:master
closes https://issues.redhat.com/browse/RHOAIENG-17341
Get All Text Under Element
method to ensure it returns a properly processed and accurate list of text values.