2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 19:45:46 +00:00

Revert some playwright changes (#9419)

* Revert some playwright changes

- Use vite dev server all the time

* Simplify test
This commit is contained in:
Oliver
2025-03-31 20:12:26 +11:00
committed by GitHub
parent f7a4469590
commit fcc6709b3f
2 changed files with 34 additions and 59 deletions

View File

@ -584,6 +584,7 @@ jobs:
INVENTREE_DB_PASSWORD: inventree_password
INVENTREE_DEBUG: true
INVENTREE_PLUGINS_ENABLED: false
VITE_COVERAGE_BUILD: true
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4.2.2
@ -605,12 +606,6 @@ jobs:
run: |
invoke int.frontend-compile
cd src/frontend && npx playwright install --with-deps
- name: Set Production Mode
if: github.event_name == 'pull_request'
run: echo "VITE_PRODUCTION_BUILD=true" >> $GITHUB_ENV
- name: Set Coverage Mode
if: github.event_name != 'pull_request'
run: echo "VITE_COVERAGE_BUILD=true" >> $GITHUB_ENV
- name: Run Playwright tests
id: tests
run: cd src/frontend && npx nyc playwright test