Skip to content

Commit adb1867

Browse files
authored
🐛 [e2e] click the first New Launcher button (#7039)
1 parent 082ec0b commit adb1867

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/e2e-playwright/tests/jupyterlabs/test_jupyterlab.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def test_jupyterlab(
112112
logging.INFO,
113113
f"Creating multiple files and 1 file of about {large_file_size.human_readable()}",
114114
):
115-
iframe.get_by_role("button", name="New Launcher").click()
115+
iframe.get_by_role("button", name="New Launcher").nth(0).click()
116116
with page.expect_websocket(_JLabWaitForTerminalWebSocket()) as ws_info:
117117
iframe.get_by_label("Launcher").get_by_text("Terminal").click()
118118

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

0 commit comments

Comments
 (0)