Skip to content

Update locator to use p-mod-hidden class #52

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

Merged
merged 2 commits into from
Dec 24, 2021

Conversation

lugi0
Copy link
Contributor

@lugi0 lugi0 commented Dec 23, 2021

Signed-off-by: Luca Giorgi [email protected]

@@ -29,7 +29,7 @@ ${JLAB XP CARD} //div[contains(@class, 'jp-LauncherCard'
${JLAB XP DOCK} //div[@id='jp-main-dock-panel']
${JLAB XP MENU ITEM} //li[contains(@class, 'p-Menu-item')]
${JLAB XP MENU ITEM LABEL} //div[contains(@class, 'p-Menu-itemLabel')]
${JLAB XP MENU ITEM ENABLED} ${JLAB XP MENU ITEM}\[not(contains(@class,'p-mod-disabled'))]
${JLAB XP MENU ITEM ENABLED} ${JLAB XP MENU ITEM}\[not(contains(@class,'p-mod-hidden'))]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In light of this change, let's update the variable name from ENABLED to VISIBLE here (and at the call site).

Is there a way we can emulate and test the failing condition? E.g. some environment variable or launch technique where it will think it's in Hub enough to show these?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in the latest commit.
As for your question, I am not sure if there is any way to do that short of installing and launching JupyterHub itself. I can test it against my own environment, but if your aim was to have an automated test in this repo's CI that wouldn't really solve it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

installing and launching JupyterHub itself.

I'll hoist to a separate issue: i feel like there must be a way to set up some dummy config values or environment variables to make it do the thing.

Signed-off-by: Luca Giorgi <[email protected]>
@bollwyvl bollwyvl merged commit e2d3cb0 into robots-from-jupyter:master Dec 24, 2021
@bollwyvl
Copy link
Collaborator

Thanks!

@bollwyvl bollwyvl mentioned this pull request Dec 24, 2021
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants