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

chore(e2e-tests): Only record cypress runs on CI #16190

Merged
merged 1 commit into from
Jul 30, 2019
Merged

chore(e2e-tests): Only record cypress runs on CI #16190

merged 1 commit into from
Jul 30, 2019

Conversation

sidharthachatterjee
Copy link
Contributor

@sidharthachatterjee sidharthachatterjee commented Jul 29, 2019

Currently end to end tests don't work locally when run via yarn test because cypress complains of being called with --record but without a secret and project ID

Since cypress dashboard secrets and project IDs are in Circle CI config and we shouldn't record local cypress runs IMO anyway, this PR checks you're on CI and only then passes in --record when running cypress

@sidharthachatterjee sidharthachatterjee requested a review from a team as a code owner July 29, 2019 16:53
@sidharthachatterjee sidharthachatterjee changed the title Only record cypress runs on CI chore(e2e-tests): Only record cypress runs on CI Jul 29, 2019
Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bit messy, but better that than issues with running those locally. Thanks!

@pieh pieh merged commit 1641821 into master Jul 30, 2019
@pieh pieh deleted the fix/cypress branch July 30, 2019 11:06
@sidharthachatterjee
Copy link
Contributor Author

Yeah. We should definitely clean up this once cypress supports passing in the record options via the config json or an env variable @pieh

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.

2 participants