mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-28 02:02:08 +00:00
Split playwright tests to multiple runners by project (#789)
This commit is contained in:
42
.github/workflows/test-ui.yaml
vendored
42
.github/workflows/test-ui.yaml
vendored
@@ -23,19 +23,53 @@ jobs:
|
|||||||
npm test -- --verbose
|
npm test -- --verbose
|
||||||
working-directory: ComfyUI_frontend
|
working-directory: ComfyUI_frontend
|
||||||
|
|
||||||
playwright-tests:
|
playwright-tests-chromium:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: Comfy-Org/ComfyUI_frontend_setup_action@v1
|
- uses: Comfy-Org/ComfyUI_frontend_setup_action@v1
|
||||||
- name: Install Playwright Browsers
|
- name: Install Playwright Browsers
|
||||||
run: npx playwright install chromium --with-deps
|
run: npx playwright install chromium --with-deps
|
||||||
working-directory: ComfyUI_frontend
|
working-directory: ComfyUI_frontend
|
||||||
- name: Run Playwright tests
|
- name: Run Playwright tests (Chromium)
|
||||||
run: npx playwright test
|
run: npx playwright test --project=chromium
|
||||||
working-directory: ComfyUI_frontend
|
working-directory: ComfyUI_frontend
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: playwright-report
|
name: playwright-report-chromium
|
||||||
|
path: ComfyUI_frontend/playwright-report/
|
||||||
|
retention-days: 30
|
||||||
|
|
||||||
|
playwright-tests-chromium-2x:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: Comfy-Org/ComfyUI_frontend_setup_action@v1
|
||||||
|
- name: Install Playwright Browsers
|
||||||
|
run: npx playwright install chromium --with-deps
|
||||||
|
working-directory: ComfyUI_frontend
|
||||||
|
- name: Run Playwright tests (Chromium 2x)
|
||||||
|
run: npx playwright test --project=chromium-2x
|
||||||
|
working-directory: ComfyUI_frontend
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: playwright-report-chromium-2x
|
||||||
|
path: ComfyUI_frontend/playwright-report/
|
||||||
|
retention-days: 30
|
||||||
|
|
||||||
|
playwright-tests-mobile-chrome:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: Comfy-Org/ComfyUI_frontend_setup_action@v1
|
||||||
|
- name: Install Playwright Browsers
|
||||||
|
run: npx playwright install chromium --with-deps
|
||||||
|
working-directory: ComfyUI_frontend
|
||||||
|
- name: Run Playwright tests (Mobile Chrome)
|
||||||
|
run: npx playwright test --project=mobile-chrome
|
||||||
|
working-directory: ComfyUI_frontend
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: playwright-report-mobile-chrome
|
||||||
path: ComfyUI_frontend/playwright-report/
|
path: ComfyUI_frontend/playwright-report/
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export default defineConfig({
|
|||||||
|
|
||||||
/* Test against mobile viewports. */
|
/* Test against mobile viewports. */
|
||||||
{
|
{
|
||||||
name: 'Mobile Chrome',
|
name: 'mobile-chrome',
|
||||||
use: { ...devices['Pixel 5'], hasTouch: true },
|
use: { ...devices['Pixel 5'], hasTouch: true },
|
||||||
grep: /@mobile/ // Run only tests tagged with @mobile
|
grep: /@mobile/ // Run only tests tagged with @mobile
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user