Skip to content
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

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

Srihari1192
Copy link
Contributor

closes https://issues.redhat.com/browse/RHOAIENG-17341

  • Updated DW UI tests to align with the latest Dashboard UI improvements in the new release
  • Updated the Get All Text Under Element method to ensure it returns a properly processed and accurate list of text values.
  • Increased Timeout to 5 minutes for Workload Metrics Ray workload tests as some environment requires more time to pods get running
  • Tests are fine here /job/rhoai-test-flow/2226/

Copy link
Contributor

github-actions bot commented Jan 7, 2025

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
592 0 0 592 100

sutaakar
sutaakar previously approved these changes Jan 7, 2025
... 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

'Run Keyword If' is deprecated since Robot Framework version 5.*, use 'IF' instead
ChughShilpa
ChughShilpa previously approved these changes Jan 8, 2025
Copy link
Contributor

@ChughShilpa ChughShilpa left a 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"]
Copy link
Contributor

@manosnoam manosnoam Jan 8, 2025

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

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

Copy link
Contributor Author

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

@Srihari1192 Srihari1192 dismissed stale reviews from ChughShilpa and sutaakar via 1593c59 January 9, 2025 11:36
@openshift-ci openshift-ci bot removed the lgtm label Jan 9, 2025
Copy link

sonarqubecloud bot commented Jan 9, 2025

Copy link

openshift-ci bot commented Jan 12, 2025

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@manosnoam manosnoam merged commit 58b325d into red-hat-data-services:master Jan 12, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants