Skip to content

Commit

Permalink
feat(frontend): ✨ Setup playwright for testing and remove cy… (#86)
Browse files Browse the repository at this point in the history
* feat(frontend): ✨ Setup playwright for testing and remove cypress

Delete the cypress folder. Install playwright and ran example-tests to check if it works. Co-authored-by: Jakob <jakob.gregusson@gmail.com>

* ci(frontend): 💚 Add CI to run tests on pull requests
  • Loading branch information
luctra02 authored and GitHub committed Feb 19, 2024
1 parent 05916bd commit 756307c
Show file tree
Hide file tree
Showing 16 changed files with 722 additions and 1,959 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,24 @@ jobs:
cache: "npm"
- run: npm ci # Clean install packages
- run: npx prettier . --check # Run prettier

test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"x-generation-date": "2024-02-16T16:54:45.366Z"

"x-generation-date": "2024-02-19T13:10:50.248Z"

},
"x-strapi-config": {
"path": "/documentation",
Expand Down
12 changes: 0 additions & 12 deletions cypress/cypress.config.js

This file was deleted.

6 changes: 0 additions & 6 deletions cypress/cypress/e2e/test.cy.js

This file was deleted.

5 changes: 0 additions & 5 deletions cypress/cypress/fixtures/example.json

This file was deleted.

25 changes: 0 additions & 25 deletions cypress/cypress/support/commands.js

This file was deleted.

20 changes: 0 additions & 20 deletions cypress/cypress/support/e2e.js

This file was deleted.

Loading

0 comments on commit 756307c

Please sign in to comment.