From dddc3700b68ec4ee560a70a38e94bc7933dc0757 Mon Sep 17 00:00:00 2001 From: krassowski <5832902+krassowski@users.noreply.github.com> Date: Mon, 1 Apr 2024 14:56:43 +0100 Subject: [PATCH] Use `jp-button` instead of button --- ui-tests/tests/user-menu.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-tests/tests/user-menu.spec.ts b/ui-tests/tests/user-menu.spec.ts index 19f9702b..d5502e0c 100644 --- a/ui-tests/tests/user-menu.spec.ts +++ b/ui-tests/tests/user-menu.spec.ts @@ -11,7 +11,7 @@ test.use( { }); const openDialog = async (page: IJupyterLabPageFixture): Promise => { - 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(); @@ -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'