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

[Code health] Set up end to end testing (local web, mobile, and database emulation) #1699

Closed
sufyanAbbasi opened this issue Apr 3, 2024 · 2 comments
Assignees
Labels
type: code health Improvements to readability or robustness of codebase
Milestone

Comments

@sufyanAbbasi
Copy link
Contributor

Mirrors google/ground-android#2420

Formulating an overall strategy to run end to end testing on the mobile and web app. Will need to configure something like Docker or Github Hosted Runners which will spin up a local web server + Selenium WebDriver, local Android emulator + app, and a set up local Firebase database/emulator then run through a set of core tests.

@gino-m
Copy link
Collaborator

gino-m commented Apr 12, 2024

Next steps:

  • Get full flow (web+Android) working on GitHub Actions to size memory and runtime
  • Split into two (web + Android), testing Firestore state in between
  • Add additional test coverage (CUJs and screen rotation)

@sufyanAbbasi
Copy link
Contributor Author

sufyanAbbasi commented Jun 11, 2024

Update: With the submission of #1820, we now have the ability to run three commands in PR comments:

  • /createTest will run through the survey creation flow
  • /verifyTest will run through the survey submission verification flow against the data/test-submit local snapshot
  • /e2eTest will run the create test, then pass through data to the ground-android's submit test flow, then will pass that data through to the verify test.
    • Unfortunately, there is still a bug with the emulator that we need to fix up

I believe all the rest of the TODOs are Android related, I think this flow is working quite well! Closing out this bug for now, leaving the Android one, google/ground-android#2420, open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: code health Improvements to readability or robustness of codebase
Projects
Status: Done
Development

No branches or pull requests

2 participants