Skip to content

Commit d8c2e10

Browse files
authored
Merge pull request #664 from objectstack-ai/copilot/update-coding-agent-job-data
2 parents f494b6e + c200526 commit d8c2e10

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

e2e/mobile-visual-regression.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { test, expect } from '@playwright/test';
22
import { waitForReactMount, CONSOLE_BASE } from './helpers';
33
import { 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).
2324
const 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');
2627
const hasBaselines = existsSync(snapshotsDir);
2728

2829
test.describe('Mobile Visual Regression', () => {

0 commit comments

Comments
 (0)