Skip to content

Commit

Permalink
feat(ci) - add cypress dashboard view to CI (datahub-project#4654)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya Radhakrishnan authored and maggiehays committed Aug 1, 2022
1 parent 01bda5a commit 1c7069f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 5 additions & 4 deletions smoke-test/tests/cypress/cypress.json
Original file line number Diff line number Diff line change
@@ -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"
}
2 changes: 1 addition & 1 deletion smoke-test/tests/cypress/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1c7069f

Please sign in to comment.