Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaces Cypress with Playwright #149

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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