File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -70,16 +70,13 @@ jobs:
70
70
run : |
71
71
cd OpenSearch-Dashboards
72
72
yarn start --no-base-path --no-watch --server.host="0.0.0.0" &
73
- sleep 420
74
- # in main branch, OSD server requires more time to bundle and bootstrap
75
- # timeout 300 bash -c 'while [[ "$(curl -s localhost:5601/api/status | jq -r '.status.overall.state')" != "green" ]]; do sleep 5; done'
76
- # for now just chrome, use matrix to do all browsers later
73
+ timeout 600 bash -c 'until [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:5601/api/status)" == "200" ]] && [[ "$(curl -s localhost:5601/api/status | jq -r '.status.overall.state')" == "green" ]]; do echo "Waiting for OpenSearch-Dashboards server to be ready..."; sleep 5; done'
77
74
- name : Cypress tests
78
75
uses : cypress-io/github-action@v2
79
76
with :
80
77
working-directory : OpenSearch-Dashboards/plugins/index-management-dashboards-plugin
81
78
command : yarn run cypress run
82
- wait-on : ' http://localhost:5601'
79
+ wait-on : ' http://localhost:9200, http://localhost: 5601'
83
80
browser : chrome
84
81
# Screenshots are only captured on failure, will change this once we do visual regression tests
85
82
- uses : actions/upload-artifact@v1
You can’t perform that action at this time.
0 commit comments