Skip to content

Commit

Permalink
test: ✅ skip safari to avoid wasting 30s installing deps on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yjaaidi committed Dec 5, 2023
1 parent c5fe6f7 commit 2da57e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ jobs:

- run: pnpm install

- name: Playwright browsers install
run: pnpm playwright install --with-deps

- run: pnpm nx run-many --parallel=4 -t build,lint,test,test-ui

- uses: actions/upload-artifact@v3
Expand Down
6 changes: 5 additions & 1 deletion apps/whiskmate/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig } from '@playwright/experimental-ct-react';
import { defineConfig, devices } from '@playwright/experimental-ct-react';
import { nxE2EPreset } from '@nx/playwright/preset';

const nxConfig = nxE2EPreset(__filename, { testDir: '.' });
Expand All @@ -8,6 +8,10 @@ const nxConfig = nxE2EPreset(__filename, { testDir: '.' });
*/
export default defineConfig({
...nxConfig,
projects: [
{ name: 'chromium', use: devices['Desktop Chrome'] },
{ name: 'firefox', use: devices['Desktop Firefox'] },
],
testMatch: '**/*.pw.tsx',
timeout: 10_000,
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
Expand Down

0 comments on commit 2da57e6

Please sign in to comment.