Chore/refactor e2e tests (#33647)

* Set up E2E tests for staging

* update

* Update

* Update .env.staging.example

* Fix node modules

* Fix

* Attempt to swap local-studio-tests to use the new studio-tests directory

* Omit storage state if running tests for local self host

* Fix test:local command

* Deprecate local-studio-test folder

* Rename local studio tests GH action to E2E test
This commit is contained in:
Joshen Lim authored and GitHub committed 2025-02-20 12:02:41 +08:00
1 parent e1d957b528
commit ca37f16f58
22 files changed
+359 -256

No files matched your search

@@ -1,16 +1,16 @@
name: Local Studio Tests
name: Studio E2E Tests
on:
push:
branches: [master]
paths:
- 'apps/studio/**'
- 'tests/local-studio-tests/**'
- 'tests/studio-tests/**'
- 'pnpm-lock.yaml'
pull_request:
branches: [master]
paths:
- 'apps/studio/**'
- 'tests/local-studio-tests/**'
- 'tests/studio-tests/**'
- 'pnpm-lock.yaml'
# Cancel old builds on new commit for same workflow + branch/PR
@@ -38,14 +38,14 @@ jobs:
- name: Install dependencies
run: pnpm i
- name: Install Playwright Browsers
run: pnpm -C tests/local-studio-tests exec playwright install --with-deps
run: pnpm -C tests/studio-tests exec playwright install --with-deps
- name: Run Playwright tests
run: pnpm test:local-studio
run: pnpm test:e2e:studio-local
# mark the action as succeeded even if the tests failed. This is temporarily until we make the tests more stable.
# continue-on-error: true
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: tests/local-studio-tests/playwright-report/
path: tests/studio-tests/playwright-report/
retention-days: 7
File renamed without changes.