Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress test refactor chartbeat tests #11400

Draft
wants to merge 7 commits into
base: cypress-test-initial-cleanup
Choose a base branch
from

Conversation

karinathomasbbc
Copy link
Collaborator

@karinathomasbbc karinathomasbbc commented Mar 15, 2024

Overall changes

Extract Chartbeat tests into function which can be shared across multiple tests

Code changes

  • Create new helper function for chartbeat tests
  • Replace all references to chartbeat tests with new function
  • Remove helper command from cy, as this is now included in the new chartbeat test
  • Chartbeat tests now run by default for all canonical pages

Testing

Environment Smoke Command Status
local true CYPRESS_APP_ENV=local CYPRESS_SMOKE=true yarn test:e2e
local false CYPRESS_APP_ENV=local yarn test:e2e
test true CYPRESS_APP_ENV=test CYPRESS_SMOKE=true yarn cypress
test false CYPRESS_APP_ENV=test yarn cypress
live true CYPRESS_APP_ENV=live CYPRESS_SMOKE=true yarn cypress
live false CYPRESS_APP_ENV=live yarn cypress

@karinathomasbbc karinathomasbbc self-assigned this Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant