Skip to content

Commit 71cf356

Browse files
authored
dev: replace cypress with playwright (#1687)
* dev: replace cypress with playwright * add config to ts * code review
1 parent cfefe77 commit 71cf356

25 files changed

Lines changed: 376 additions & 335 deletions

.github/workflows/validate.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
with:
4242
useLockFile: false
4343

44+
- name: 🎭 Install Playwright browsers
45+
run: npx playwright install --with-deps chromium
46+
4447
- name: ▶️ Run validate script
4548
run: npm run validate
4649
env:

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,7 @@ npm-debug.log*
3434

3535
# IDE settings
3636
.idea
37+
38+
# Playwright
39+
test-results
40+
playwright-report

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ this project:
5050
- test:ssr - This ensures that downshift works with server-side rendering (it
5151
can run and render in an environment without the DOM). These tests live in
5252
`other/ssr/__tests__`
53-
- test:cypress - This runs tests in an actual browser. It runs and tests the
54-
storybook examples. These tests live in `cypress/integration`.
53+
- test:e2e - This runs tests in an actual browser. It runs and tests the
54+
docusaurus examples. These tests live in `e2e/`.
5555
5656
### opt into git hooks
5757

babel.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ const customPreset = api => {
1919
const plugins = [
2020
require.resolve('babel-plugin-dynamic-import-node'),
2121
['no-side-effect-class-properties'],
22-
['@babel/plugin-proposal-private-property-in-object', {loose: true}], // cypress warning because loose is false in preset-env
23-
['@babel/plugin-proposal-private-methods', {loose: true}], // cypress warning because loose is false in preset-env
2422
...evaluatedPreset.plugins,
2523
]
2624
return {

cypress.config.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

cypress/.eslintrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

cypress/e2e/combobox.cy.js

Lines changed: 0 additions & 130 deletions
This file was deleted.

cypress/e2e/useCombobox.cy.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

cypress/e2e/useMultipleCombobox.cy.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

cypress/e2e/useMultipleSelect.cy.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)