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 Cypress #56

Merged
merged 7 commits into from
May 2, 2023
Merged

Set up Cypress #56

merged 7 commits into from
May 2, 2023

Conversation

fkoulen
Copy link
Contributor

@fkoulen fkoulen commented May 1, 2023

This PR will set up Cypress with cypress-firebase for E2E or component testing.

  • Use cy:open to run the tests in the GUI and cy:run to run the tests in your CLI.
  • Before starting Cypress make sure to have done the following:
  1. Go to Authentication page of the Firebase Console and select an existing user to use as the testing account or create a new user. This will be the account which you use to login while running tests.
  2. Get the UID of the account you have selected and add it to your .env file with the name TEST_UID
  3. Generate and download a service account as described in the firebase-admin setup documentation. Save this to a local file called serviceAccount.json to the root folder. Make sure YOU DO NOT COMMIT THIS FILE (it is already in the .gitignore.

You can now use the following commands in your tests:
https://github.com/prescottprue/cypress-firebase/#docs

Packages that will be installed: cypress, cypress-firebase, dotenv.
PS. High number of file changes is due to changes in package-lock.json.
image

@fkoulen fkoulen requested a review from a team as a code owner May 1, 2023 20:34
@fkoulen fkoulen temporarily deployed to ENV_FRONTEND May 1, 2023 20:34 — with GitHub Actions Inactive
@fkoulen fkoulen temporarily deployed to ENV_FRONTEND May 1, 2023 20:34 — with GitHub Actions Inactive
Now you can login by just calling cy.login()
@fkoulen fkoulen temporarily deployed to ENV_FRONTEND May 1, 2023 20:36 — with GitHub Actions Inactive
@fkoulen fkoulen temporarily deployed to ENV_FRONTEND May 1, 2023 20:36 — with GitHub Actions Inactive
@fkoulen fkoulen temporarily deployed to ENV_FRONTEND May 1, 2023 20:52 — with GitHub Actions Inactive
@fkoulen fkoulen temporarily deployed to ENV_FRONTEND May 1, 2023 20:52 — with GitHub Actions Inactive
@sonarqubecloud
Copy link

sonarqubecloud bot commented May 1, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@fkoulen fkoulen enabled auto-merge May 2, 2023 08:42
@fkoulen fkoulen merged commit 424bc85 into dev May 2, 2023
@fkoulen fkoulen deleted the chore/set-up-cypress branch May 2, 2023 16:35
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