Skip to content

Commit 12d6dde

Browse files
committed
test revert
1 parent 0c2543c commit 12d6dde

File tree

5 files changed

+34
-298
lines changed

5 files changed

+34
-298
lines changed

.github/workflows/develop-deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Eslint check
2828
run: yarn run lint
2929
- name: Cypress run
30-
uses: cypress-io/github-action@v5
30+
uses: cypress-io/github-action@v4
3131
with:
3232
build: yarn run build
3333
start: yarn run dev

.github/workflows/develop-test.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,11 @@ jobs:
2727
- name: Eslint check
2828
run: yarn run lint
2929
- name: Cypress run
30-
uses: cypress-io/github-action@v5
30+
uses: cypress-io/github-action@v4
3131
with:
3232
build: yarn run build
3333
start: yarn run dev
3434
wait-on: 'http://localhost:3000'
3535
browser: chrome
36-
record : true
37-
env:
38-
CYPRESS_RECORD_KEY: 4737836d-3dd9-4903-bcf6-24c5e4d81c6c
39-
CYPRESS_PROJECT_ID: a8nh14
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4136
- name: Upload coverage reports to Codecov
4237
uses: codecov/codecov-action@v3

cypress/plugins/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,12 @@ module.exports = (on, config) => {
22
require('@cypress/code-coverage/task')(on, config);
33
//Used to instrument code ran like unit tests
44
on('file:preprocessor', require('@cypress/code-coverage/use-babelrc'));
5+
on('before:browser:launch', (browser, launchOptions) => {
6+
if (browser.family === 'chromium') {
7+
console.log('Adding Chrome flag: --disable-dev-shm-usage');
8+
launchOptions.args.push('--disable-dev-shm-usage');
9+
}
10+
return launchOptions;
11+
});
512
return config;
613
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
"babel-loader": "^8.2.3",
118118
"babel-plugin-istanbul": "^6.1.1",
119119
"css-loader": "^3.6.0",
120-
"cypress": "^12.17.3",
120+
"cypress": "^10.11.0",
121121
"eslint": "^8.26.0",
122122
"eslint-config-prettier": "^8.5.0",
123123
"eslint-plugin-import": "^2.26.0",

0 commit comments

Comments
 (0)