diff --git a/playwright.config.ts b/playwright.config.ts index fb7209510..3349ca9b1 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -1,7 +1,7 @@ -require('dotenv').config(); +//require('dotenv').config(); import { defineConfig } from '@playwright/test'; -const baseURL = process.env.PLAYWRIGHT_TESTS_BASE_URL!; +const baseURL = 'http://localhost:3000/'; export default defineConfig({ globalSetup: require.resolve('./src/tests/ui/global-setup'), diff --git a/src/tests/accessibility/accessibility.spec.ts b/src/tests/accessibility/accessibility.spec.ts index e1789d5c7..dbdc01eca 100644 --- a/src/tests/accessibility/accessibility.spec.ts +++ b/src/tests/accessibility/accessibility.spec.ts @@ -6,7 +6,7 @@ let page: Page; test.beforeAll(async ({ browser }) => { const context = await browser.newContext(); page = await context.newPage(); - await page.goto('http://localhost:3000/'); + await page.goto('/'); }); test.describe('Accessibility', () => {