Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
chore: replace cypress with testcafe (#2522)
Browse files Browse the repository at this point in the history
  • Loading branch information
clucasalcantara committed Jul 25, 2020
1 parent 6a0ad70 commit c10be6a
Show file tree
Hide file tree
Showing 46 changed files with 3,362 additions and 1,484 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
"@typescript-eslint",
"prettier",
"testing-library",
"cypress",
"testcafe",
"simple-import-sort",
"unused-imports",
"react-hooks",
Expand All @@ -31,7 +31,7 @@ module.exports = {
"plugin:react/recommended",
"prettier/@typescript-eslint",
"plugin:testing-library/react",
"plugin:cypress/recommended",
"plugin:testcafe/recommended",
],
rules: {
"@typescript-eslint/ban-ts-comment": "off",
Expand Down
20 changes: 7 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,13 @@ jobs:
run: sudo apt-get install libudev-dev libusb-1.0-0-dev

- name: Install (Yarn)
run: yarn install --frozen-lockfile
run: yarn install --ignore-engines --frozen-lockfile

- name: Install (Cypress)
run: yarn cy:install
- name: Start
run: REACT_APP_BUILD_MODE=demo BROWSER=none yarn start &

- name: Test
run: |
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
yarn test:e2e:ci
- name: Wait for App
run: yarn wait-on http://localhost:3000

- name: Upload Screenshots
uses: actions/upload-artifact@v1
if: failure()
with:
name: cypress-screenshots
path: __tests__/e2e/screenshots
- name: Test
run: xvfb-run --server-args="-screen 0 1920x1080x16" yarn test:e2e
4 changes: 4 additions & 0 deletions .testcafe-electron-rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"mainWindowUrl": "http://localhost:3000",
"appPath": "./"
}
6 changes: 0 additions & 6 deletions cypress.json

This file was deleted.

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

This file was deleted.

32 changes: 0 additions & 32 deletions cypress/integration/navbar-routing.spec.js

This file was deleted.

45 changes: 0 additions & 45 deletions cypress/integration/plugins-routing.spec.js

This file was deleted.

8 changes: 0 additions & 8 deletions cypress/integration/portfolio-routing.spec.js

This file was deleted.

36 changes: 0 additions & 36 deletions cypress/integration/profile-routing.spec.js

This file was deleted.

44 changes: 0 additions & 44 deletions cypress/integration/setting-routing.spec.js

This file was deleted.

10 changes: 0 additions & 10 deletions cypress/integration/startup.spec.js

This file was deleted.

37 changes: 0 additions & 37 deletions cypress/integration/transactions-routing.spec.js

This file was deleted.

79 changes: 0 additions & 79 deletions cypress/integration/wallet-create.spec.js

This file was deleted.

Loading

0 comments on commit c10be6a

Please sign in to comment.