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

Jest puppeteer tests #4425

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from
Draft

Jest puppeteer tests #4425

wants to merge 5 commits into from

Conversation

achen2401
Copy link
Contributor

@achen2401 achen2401 commented Nov 20, 2024

  • set up a test accounts so the tests can use those credentials for running testings
    for instance, in my .env file in portal directory
#for tests logging in as patient
testPatientEmail=xxxxx@gmail.com
testPatientPassword=xxxxx
#for tests logging in as admin user
testAdminEmail=xxxxadmin@gmail.com
testAdminPassword=xxxxxx
#instance URL
homePageURL=https://eproms-test.cirg.washington.edu
  • in portal directory, run npm test
    see screenshot:
Screenshot 2024-11-20 at 3 51 31 PM

Note:

  • The need to enter 2fa validation code is a blocker, can we disable it when running tests?
  • OK to use test account credentials from environment variables

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.

1 participant