Skip to content

Commit ef038b6

Browse files
committed
Cypress -> Playwright and no more babel!
1 parent 7e42a52 commit ef038b6

30 files changed

+516
-1456
lines changed

.babelrc.js

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

.circleci/config.yml

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ jobs:
6565
- run:
6666
name: Run tests
6767
command: yarn test:ci
68-
- persist_to_workspace:
69-
root: << pipeline.parameters.workspace_root >>
70-
paths:
71-
- project/vitest-coverage
7268

7369
lint:
7470
executor: default
@@ -82,28 +78,6 @@ jobs:
8278
command: |
8379
yarn lint:ci
8480
85-
report_coverage:
86-
executor: default
87-
steps:
88-
- checkout
89-
- *attach_workspace
90-
- *restore_cache
91-
- *yarn_install
92-
- run:
93-
name: Merge reports into one file
94-
command: |
95-
mkdir reports
96-
mkdir .nyc_output
97-
ls -al cypress-coverage
98-
cp cypress-coverage/coverage.node-*.json reports
99-
cp vitest-coverage/coverage-final.json reports/from-vitest.json
100-
yarn nyc merge reports
101-
mv coverage.json .nyc_output/out.json
102-
- run:
103-
name: Convert finalized report from JSON to lcov
104-
command: |
105-
yarn nyc report --reporter lcov --report-dir coverage
106-
10781
workflows:
10882
default:
10983
jobs:
@@ -136,16 +110,3 @@ workflows:
136110
group: 'all tests' # name this group "all tests" on the dashboard
137111
start: 'yarn dev' # start server before running tests
138112
wait-on: http://localhost:3000 # wait until server is ready
139-
post-steps:
140-
- run:
141-
name: Get each parallelized node's coverage report
142-
command: cp cypress-coverage/coverage-final.json "cypress-coverage/coverage.node-$CIRCLE_NODE_INDEX.json"
143-
- persist_to_workspace:
144-
root: << pipeline.parameters.workspace_root >>
145-
paths:
146-
- project/cypress-coverage
147-
148-
- report_coverage:
149-
requires:
150-
- unit_tests
151-
- integration_tests

.eslintignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
node_modules
22
package.json
33
yarn.lock
4-
.babelrc
5-
**/.babelrc
64
.next
75
.github
86
bin

.eslintrc.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
es6: true,
1717
node: true,
1818
},
19-
parser: '@babel/eslint-parser',
19+
parser: '@typescript-eslint/parser',
2020
plugins: ['unicorn', '@operation_code/custom-rules', 'import', 'lodash', '@typescript-eslint'],
2121
rules: {
2222
// Import Rules
@@ -268,6 +268,12 @@ module.exports = {
268268
'vitest/expect-expect': 'off',
269269
'vitest/valid-expect': 'off',
270270
'no-unused-expressions': ['off'],
271+
'playwright/expect-expect': [
272+
'warn',
273+
{
274+
assertFunctionNames: ['expect', 'assertError', 'assertFailedLogin'],
275+
},
276+
],
271277
},
272278
},
273279
{

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ cypress-coverage
2828
vitest-coverage
2929
reports
3030

31-
# nyc test coverage
32-
.nyc_output
33-
3431
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
3532
.grunt
3633

components/Form/MultiStepForm.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export function MultiStepForm<
154154
type="submit"
155155
theme="secondary"
156156
disabled={formikBag.isSubmitting}
157+
data-loading={formikBag.isSubmitting}
157158
data-testid={MULTI_STEP_STEP_BUTTON}
158159
className={cx('group', isFirstStep && 'w-full')}
159160
>

cypress.config.js

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

cypress/README.md

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

cypress/e2e/faq.spec.js

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

0 commit comments

Comments
 (0)