Skip to content

Commit

Permalink
add RESOURCE_EDIT_BTN variable and check for it (#1865)
Browse files Browse the repository at this point in the history
  • Loading branch information
ConorOM1 authored Sep 27, 2024
1 parent dc3ef42 commit 13aebed
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Resource ./Workbenches.resource
${DS_PROJECT_TITLE}= Data Science Projects
${TITLE_INPUT_XP}= xpath=//input[@id="manage-project-modal-name"]
${DESCR_INPUT_XP}= xpath=//textarea[@id="manage-project-modal-description"]
${RESOURCE_INPUT_XP}= css:[data-testid="resource-manage-project-modal-name"]
${RESOURCE_EDIT_BTN_XP}= xpath=//button[.="Edit resource name"]
${RESOURCE_INPUT_XP}= css:[data-testid="manage-project-modal-resourceName"]
${GENERIC_CREATE_BTN_XP}= xpath=//button[text()="Create"]
${GENERIC_CANCEL_BTN_XP}= xpath=//button[text()="Cancel"]
# TODO: Update to latter option once the change is pulled from ODH into downstream!
Expand Down Expand Up @@ -136,6 +137,8 @@ Create Data Science Project
ELSE
Wait Until Page Contains Element ${PROJECT_CREATE_BTN_XP}
Click Button ${PROJECT_CREATE_BTN_XP}
Wait Until Page Contains Element ${RESOURCE_EDIT_BTN_XP}
Click Button ${RESOURCE_EDIT_BTN_XP}
Wait Until Page Contains Element ${TITLE_INPUT_XP}
Run Keyword And Warn On Failure Element Should Be Disabled ${GENERIC_CREATE_BTN_XP}
Input Text ${TITLE_INPUT_XP} ${title}
Expand Down

0 comments on commit 13aebed

Please sign in to comment.