From c33b7240042f5b3979ff432ff40fb63ffc0ceed6 Mon Sep 17 00:00:00 2001 From: Kasper Peulen Date: Tue, 31 Oct 2023 14:41:49 +0100 Subject: [PATCH] Fix e2e tests --- code/e2e-tests/addon-interactions.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/e2e-tests/addon-interactions.spec.ts b/code/e2e-tests/addon-interactions.spec.ts index 981c5bf678a6..d77ef67beeca 100644 --- a/code/e2e-tests/addon-interactions.spec.ts +++ b/code/e2e-tests/addon-interactions.spec.ts @@ -29,7 +29,7 @@ test.describe('addon-interactions', () => { await expect(welcome).toContainText('Welcome, Jane Doe!'); const interactionsTab = await page.locator('#tabbutton-storybook-interactions-panel'); - await expect(interactionsTab).toContainText(/(1)/); + await expect(interactionsTab).toContainText(/(\d)/); await expect(interactionsTab).toBeVisible(); const panel = sbPage.panelContent(); @@ -37,7 +37,7 @@ test.describe('addon-interactions', () => { await expect(panel).toContainText(/userEvent.click/); await expect(panel).toBeVisible(); - const done = await panel.locator('[data-testid=icon-done]'); + const done = await panel.locator('[data-testid=icon-done]').nth(0); await expect(done).toBeVisible(); });