Skip to content

Commit

Permalink
chore(ci): playwright config add browser
Browse files Browse the repository at this point in the history
  • Loading branch information
stakbucks committed Aug 15, 2024
1 parent f5e3ed9 commit 1eabe51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/preview_bottle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
43 changes: 1 addition & 42 deletions packages/e2e/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -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.
*/
Expand All @@ -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' },
// },
],
});

0 comments on commit 1eabe51

Please sign in to comment.