Skip to content

Commit

Permalink
RHOAIENG-14857 Update the test to implement data-testids (red-hat-dat…
Browse files Browse the repository at this point in the history
…a-services#1954)

update using data-testids
  • Loading branch information
ConorOM1 authored and tonyxrmdavidson committed Oct 25, 2024
1 parent f66f15c commit eb68656
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit eb68656

Please sign in to comment.