From 40c0181e28d44b5e0f0e68843cb90006dbf6b733 Mon Sep 17 00:00:00 2001 From: Jesse Mazzella Date: Mon, 28 Oct 2024 14:28:15 -0700 Subject: [PATCH] fix: fixing more paths --- packages/e2e/playwright-local.config.js | 2 +- packages/e2e/playwright-mobile.config.js | 4 ++-- packages/e2e/playwright-visual-a11y.config.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/e2e/playwright-local.config.js b/packages/e2e/playwright-local.config.js index c13adc98b3..ce18182217 100644 --- a/packages/e2e/playwright-local.config.js +++ b/packages/e2e/playwright-local.config.js @@ -10,7 +10,7 @@ const config = { timeout: 30 * 1000, webServer: { command: 'npm run start:coverage', - cwd: fileURLToPath(new URL('../', import.meta.url)), // Provide cwd for the root of the project + cwd: fileURLToPath(new URL('../../', import.meta.url)), // Provide cwd for the root of the project url: 'http://localhost:8080/#', timeout: 120 * 1000, reuseExistingServer: true diff --git a/packages/e2e/playwright-mobile.config.js b/packages/e2e/playwright-mobile.config.js index 923b9e8e0f..11c9c5ac55 100644 --- a/packages/e2e/playwright-mobile.config.js +++ b/packages/e2e/playwright-mobile.config.js @@ -14,7 +14,7 @@ const config = { timeout: 30 * 1000, webServer: { command: 'npm run start:coverage', - cwd: fileURLToPath(new URL('../', import.meta.url)), // Provide cwd for the root of the project + cwd: fileURLToPath(new URL('../../', import.meta.url)), // Provide cwd for the root of the project url: 'http://localhost:8080/#', timeout: 200 * 1000, reuseExistingServer: true //This was originally disabled to prevent differences in local debugging vs. CI. However, it significantly speeds up local debugging. @@ -30,7 +30,7 @@ const config = { trace: 'on-first-retry', video: 'off', // @ts-ignore - custom configuration option for nyc codecoverage output path - coveragePath: fileURLToPath(new URL('.nyc_output', import.meta.url)) + coveragePath: fileURLToPath(new URL('../../.nyc_output', import.meta.url)) }, projects: [ { diff --git a/packages/e2e/playwright-visual-a11y.config.js b/packages/e2e/playwright-visual-a11y.config.js index 646609b504..eae1ada1a1 100644 --- a/packages/e2e/playwright-visual-a11y.config.js +++ b/packages/e2e/playwright-visual-a11y.config.js @@ -10,7 +10,7 @@ const config = { workers: 1, //Lower stress on Circle CI Agent for Visual tests https://github.com/percy/cli/discussions/1067 webServer: { command: 'npm run start:coverage', - cwd: fileURLToPath(new URL('../', import.meta.url)), // Provide cwd for the root of the project + cwd: fileURLToPath(new URL('../../', import.meta.url)), // Provide cwd for the root of the project url: 'http://localhost:8080/#', timeout: 200 * 1000, reuseExistingServer: true //This was originally disabled to prevent differences in local debugging vs. CI. However, it significantly speeds up local debugging.