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

Set up a new firebase environment for cypress #626

Merged
merged 9 commits into from
Oct 9, 2019
Merged

Conversation

tmhung88
Copy link
Contributor

@tmhung88 tmhung88 commented Oct 8, 2019

  • Inserted some seed data
  • Had Cypress and App run against the same environment, onearmy-test-ci, when executing e2e tests
  • Added a test case that is to filter howtos by tags
  • To start the app in the testing env, run this command yarn start:ci. Please note it runs at a different port which is localhost:3456

image

- if [ $REACT_APP_BRANCH != 'production' ];
then yarn cy:ci;
fi
- yarn cy:run
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@BenGamma I removed the quick fix because this PR has cypress/app run against the same environment whenever tests are executed

}

const siteVariant = getSiteVariant(branch, e)

Copy link
Contributor Author

@tmhung88 tmhung88 Oct 8, 2019

Choose a reason for hiding this comment

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

@BenGamma For every environment, I think, we need to define the site variant as an env variable so that we don't have to if/else on branch which is very error-prone.

@tmhung88 tmhung88 changed the title Set up the testing environment for cypress Set up a new firebase environment for cypress Oct 8, 2019
@chrismclarke chrismclarke merged commit 6edbe0d into master Oct 9, 2019
@tmhung88 tmhung88 deleted the data_seeding branch October 10, 2019 02:36
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