Skip to content

Commit

Permalink
update playwright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfulton9 committed Jun 14, 2024
1 parent f055411 commit 2539166
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ui-tests/tests/jupyterlab_new_launcher.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,19 @@ test.describe('Quick Settings', () => {
test('open quick settings menu', async ({ page }) => {
const launcher = page.locator('.jp-LauncherBody');
await page.locator('.jp-Launcher-QuickSettings').click();
await page.waitForTimeout(400);
expect(await launcher.screenshot()).toMatchSnapshot(
'launcher_open_quicksettings.png'
);
});

test('show starred from quick settings', async ({ page }) => {
const launcher = page.locator('.jp-LauncherBody');
await page.locator('.jp-Launcher-QuickSettings').click();
await page.locator('.lm-Menu-itemLabel:text("Show Starred Section")').click()
expect (await launcher.screenshot()).toMatchSnapshot(
'launcher_show_starred_from_quicksettings.png'
)

});

});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2539166

Please sign in to comment.