From 1eabe5193e4b66272b75610a71c82096d8c25cb7 Mon Sep 17 00:00:00 2001 From: stakbucks Date: Thu, 15 Aug 2024 18:43:11 +0900 Subject: [PATCH] chore(ci): playwright config add browser --- .github/workflows/preview_bottle.yaml | 2 +- packages/e2e/playwright.config.ts | 43 +-------------------------- 2 files changed, 2 insertions(+), 43 deletions(-) diff --git a/.github/workflows/preview_bottle.yaml b/.github/workflows/preview_bottle.yaml index d02c12b..fe2f380 100644 --- a/.github/workflows/preview_bottle.yaml +++ b/.github/workflows/preview_bottle.yaml @@ -35,7 +35,7 @@ jobs: restore-keys: | ${{ runner.os }}-turbo- - run: pnpm install - - run: pnpx playwright install --with-deps + - run: pnpx playwright install-deps webkit - run: pnpm run build - name: create dotenv run: | diff --git a/packages/e2e/playwright.config.ts b/packages/e2e/playwright.config.ts index f0062cb..ded6f34 100644 --- a/packages/e2e/playwright.config.ts +++ b/packages/e2e/playwright.config.ts @@ -1,12 +1,5 @@ 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. */ @@ -24,47 +17,13 @@ export default defineConfig({ }, testDir: './tests', timeout: 30000, - /* 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. */ - /* Configure projects for major browsers */ + reporter: 'html', projects: [ - // { - // name: 'Google Chrome', - // use: { ...devices['Desktop Chrome'], channel: 'chrome' }, // or 'chrome-beta' - // }, { name: 'webkit', use: { ...devices['iPhone 12'] }, }, - - /* 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' }, - // }, ], });