feat(ci) - add cypress dashboard view to CI (#4654)

This commit is contained in:
Aditya Radhakrishnan 2022-04-13 07:30:24 -07:00 committed by GitHub
parent 53d357b4eb
commit cb45d67b46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 5 deletions

View File

@ -78,6 +78,8 @@ jobs:
run: ./gradlew build -x check -x docs-website:build
- name: Smoke test
run: ./smoke-test/smoke.sh
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY}}
- uses: actions/upload-artifact@v2
if: always()
with:

View File

@ -1,6 +1,7 @@
{
"baseUrl": "http://localhost:9002/",
"chromeWebSecurity": false,
"viewportHeight": 960,
"viewportWidth": 1536
"baseUrl": "http://localhost:9002/",
"chromeWebSecurity": false,
"viewportHeight": 960,
"viewportWidth": 1536,
"projectId": "hkrxk5"
}

View File

@ -15,7 +15,7 @@ def ingest_cleanup_data():
def test_run_cypress(frontend_session, wait_for_healthchecks):
command = f"npx cypress run"
command = f"npx cypress run --record"
print('starting?')
proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd="tests/cypress")
stdout = proc.stdout.read()