Skip to content

Commit

Permalink
Another try to fix the selector
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Jul 30, 2023
1 parent f071e01 commit 2271aef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ jobs:
with:
name: jupyterlab-tour-playwright-tests
path: |
ui-tests/test-results
ui-tests/test-results*
ui-tests/playwright-report
check_links:
Expand Down
3 changes: 3 additions & 0 deletions ui-tests/tests/jupyterlab-tour.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ 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.locator('.jp-Dialog').waitFor();
const kernelSelector = page.getByRole('button', { name: 'Select Kernel' });
if ((await kernelSelector.count()) > 0) {
await kernelSelector.click();
} else {
await page.getByRole('button', { name: 'Select' }).click();
}
await page.getByRole('button', { name: 'Start now' }).first().click();
await page.getByLabel('Next', { exact: true }).click();
Expand Down

0 comments on commit 2271aef

Please sign in to comment.