Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion tests/support/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }[] = [];
Expand Down