From 2dcdabc34c0c069b5c49e6c1f5102360e7d6646b Mon Sep 17 00:00:00 2001 From: Andy Pickering Date: Mon, 22 Jun 2026 14:03:04 +0900 Subject: [PATCH] Tests: Fix failure to dismiss guided tour when running locally --- tests/support/fixtures.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/support/fixtures.ts b/tests/support/fixtures.ts index 259f1ee6..031943f3 100644 --- a/tests/support/fixtures.ts +++ b/tests/support/fixtures.ts @@ -246,7 +246,19 @@ export const interceptFeedback = async ( // Custom test fixture that captures browser console errors/warnings and prints // them only when the test fails, keeping passing test output clean. -export const test = base.extend<{ captureConsoleLogs: void }>({ +export const test = base.extend<{ captureConsoleLogs: void; dismissGuidedTour: void }>({ + dismissGuidedTour: [ + async ({ page }, use) => { + await page.addLocatorHandler( + page.locator('[data-test="tour-step-footer-secondary"]'), + async (btn) => { + await btn.click(); + }, + ); + await use(); + }, + { auto: true }, + ], captureConsoleLogs: [ async ({ page }, use, testInfo) => { const logs: { method: string; msg: string }[] = [];