Skip to content

High performance self-hosted photo and video management solution.

feat: rename parallel tests to ui, split test step into: [e2e, ui] (#25439)

Min Idzelisdd72c32c60e4
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 2aed8c6da2..fcd0fd8d5e 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -502,7 +502,12 @@ jobs:
- name: Run e2e tests (web)
env:
CI: true
- run: npx playwright test
+ run: npx playwright test --project=chromium
+ if: ${{ !cancelled() }}
+ - name: Run ui tests (web)
+ env:
+ CI: true
+ run: npx playwright test --project=ui
if: ${{ !cancelled() }}
- name: Archive test results
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
diff --git a/e2e/playwright.config.ts b/e2e/playwright.config.ts
index 8b7f289921..58f5997343 100644
--- a/e2e/playwright.config.ts
+++ b/e2e/playwright.config.ts
@@ -39,13 +39,13 @@ const config: PlaywrightTestConfig = {
testMatch: /.*\.e2e-spec\.ts/,
workers: 1,
},
- // {
- // name: 'parallel tests',
- // use: { ...devices['Desktop Chrome'] },
- // testMatch: /.*\.parallel-e2e-spec\.ts/,
- // fullyParallel: true,
- // workers: process.env.CI ? 3 : Math.max(1, Math.round(cpus().length * 0.75) - 1),
- // },
+ {
+ name: 'ui',
+ use: { ...devices['Desktop Chrome'] },
+ testMatch: /.*\.ui-spec\.ts/,
+ fullyParallel: true,
+ workers: process.env.CI ? 3 : Math.max(1, Math.round(cpus().length * 0.75) - 1),
+ },
// {
// name: 'firefox',
diff --git a/e2e/src/web/specs/asset-viewer/asset-viewer.parallel-e2e-spec.ts b/e2e/src/web/specs/asset-viewer/asset-viewer.ui-spec.ts
similarity index 100%
rename from e2e/src/web/specs/asset-viewer/asset-viewer.parallel-e2e-spec.ts
rename to e2e/src/web/specs/asset-viewer/asset-viewer.ui-spec.ts
diff --git a/e2e/src/web/specs/timeline/timeline.parallel-e2e-spec.ts b/e2e/src/web/specs/timeline/timeline.ui-spec.ts
similarity index 100%
rename from e2e/src/web/specs/timeline/timeline.parallel-e2e-spec.ts
rename to e2e/src/web/specs/timeline/timeline.ui-spec.ts