File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import { test , expect } from '@playwright/test' ;
22import { waitForReactMount , CONSOLE_BASE } from './helpers' ;
33import { existsSync } from 'fs' ;
4- import { join } from 'path' ;
4+ import { dirname , join } from 'path' ;
5+ import { fileURLToPath } from 'url' ;
56
67/**
78 * P3 Mobile Visual Regression tests.
@@ -22,7 +23,7 @@ const MOBILE_VIEWPORTS = [
2223// Keep in sync with Console app route definitions (apps/console/src/routes).
2324const ROUTES = [ '/' , '/dashboard' ] ;
2425
25- const snapshotsDir = join ( __dirname , 'mobile-visual-regression.spec.ts-snapshots' ) ;
26+ const snapshotsDir = join ( dirname ( fileURLToPath ( import . meta . url ) ) , 'mobile-visual-regression.spec.ts-snapshots' ) ;
2627const hasBaselines = existsSync ( snapshotsDir ) ;
2728
2829test . describe ( 'Mobile Visual Regression' , ( ) => {
You can’t perform that action at this time.
0 commit comments