Skip to content

Commit

Permalink
Fix notebook notebook tour
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Aug 15, 2023
1 parent 71e7f9b commit e5b86f3
Show file tree
Hide file tree
Showing 2 changed files with 10,838 additions and 7,756 deletions.
26 changes: 15 additions & 11 deletions ui-tests/tests/notebook-tour.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,21 @@ test('should run the welcome tour', async ({ page }) => {
test('should run the notebook tour', async ({ page }) => {
await page.getByRole('menuitem', { name: 'File' }).click();
await page.getByLabel('file browser').getByText('New').click();
await page.getByText('Notebook', { exact: true }).click();
await page.getByRole('button', { name: 'Select Kernel' }).click();
await page.getByRole('button', { name: 'Start now' }).click();
await page.getByLabel('Next', { exact: true }).click();
await page.getByLabel('Next', { exact: true }).click();
await page.getByLabel('Next', { exact: true }).click();
await page.getByLabel('Next', { exact: true }).click();
await page.getByLabel('Next', { exact: true }).click();
await page.getByLabel('Next', { exact: true }).click();

const [notebookPage] = await Promise.all([
page.waitForEvent('popup'),
page.getByText('Notebook', { exact: true }).click()
]);
await notebookPage.getByRole('button', { name: 'Select Kernel' }).click();
await notebookPage.getByRole('button', { name: 'Start now' }).click();
await notebookPage.getByLabel('Next', { exact: true }).click();
await notebookPage.getByLabel('Next', { exact: true }).click();
await notebookPage.getByLabel('Next', { exact: true }).click();
await notebookPage.getByLabel('Next', { exact: true }).click();
await notebookPage.getByLabel('Next', { exact: true }).click();
await notebookPage.getByLabel('Next', { exact: true }).click();
await expect
.soft(page.locator('.react-joyride__tooltip p'))
.soft(notebookPage.locator('.react-joyride__tooltip p'))
.toHaveText(/Its name and its status are displayed here\.$/);

Check failure on line 44 in ui-tests/tests/notebook-tour.spec.ts

View workflow job for this annotation

GitHub Actions / Integration tests for Notebook

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

1) tests/notebook-tour.spec.ts:26:5 › should run the notebook tour ─────────────────────────────── Error: Timed out 5000ms waiting for expect(received).toHaveText(expected) Expected pattern: /Its name and its status are displayed here\.$/ Received string: "When executing a \"Code\" cell, its code is sent to a execution kernel.Its name and its status are displayed here and in the status bar." Call log: - expect.soft.toHaveText with timeout 5000ms - waiting for locator('.react-joyride__tooltip p') - locator resolved to <p>…</p> - unexpected value "When executing a "Code" cell, its code is sent to a execution kernel.Its name and its status are displayed here and in the status bar." - locator resolved to <p>…</p> - unexpected value "When executing a "Code" cell, its code is sent to a execution kernel.Its name and its status are displayed here and in the status bar." - locator resolved to <p>…</p> - unexpected value "When executing a "Code" cell, its code is sent to a execution kernel.Its name and its status are displayed here and in the status bar." - locator resolved to <p>…</p> - unexpected value "When executing a "Code" cell, its code is sent to a execution kernel.Its name and its status are displayed here and in the status bar." - locator resolved to <p>…</p> - unexpected value "When executing a "Code" cell, its code is sent to a execution kernel.Its name and its status are displayed here and in the status bar." - locator resolved to <p>…</p> - unexpected value "When executing a "Code" cell, its code is sent to a execution kernel.Its name and its status are displayed here and in the status bar." - locator resolved to <p>…</p> - unexpected value "When executing a "Code" cell, its code is sent to a execution kernel.Its name and its status are displayed here and in the status bar." - locator resolved to <p>…</p> - unexpected value "When executing a "Code" cell, its code is sent to a execution kernel.Its name and its status are displayed here and in the status bar." - locator resolved to <p>…</p> - unexpected value "When executing a "Code" cell, its code is sent to a execution kernel.Its name and its status are displayed here and in the status bar." 42 | await expect 43 | .soft(notebookPage.locator('.react-joyride__tooltip p')) > 44 | .toHaveText(/Its name and its status are displayed here\.$/); | ^ 45 | await notebookPage.getByLabel('Done').click(); 46 | }); 47 | at /home/runner/work/jupyterlab-tour/jupyterlab-tour/ui-tests/tests/notebook-tour.spec.ts:44:6
await page.getByLabel('Done').click();
await notebookPage.getByLabel('Done').click();
});
Loading

0 comments on commit e5b86f3

Please sign in to comment.