Skip to content

Commit

Permalink
πŸ› [e2e] click the first New Launcher button (#7039)
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz authored Jan 14, 2025
1 parent 082ec0b commit adb1867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e-playwright/tests/jupyterlabs/test_jupyterlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def test_jupyterlab(
logging.INFO,
f"Creating multiple files and 1 file of about {large_file_size.human_readable()}",
):
iframe.get_by_role("button", name="New Launcher").click()
iframe.get_by_role("button", name="New Launcher").nth(0).click()
with page.expect_websocket(_JLabWaitForTerminalWebSocket()) as ws_info:
iframe.get_by_label("Launcher").get_by_text("Terminal").click()

Expand Down Expand Up @@ -153,7 +153,7 @@ def test_jupyterlab(
return
# Wait until iframe is shown and create new notebook with print statement
with log_context(logging.INFO, "Running new notebook"):
iframe.get_by_role("button", name="New Launcher").click()
iframe.get_by_role("button", name="New Launcher").nth(0).click()
iframe.locator(".jp-LauncherCard-icon").first.click()
iframe.get_by_role("tab", name="Untitled.ipynb").click()
_jupyterlab_ui = iframe.get_by_label("Untitled.ipynb").get_by_role("textbox")
Expand Down

0 comments on commit adb1867

Please sign in to comment.