Skip to content

Commit

Permalink
Fix: new start and stop wb buttons (red-hat-data-services#1953)
Browse files Browse the repository at this point in the history
* fix: ODS-2206, wrong pipelines xpath

* fix: new start and stop wb buttons
  • Loading branch information
FedeAlonso authored and tonyxrmdavidson committed Oct 25, 2024
1 parent b46b195 commit f66f15c
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,7 @@ Start Workbench
${is_stopped}= Run Keyword And Return Status Workbench Status Should Be
... workbench_title=${workbench_title} status=${WORKBENCH_STATUS_STOPPED}
IF ${is_stopped} == ${TRUE}
Click Button xpath=//div[@data-testid="table-row-title"]//*[text()="${workbench_title}"]/ancestor::tr//button[@aria-label="Kebab toggle"]
Wait Until Element Is Visible xpath=//div[@data-testid="table-row-title"]//*[text()="${workbench_title}"]/ancestor::tr//button[@aria-label="Kebab toggle"]/following::div//span[text()="Start"] timeout=10
Click Element xpath=//div[@data-testid="table-row-title"]//*[text()="${workbench_title}"]/ancestor::tr//button[@aria-label="Kebab toggle"]/following::div//span[text()="Start"]
Click Button xpath=//div[@data-testid="table-row-title"]//*[text()="${workbench_title}"]/ancestor::tr//button[@data-testid="notebook-start-action"]
ELSE
Log msg=Cannot start ${workbench_title} workbench because it is not stopped.
END
Expand Down Expand Up @@ -407,9 +405,7 @@ Stop Workbench
${is_starting}= Run Keyword And Return Status Workbench Status Should Be
... workbench_title=${workbench_title} status=${WORKBENCH_STATUS_STARTING}
IF ${is_started} == ${TRUE} or ${is_starting} == ${TRUE}
Click Button xpath=//div[@data-testid="table-row-title"]//*[text()="${workbench_title}"]/ancestor::tr//button[@aria-label="Kebab toggle"]
Wait Until Element Is Visible xpath=//div[@data-testid="table-row-title"]//*[text()="${workbench_title}"]/ancestor::tr//button[@aria-label="Kebab toggle"]/following::div//span[text()="Stop"] timeout=10
Click Element xpath=//div[@data-testid="table-row-title"]//*[text()="${workbench_title}"]/ancestor::tr//button[@aria-label="Kebab toggle"]/following::div//span[text()="Stop"]
Click Button xpath=//div[@data-testid="table-row-title"]//*[text()="${workbench_title}"]/ancestor::tr//button[@data-testid="notebook-stop-action"]
Wait Until Generic Modal Appears
Handle Stop Workbench Confirmation Modal press_cancel=${press_cancel}
... from_running=${from_running}
Expand Down

0 comments on commit f66f15c

Please sign in to comment.