Skip to content

Commit

Permalink
Update DW UI tests to align with the latest Dashboard UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Srihari1192 committed Jan 7, 2025
1 parent 1157066 commit 2d033bb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ods_ci/tests/Resources/Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ Get All Text Under Element
${elements}= Get WebElements ${parent_element}
${text_list}= Create List
FOR ${element} IN @{elements}
${text}= Run Keyword And Ignore Error
${status} ${text}= Run Keyword And Ignore Error
... 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
END
RETURN ${text_list}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Resource ../../Common.robot

*** Variables ***
${PROJECT_XP}= xpath=//div[text()='Project']
${DISTRIBUITED_WORKLOAD_METRICS_TITLE_XP}= xpath=//h1[text()="Distributed Workload Metrics"]
${DISTRIBUITED_WORKLOAD_METRICS_TITLE_XP}= xpath=//h1[@data-testid="app-page-title"]
${DISTRIBUITED_WORKLOAD_METRICS_TEXT_XP}= xpath=//div[text()='Monitor the metrics of your active resources.']
${PROJECT_METRICS_TAB_XP}= xpath=//button[@aria-label="Project metrics tab"]
${WORKLOAD_STATUS_TAB_XP}= xpath=//button[@aria-label="Distributed workload status tab"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,11 @@ Verify The Workload Metrics By Submitting Ray Workload
Open Distributed Workload Metrics Home Page
Select Distributed Workload Project By Name ${PRJ_TITLE}
Select Refresh Interval 15 seconds
# verifying workload metrics in Dark mode
Click Button xpath=//button[@aria-label="dark theme"]
Wait Until Element Is Visible ${DISTRIBUITED_WORKLOAD_RESOURCE_METRICS_TITLE_XP} timeout=20
Wait For Job With Status ${RAY_CLUSTER_NAME} Admitted 30
Wait For Job With Status ${RAY_CLUSTER_NAME} Running 180
Wait For Job With Status ${RAY_CLUSTER_NAME} Running 300

${cpu_requested} = Get CPU Requested ${PRJ_TITLE} ${LOCAL_QUEUE_NAME}
${memory_requested} = Get Memory Requested ${PRJ_TITLE} ${LOCAL_QUEUE_NAME} RayCluster
Expand Down

0 comments on commit 2d033bb

Please sign in to comment.