Skip to content

Commit a8a00e0

Browse files
committed
feat: tests
1 parent 6a7464f commit a8a00e0

File tree

3 files changed

+10
-34
lines changed

3 files changed

+10
-34
lines changed

.github/workflows/playwright.yml

-29
This file was deleted.

.github/workflows/ui_test.yml

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ on:
44
branches: [ main ]
55
pull_request:
66
branches: [ main ]
7+
concurrency:
8+
# Support push/pr as event types with different behaviors each:
9+
# 1. push: queue up builds
10+
# 2. pr: only allow one run per PR
11+
group: ${{ github.workflow }}-${{ github.event.type }}${{ github.event.pull_request.number }}
12+
# If there is already a workflow running for the same pull request, cancel it
13+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
714
jobs:
815
test:
916
timeout-minutes: 10

playwright.config.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,17 @@ export default defineConfig({
1717
/* Fail the build on CI if you accidentally left test.only in the source code. */
1818
forbidOnly: !!process.env.CI,
1919
/* Retry on CI only */
20-
retries: process.env.CI ? 2 : 0,
21-
/* Opt out of parallel tests on CI. */
22-
workers: process.env.CI ? 1 : undefined,
20+
retries: 0,
21+
/* Parallel tests currently blocked. */
22+
workers: 1,
2323
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
2424
reporter: 'html',
2525
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2626
use: {
2727
/* Base URL to use in actions like `await page.goto('/')`. */
2828
baseURL,
29-
3029
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
3130
trace: 'on-first-retry',
32-
3331
screenshot: 'only-on-failure',
3432
video: 'retain-on-failure'
3533
},

0 commit comments

Comments
 (0)