diff --git a/playwright.config-local.ts b/playwright.config-local.ts index ade3d599..95e6b594 100644 --- a/playwright.config-local.ts +++ b/playwright.config-local.ts @@ -32,16 +32,10 @@ export default defineConfig({ /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { /* Base URL to use in actions like `await page.goto('/')`. */ - baseURL: "http://localhost:8080", + baseURL: "http://localhost:8081", /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ - trace: "retain-on-failure", - - // Add request logging - logger: { - isEnabled: (name, severity) => severity === 'error' || name === 'api', - log: (name, severity, message, args) => console.log(`${severity}: ${message}`, args) - } + trace: "retain-on-failure" }, /* Configure projects for major browsers */ @@ -112,8 +106,8 @@ export default defineConfig({ */ webServer: { command: - "VITE_APP_SERVER=http://localhost:8080 VITE_DEFAULT_ENDORSER_API_SERVER=http://localhost:3000 VITE_DEFAULT_PARTNER_API_SERVER=http://localhost:3000 VITE_DEFAULT_IMAGE_API_SERVER=https://test-image-api.timesafari.app VITE_PASSKEYS_ENABLED=true npm run build:web -- --port=8080", - url: "http://localhost:8080", + "VITE_APP_SERVER=http://localhost:8081 VITE_DEFAULT_ENDORSER_API_SERVER=http://localhost:3000 VITE_DEFAULT_PARTNER_API_SERVER=http://localhost:3000 VITE_DEFAULT_IMAGE_API_SERVER=https://test-image-api.timesafari.app VITE_PASSKEYS_ENABLED=true npm run build:web -- --port=8080", + url: "http://localhost:8081", reuseExistingServer: !process.env.CI, }, }); diff --git a/playwright.config.ts b/playwright.config.ts deleted file mode 100644 index 5fdf7351..00000000 --- a/playwright.config.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { defineConfig, devices } from '@playwright/test'; - -/** - * Read environment variables from file. - * https://github.com/motdotla/dotenv - */ -// import dotenv from 'dotenv'; -// dotenv.config({ path: path.resolve(__dirname, '.env') }); - -/** - * See https://playwright.dev/docs/test-configuration. - */ -export default defineConfig({ - testDir: './test-playwright', - /* Run tests in files in parallel */ - fullyParallel: true, - /* Fail the build on CI if you accidentally left test.only in the source code. */ - forbidOnly: !!process.env.CI, - /* Retry on CI only */ - retries: process.env.CI ? 2 : 0, - /* Opt out of parallel tests on CI. */ - workers: process.env.CI ? 1 : undefined, - /* Reporter to use. See https://playwright.dev/docs/test-reporters */ - reporter: 'html', - /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ - use: { - /* Base URL to use in actions like `await page.goto('/')`. */ - baseURL: 'https://test.timesafari.app', - - /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ - trace: 'on-first-retry', - }, - - /* Configure projects for major browsers */ - projects: [ - { - name: 'chromium', - use: { - ...devices['Desktop Chrome'], - permissions: ["clipboard-read"], - }, - }, - { - name: 'firefox', - use: { ...devices['Desktop Firefox'] }, - }, - -// { -// name: 'webkit', -// use: { ...devices['Desktop Safari'] }, -// }, - - /* Test against mobile viewports. */ -// { -// name: 'Mobile Chrome', -// use: { ...devices['Pixel 5'] }, -// }, -// { -// name: 'Mobile Safari', -// use: { ...devices['iPhone 12'] }, -// }, - - /* Test against branded browsers. */ - // { - // name: 'Microsoft Edge', - // use: { ...devices['Desktop Edge'], channel: 'msedge' }, - // }, - // { - // name: 'Google Chrome', - // use: { ...devices['Desktop Chrome'], channel: 'chrome' }, - // }, - ], - - /* Run your local dev server before starting the tests */ - // webServer: { - // command: - // "VITE_PASSKEYS_ENABLED=true VITE_DEFAULT_ENDORSER_API_SERVER=http://localhost:3000 npm run dev", - // url: "http://localhost:8080", - // reuseExistingServer: !process.env.CI, - // }, -});