test: add selenium acceptance tests to nightly build - Bonitoo/selenium nightly (#15795)
* add selenium acceptance tests to circleci * remove selenium workflow * rename artefacts to artifacts * rename artefacts to artifacts in pipeline too * remove sleep and add endpoint checkpull/15851/head
parent
30623f65fe
commit
7f964b833d
|
@ -80,6 +80,45 @@ jobs:
|
|||
- store_artifacts:
|
||||
path: ui/cypress/screenshots
|
||||
destination: screenshots
|
||||
selenium_accept:
|
||||
docker:
|
||||
- image: circleci/node:13.0.1-stretch-browsers
|
||||
- image: quay.io/influxdb/influx:nightly
|
||||
command: [ --e2e-testing=true ]
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Environment check
|
||||
command: |
|
||||
git --version
|
||||
node --version && npm --version
|
||||
docker --version
|
||||
google-chrome --version && which google-chrome && chromedriver --version && which chromedriver
|
||||
timeout 300 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:9999)" != "200" ]]; do sleep 5; done' || false
|
||||
- run:
|
||||
name: Checkout Tests
|
||||
command: git clone --single-branch --branch 2.0-Alpha https://github.com/bonitoo-io/selenium-accept-infl2.git
|
||||
- run:
|
||||
name: Selenium tests
|
||||
command: |
|
||||
set +e
|
||||
cd selenium-accept-infl2
|
||||
npm install
|
||||
npm test; TEST_RESULT=$?
|
||||
npm run report:html
|
||||
npm run report:junit
|
||||
mkdir -p ~/test-results/cucumber
|
||||
mkdir -p ~/artifacts/html
|
||||
cp ~/project/selenium-accept-infl2/report/cucumber_report.html ~/artifacts/html/cucumber_report.html
|
||||
cp ~/project/selenium-accept-infl2/report/cucumber_junit.xml ~/test-results/cucumber/report.xml
|
||||
cp ~/project/selenium-accept-infl2/report/cucumber_junit.xml ~/artifacts/report.xml
|
||||
cp -r ~/project/selenium-accept-infl2/screenshots ~/artifacts
|
||||
ls -al
|
||||
exit $TEST_RESULT
|
||||
- store_test_results:
|
||||
path: ~/test-results
|
||||
- store_artifacts:
|
||||
path: ~/artifacts
|
||||
jstest:
|
||||
docker:
|
||||
- image: circleci/golang:1.12-node-browsers
|
||||
|
@ -276,7 +315,9 @@ workflows:
|
|||
- litmus_nightly:
|
||||
requires:
|
||||
- deploy-nightly
|
||||
|
||||
- selenium_accept:
|
||||
requires:
|
||||
- deploy-nightly
|
||||
release:
|
||||
jobs:
|
||||
- gotest:
|
||||
|
|
Loading…
Reference in New Issue