Skip to content

Commit

Permalink
replaces Cypress with Playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgnlez committed Jun 15, 2023
1 parent 1fde0bf commit 821c31f
Show file tree
Hide file tree
Showing 38 changed files with 613 additions and 3,773 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/.next
/node_modules
/cypress
/public
/storybook-static
25 changes: 25 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: e2e:tests

on: [pull_request]

jobs:
e2e_client:
timeout-minutes: 15
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: yarn
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run Playwright tests
run: yarn playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
32 changes: 0 additions & 32 deletions .github/workflows/test.yml

This file was deleted.

9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ yarn-error.log*
# vercel
.vercel

# Test with Cypress
/cypress/screenshots
/cypress/videos

# Yarn
.yarn/*
.pnp.*
Expand All @@ -48,3 +44,8 @@ tsconfig.tsbuildinfo

# storybook
/storybook-static/

# e2e testing
/e2e/test-results/
/playwright-report/
/playwright/.cache/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This is a project template which could be used to the creation of new projects.
- Authentication based on [Next-Auth](https://next-auth.js.org/) already implemented
- [Redux](https://redux.js.org/) and [Redux-Toolkit](https://redux-toolkit.js.org/)
- [Typescript](https://www.typescriptlang.org/) already configured
- [Cypress](https://www.cypress.io/) as testing client
- [Playwright](https://playwright.dev/) as e2e testing framework
- git workflow and hooks
- editorconfig and code style based on [Airbnb](https://github.com/airbnb/javascript)
- [Storybook](https://storybook.js.org/) also available and configured
Expand Down
10 changes: 0 additions & 10 deletions cypress.config.ts

This file was deleted.

143 changes: 0 additions & 143 deletions cypress/e2e/1-getting-started/todo.cy.js

This file was deleted.

Loading

0 comments on commit 821c31f

Please sign in to comment.