-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spawn in same tab for rhods 1.17+ #571
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,6 +133,12 @@ Get Spawner Environment Variable Value | |
Spawn Notebook | ||
[Documentation] Start the notebook pod spawn and wait ${spawner_timeout} seconds (DEFAULT: 600s) | ||
[Arguments] ${spawner_timeout}=600 seconds | ||
# TODO: Make sure server spawns in same tab in 1.17+ | ||
# Currently no way to know if option already selected or not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what about something like that ? 🤔
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Last I looked at this the |
||
#${version-check}= Is RHODS Version Greater Or Equal Than 1.17.0 | ||
#IF ${version-check}==True | ||
# Click Element xpath://input[@id="checkbox-notebook-browser-tab-preference"] | ||
#END | ||
Click Button Start server | ||
# Waiting for 60 seconds, since a long wait seems to redirect the user to the control panel | ||
# if the spawn was successful | ||
|
@@ -187,7 +193,13 @@ Spawn Notebook | |
END | ||
END | ||
Wait Until Element Is Visible xpath://div[@role="progressbar"] | ||
Wait Until Page Does Not Contain Element xpath://div[@role="progressbar"] ${spawner_timeout} | ||
${version-check}= Is RHODS Version Greater Or Equal Than 1.17.0 | ||
IF ${version-check}==True | ||
Wait Until Page Contains The notebook server is up and running. ${spawner_timeout} | ||
Click Button Open in current tab | ||
ELSE | ||
Wait Until Page Does Not Contain Element xpath://div[@role="progressbar"] ${spawner_timeout} | ||
END | ||
|
||
Has Spawn Failed | ||
[Documentation] Checks if spawning the image has failed | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe my solution wasn't the best but I dealt with something similar at
ods-ci/tests/Resources/Page/ODH/ODHDashboard/ODHDashboard.robot
Line 401 in 8a1e223