mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00:00
feat: rename parallel tests to ui, split test step into: [e2e, ui] (#25439)
This commit is contained in:
parent
4bd01b70ff
commit
dd72c32c60
4 changed files with 13 additions and 8 deletions
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
|
|
@ -502,7 +502,12 @@ jobs:
|
||||||
- name: Run e2e tests (web)
|
- name: Run e2e tests (web)
|
||||||
env:
|
env:
|
||||||
CI: true
|
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() }}
|
if: ${{ !cancelled() }}
|
||||||
- name: Archive test results
|
- name: Archive test results
|
||||||
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
||||||
|
|
|
||||||
|
|
@ -39,13 +39,13 @@ const config: PlaywrightTestConfig = {
|
||||||
testMatch: /.*\.e2e-spec\.ts/,
|
testMatch: /.*\.e2e-spec\.ts/,
|
||||||
workers: 1,
|
workers: 1,
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// name: 'parallel tests',
|
name: 'ui',
|
||||||
// use: { ...devices['Desktop Chrome'] },
|
use: { ...devices['Desktop Chrome'] },
|
||||||
// testMatch: /.*\.parallel-e2e-spec\.ts/,
|
testMatch: /.*\.ui-spec\.ts/,
|
||||||
// fullyParallel: true,
|
fullyParallel: true,
|
||||||
// workers: process.env.CI ? 3 : Math.max(1, Math.round(cpus().length * 0.75) - 1),
|
workers: process.env.CI ? 3 : Math.max(1, Math.round(cpus().length * 0.75) - 1),
|
||||||
// },
|
},
|
||||||
|
|
||||||
// {
|
// {
|
||||||
// name: 'firefox',
|
// name: 'firefox',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue