From eb68656d71bb6ac8d4a78bd5e257d92ba48f99ca Mon Sep 17 00:00:00 2001 From: Conor O'Malley <97108400+ConorOM1@users.noreply.github.com> Date: Wed, 23 Oct 2024 06:21:30 +0100 Subject: [PATCH] RHOAIENG-14857 Update the test to implement data-testids (#1954) update using data-testids --- .../ODH/ODHDashboard/ODHDashboardSettingsRuntimes.resource | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ods_ci/tests/Resources/Page/ODH/ODHDashboard/ODHDashboardSettingsRuntimes.resource b/ods_ci/tests/Resources/Page/ODH/ODHDashboard/ODHDashboardSettingsRuntimes.resource index 398a891b5..4a8d47c61 100644 --- a/ods_ci/tests/Resources/Page/ODH/ODHDashboard/ODHDashboardSettingsRuntimes.resource +++ b/ods_ci/tests/Resources/Page/ODH/ODHDashboard/ODHDashboardSettingsRuntimes.resource @@ -46,13 +46,13 @@ Serving Runtime Template Should Be Listed [Arguments] ${displayed_name} ${serving_platform} Run Keyword And Continue On Failure ... Wait Until Page Contains Element - ... //td[@data-label="Name"]//span[text()="${displayed_name}"] + ... //*[@data-testid="serving-runtime ovms-ods-ci"] ... timeout=10s Run Keyword And Continue On Failure ... Wait Until Page Contains Element - ... xpath=//td[@data-label="Name"]//span[text()="${displayed_name}"]/ancestor::td/following-sibling::td[@data-label="Serving platforms supported"] # robocop: disable + ... //*[@data-testid="serving-runtime ovms-ods-ci"]//ancestor::*[@data-testid="serving-runtime-platform-label"] # robocop: disable ${actual_platform_labels_str}= Get Text - ... xpath=//td[@data-label="Name"]//span[text()="${displayed_name}"]/ancestor::td/following-sibling::td[@data-label="Serving platforms supported"] # robocop: disable + ... //*[@data-testid="serving-runtime ovms-ods-ci"]//ancestor::*[@data-testid="serving-runtime-platform-label"] # robocop: disable ${actual_platform_labels}= Split To Lines ${actual_platform_labels_str} IF "${serving_platform}" == "both" Run Keyword And Continue On Failure Length Should Be ${actual_platform_labels} ${2}