Skip to content

Commit

Permalink
Use jp-button instead of button
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Apr 1, 2024
1 parent e4a1f78 commit 2e0347d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui-tests/tests/user-menu.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.use( {
});

const openDialog = async (page: IJupyterLabPageFixture): Promise<Locator> => {
const sharedLinkButton = page.locator('button[data-command="collaboration:shared-link"]');
const sharedLinkButton = page.locator('jp-button[data-command="collaboration:shared-link"]');
await sharedLinkButton.click();
await expect(page.locator('.jp-Dialog')).toBeVisible();
return page.locator('.jp-Dialog').first();
Expand All @@ -23,7 +23,7 @@ test('the top bar should contain the user menu with 2 items', async ({ page }) =
});

test('should open dialog when clicking on the shared link button', async ({ page }) => {
const sharedLinkButton = page.locator('button[data-command="collaboration:shared-link"]');
const sharedLinkButton = page.locator('jp-button[data-command="collaboration:shared-link"]');

expect(await sharedLinkButton.screenshot()).toMatchSnapshot(
'shared-link-icon.png'
Expand Down

0 comments on commit 2e0347d

Please sign in to comment.