File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -246,7 +246,19 @@ export const interceptFeedback = async (
246246
247247// Custom test fixture that captures browser console errors/warnings and prints
248248// them only when the test fails, keeping passing test output clean.
249- export const test = base . extend < { captureConsoleLogs : void } > ( {
249+ export const test = base . extend < { captureConsoleLogs : void ; dismissGuidedTour : void } > ( {
250+ dismissGuidedTour : [
251+ async ( { page } , use ) => {
252+ await page . addLocatorHandler (
253+ page . locator ( '[data-test="tour-step-footer-secondary"]' ) ,
254+ async ( btn ) => {
255+ await btn . click ( ) ;
256+ } ,
257+ ) ;
258+ await use ( ) ;
259+ } ,
260+ { auto : true } ,
261+ ] ,
250262 captureConsoleLogs : [
251263 async ( { page } , use , testInfo ) => {
252264 const logs : { method : string ; msg : string } [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments