Skip to content

Commit

Permalink
Fix selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Jul 30, 2023
1 parent 9c3cc9c commit f071e01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
- name: Execute integration tests
working-directory: ui-tests
run: |
jlpm playwright test
jlpm playwright test --output test-results-${{ matrix.jupyterlab }}
- name: Upload Playwright Test report
if: always()
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ requires-python = ">=3.8"
classifiers = [
"Framework :: Jupyter",
"Framework :: Jupyter :: JupyterLab",
"Framework :: Jupyter :: JupyterLab :: 3",
"Framework :: Jupyter :: JupyterLab :: 4",
"Framework :: Jupyter :: JupyterLab :: Extensions",
"Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt",
Expand Down
7 changes: 5 additions & 2 deletions ui-tests/tests/jupyterlab-tour.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ test('should run the notebook tour', async ({ page }) => {
await page.getByRole('menuitem', { name: 'File' }).click();
await page.getByText('New', { exact: true }).click();
await page.locator('#jp-mainmenu-file-new').getByText('Notebook').click();
await page.getByRole('button', { name: 'Select Kernel' }).click();
await page.getByRole('button', { name: 'Start now' }).click();
const kernelSelector = page.getByRole('button', { name: 'Select Kernel' });
if ((await kernelSelector.count()) > 0) {
await kernelSelector.click();
}
await page.getByRole('button', { name: 'Start now' }).first().click();

Check failure on line 27 in ui-tests/tests/jupyterlab-tour.spec.ts

View workflow job for this annotation

GitHub Actions / Integration tests (4.0)

tests/jupyterlab-tour.spec.ts:19:5 › should run the notebook tour

1) tests/jupyterlab-tour.spec.ts:19:5 › should run the notebook tour ───────────────────────────── Error: locator.click: Target closed =========================== logs =========================== waiting for getByRole('button', { name: 'Start now' }).first() locator resolved to <button title="Start now" class="jp-toast-button jp-mod-…>Start now</button> attempting click action waiting for element to be visible, enabled and stable element is not stable - waiting... element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog">…</dialog> intercepts pointer events retrying click action, attempt #1 waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog">…</dialog> intercepts pointer events retrying click action, attempt #2 waiting 20ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog">…</dialog> intercepts pointer events retrying click action, attempt #3 waiting 100ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog">…</dialog> intercepts pointer events retrying click action, attempt #4 waiting 100ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog">…</dialog> intercepts pointer events retrying click action, attempt #5 waiting 500ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog">…</dialog> intercepts pointer events retrying click action, attempt #6 waiting 500ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog">…</dialog> intercepts pointer events retrying click action, attempt #7 waiting 500ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog">…</dialog> intercepts pointer events retrying click action, attempt #8 waiting 500ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog">…</dialog> intercepts pointer events retrying click action, attempt #9 waiting 500ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog">…</dialog> intercepts pointer events retrying click action, attempt #10 waiting 500ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-modal="true" class="lm-Widget jp-Dialog">…</dialog> intercepts pointer events retrying click action, attempt #11 waiting 500ms waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling <dialog aria-
await page.getByLabel('Next', { exact: true }).click();
await page.getByLabel('Next', { exact: true }).click();
await page.getByLabel('Next', { exact: true }).click();
Expand Down

0 comments on commit f071e01

Please sign in to comment.