Skip to content

Commit

Permalink
Convert all tests to Playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
raimohanska committed Jan 27, 2024
1 parent 75b9c19 commit 8dd3377
Show file tree
Hide file tree
Showing 12 changed files with 148 additions and 1,044 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
backend/dist
backend/localfiles
cypress
Dockerfile
frontend/.cache
ignore
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
uses: cypress-io/github-action@v2
with:
runTests: false
- name: Install deps
run: yarn
- name: Run unit tests
run: yarn test:unit
- name: Wait for DB
Expand All @@ -42,11 +40,6 @@ jobs:
run: yarn start&
env:
SESSION_SIGNING_SECRET: notsosecretthing
- name: Run cypress tests
uses: cypress-io/github-action@v2
with:
install: false
wait-on: "http://localhost:1337"
- name: Prepare Playwright
run: npx playwright install chromium
- name: Run playwright tests
Expand All @@ -56,7 +49,6 @@ jobs:
with:
name: test-results
path: |
cypress/screenshots
playwright/results
lint:
runs-on: ubuntu-latest
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ dist/
yarn-error.log
.env
*.mp4
cypress/screenshots/
cypress/videos/
backend/localfiles/
/ignore
.DS_Store
Expand Down
2 changes: 0 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ dist/
yarn-error.log
.env
*.mp4
cypress/screenshots/
cypress/videos/
backend/localfiles/
ignore/
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ yarn install
yarn dev
```

Run end-to end Cypress tests against the server you just started:
Run end-to end Playwright tests

- `yarn test-e2e:dev` to run once
- `yarn cypress` to open the Cypress UI for repeated test runs
- `yarn test:playwright` to run tests once
- `yarn test:playwright --ui` to open the Playwright UI

Connect to the local PostgreSQL database

Expand Down
Loading

0 comments on commit 8dd3377

Please sign in to comment.