From fea4886bc9b7dbd026cfd908d589842614b0ec13 Mon Sep 17 00:00:00 2001 From: Elinor Date: Mon, 7 Oct 2024 11:18:02 +0300 Subject: [PATCH] Fix: Update playwright tests (#3381) --- playwright.config.ts | 1 + src/tests/ui/anonymous-experiences/sidebar.spec.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/playwright.config.ts b/playwright.config.ts index 138c141e49..abb62e1413 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -19,6 +19,7 @@ const config: PlaywrightTestConfig = { screenshot: 'only-on-failure' }, testDir: './src/tests', + testIgnore: '**/authenticated-experiences/**', reporter: [ [ 'html', diff --git a/src/tests/ui/anonymous-experiences/sidebar.spec.ts b/src/tests/ui/anonymous-experiences/sidebar.spec.ts index ce9376ea8f..ae63238163 100644 --- a/src/tests/ui/anonymous-experiences/sidebar.spec.ts +++ b/src/tests/ui/anonymous-experiences/sidebar.spec.ts @@ -14,7 +14,7 @@ test.describe('Resources Explorer', () => { await page.evaluate(() => document.fonts.ready); await page.waitForTimeout(200); expect(await page.screenshot()).toMatchSnapshot(); - await page.getByLabel('admin (6)').click(); + await page.getByLabel('admin (8)').click(); await page.getByRole('link', { name: 'GET' }).click(); await page.waitForTimeout(200); await page.evaluate(() => document.fonts.ready);