diff --git a/ods_ci/tests/Resources/Common.robot b/ods_ci/tests/Resources/Common.robot index 86ec52db2..417941f7b 100644 --- a/ods_ci/tests/Resources/Common.robot +++ b/ods_ci/tests/Resources/Common.robot @@ -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} END RETURN ${text_list} diff --git a/ods_ci/tests/Resources/Page/DistributedWorkloads/WorkloadMetricsUI.resource b/ods_ci/tests/Resources/Page/DistributedWorkloads/WorkloadMetricsUI.resource index 7d594ccbd..c1df908ce 100644 --- a/ods_ci/tests/Resources/Page/DistributedWorkloads/WorkloadMetricsUI.resource +++ b/ods_ci/tests/Resources/Page/DistributedWorkloads/WorkloadMetricsUI.resource @@ -7,7 +7,6 @@ Resource ../../Common.robot *** Variables *** ${PROJECT_XP}= xpath=//div[text()='Project'] -${DISTRIBUITED_WORKLOAD_METRICS_TITLE_XP}= xpath=//h1[text()="Distributed Workload Metrics"] ${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"] diff --git a/ods_ci/tests/Tests/0600__distributed_workloads/test-distributed-workloads-metrics-ui.robot b/ods_ci/tests/Tests/0600__distributed_workloads/test-distributed-workloads-metrics-ui.robot index 2bbab047f..2099caa63 100644 --- a/ods_ci/tests/Tests/0600__distributed_workloads/test-distributed-workloads-metrics-ui.robot +++ b/ods_ci/tests/Tests/0600__distributed_workloads/test-distributed-workloads-metrics-ui.robot @@ -31,9 +31,9 @@ Verify Workload Metrics Home page Contents [Tags] RHOAIENG-4837 ... Sanity DistributedWorkloads Training WorkloadsOrchestration Open Distributed Workload Metrics Home Page + Wait For Dashboard Page Title Distributed Workload Metrics Wait Until Element Is Visible ${DISTRIBUITED_WORKLOAD_METRICS_TEXT_XP} timeout=20 Wait Until Element Is Visible ${PROJECT_METRICS_TAB_XP} timeout=20 - Page Should Contain Element ${DISTRIBUITED_WORKLOAD_METRICS_TITLE_XP} Page Should Contain Element ${DISTRIBUITED_WORKLOAD_METRICS_TEXT_XP} Page Should Contain Element ${PROJECT_XP} Page Should Contain Element ${PROJECT_METRICS_TAB_XP} @@ -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