Skip to content

Commit 38b2acd

Browse files
committed
Fix Integ tests 3
Signed-off-by: Vaibhav Agarwal <vaibhoag@amazon.com>
1 parent 168bef7 commit 38b2acd

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

.github/actions/run-cypress-tests/action.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,25 +124,21 @@ runs:
124124
# timeout 300 bash -c 'while [[ "$(curl -s localhost:5601/api/status | jq -r '.status.overall.state')" != "green" ]]; do sleep 5; done'
125125
# for now just chrome, use matrix to do all browsers later
126126
- name: Cypress tests
127-
uses: cypress-io/github-action@v5
127+
uses: cypress-io/github-action@v2
128128
if: ${{ inputs.with-security == 'false' }}
129129
with:
130130
working-directory: OpenSearch-Dashboards/plugins/index-management-dashboards-plugin
131-
command: yarn run cypress run --config-file cypress.config.js
131+
command: yarn run cypress run
132132
wait-on: 'http://localhost:5601'
133133
browser: chrome
134-
env:
135-
NODE_OPTIONS: '--expose-gc'
136134
- name: Cypress tests
137-
uses: cypress-io/github-action@v5
135+
uses: cypress-io/github-action@v2
138136
if: ${{ inputs.with-security == 'true' }}
139137
with:
140138
working-directory: OpenSearch-Dashboards/plugins/index-management-dashboards-plugin
141-
command: yarn run cypress run --config-file cypress.config.js --env SECURITY_ENABLED=true,openSearchUrl=https://localhost:9200,WAIT_FOR_LOADER_BUFFER_MS=500
139+
command: yarn run cypress run --env SECURITY_ENABLED=true,openSearchUrl=https://localhost:9200,WAIT_FOR_LOADER_BUFFER_MS=500
142140
wait-on: 'http://localhost:5601'
143141
browser: chrome
144-
env:
145-
NODE_OPTIONS: '--expose-gc'
146142
# Screenshots are only captured on failure, will change this once we do visual regression tests
147143
- uses: actions/upload-artifact@v4
148144
if: failure()

cypress.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module.exports = defineConfig({
4848
},
4949
],
5050
setupNodeEvents(on, config) {
51-
config.env.NODE_OPTIONS = "—max-old-space-size=40960";
51+
config.env.NODE_OPTIONS = "—max-old-space-size=131072";
5252
return config;
5353
},
5454
},

0 commit comments

Comments
 (0)