Skip to content

Commit 477df5b

Browse files
committed
EDSC-4153 removes cypress
1 parent 81cc8f5 commit 477df5b

File tree

136 files changed

+221
-62263
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+221
-62263
lines changed

.eslintrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"browser": true,
55
"node": true,
66
"jest": true,
7-
"cypress/globals": true
87
},
98
"rules": {
109
// Allowing cyclic dependancies

.github/workflows/ci.yml

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -74,46 +74,6 @@ jobs:
7474
uses: codecov/codecov-action@v4
7575
env:
7676
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
77-
cypress:
78-
needs: [eslint]
79-
runs-on: ubuntu-latest
80-
strategy:
81-
matrix:
82-
node-version: ['lts/hydrogen']
83-
steps:
84-
- name: Checkout code
85-
uses: actions/checkout@v4
86-
- name: Use Node.js ${{ matrix.node-version }}
87-
uses: actions/setup-node@v4
88-
with:
89-
node-version: ${{ matrix.node-version }}
90-
- name: Cache node modules
91-
uses: actions/cache@v4
92-
env:
93-
cache-name: cache-node-modules
94-
with:
95-
# npm cache files are stored in `~/.npm` on Linux/macOS
96-
# not caching node_modules because `npm ci` removes it
97-
path: ~/.npm
98-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
99-
restore-keys: |
100-
${{ runner.os }}-build-${{ env.cache-name }}-
101-
${{ runner.os }}-build-
102-
${{ runner.os }}-
103-
- name: Install dependencies
104-
run: npm ci
105-
- name: Copy secrets example file
106-
run: npm run copy-secrets
107-
- name: Prepare for Cypress tests
108-
run: npm run cypress:prepare-ci
109-
- name: Run Cypress tests
110-
run: npm run cypress:ci
111-
- name: Upload coverage to codecov
112-
uses: codecov/codecov-action@v4
113-
env:
114-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
115-
with:
116-
directory: 'cypress-coverage'
11777
playwright:
11878
needs: [eslint]
11979
runs-on: ubuntu-latest
@@ -169,7 +129,7 @@ jobs:
169129

170130
deploy:
171131
if: success() && github.ref == 'refs/heads/main' # only run on main success
172-
needs: [jest, cypress, playwright] # only run after jest and cypress jobs complete
132+
needs: [jest, playwright] # only run after jest and playwright jobs complete
173133
runs-on: ubuntu-latest
174134
steps:
175135
- name: Checkout code

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ tmp
1313
# VSCode Settings
1414
.vscode
1515

16-
cypress/screenshots
17-
cypress/videos
1816
overrideStatic.config.json
19-
cypress-coverage
2017
.nyc_output
2118

2219
/test-results/

README.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -173,29 +173,6 @@ Once the project is built, you must ensure that the automated unit tests pass:
173173

174174
npm run test
175175

176-
### Run the Automated [Cypress](https://www.cypress.io/) tests
177-
178-
You must also ensure that the automated integration tests pass:
179-
180-
npm run cypress:run
181-
182-
You can also use the Cypress GUI with:
183-
184-
npm run cypress:open
185-
186-
##### Configuration
187-
188-
###### Cypress Secrets
189-
190-
When adding new Cypress tests, you will need to modify the secrets.config.json file. You will need to edit the "cypress" object to include data from your local database:
191-
192-
"cypress": {
193-
"user": {
194-
"id": 1, // This should match the ID of your user in the 'users' database table
195-
"username": "your username here" // Replace with the urs_id field of your user in the 'users' database table
196-
}
197-
}
198-
199176
### Deployment
200177

201178
When the time comes to deploy the application, first ensure that you have the required ENV vars set:

bin/cypress-prepare-ci

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

bin/deploy-bamboo.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ node_modules
6262
.serverless
6363
.webpack
6464
coverage
65-
cypress
6665
dist
6766
node_modules
6867
tmp

bin/jest-prepare-ci

100644100755
File mode changed.

cypress.config.mjs

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

cypress/e2e/paths/search/granules/__mocks__/browse_only/granules.body.json

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

0 commit comments

Comments
 (0)