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

e2e: initial iOS test flows w/ Maestro #4257

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft

Conversation

jamesacklin
Copy link
Member

Draft PR for observation/comments on Maestro end-to-end tests for the mobile app. These tests assume you're joined to both Tlon Local and ~rilfun-lidlen/fashion, and have a DM with ~ravmel-ropdyl (and have nicknames turned on).

I'll make these parameters configurable in another pass.

  • Created initial test suite to clear state and launch the app.
  • Implemented self-hosted login flow in 01-self-hosted-login.yaml, including EULA acceptance and login assertions.
  • Developed home tab navigation tests in 02-home-tab.yaml, verifying visibility of groups and messages.
  • Added group creation test in 03-create-group.yaml, ensuring proper channel setup and visibility.

To run these tests locally:

  1. Install openjdk21 if you don't have it on your system already.
  2. Install Maestro.
  3. Build the iOS app for release (pnpm build:mobile-release from project root).
  4. Open an iPhone SE (3rd generation) simulator running iOS 18.1.
  5. Run npm run ios:release from /apps/tlon-mobile.
  6. Wait until the app has booted in the simulator.
  7. Run maestro test from /apps/tlon-mobile/tests with the following arguments:
maestro test -e URL=http://localhost:8080 -e CODE=lidlut-tabwed-pillex-ridrup 00-start.yaml

- Created initial test suite in 00-start.yaml to clear state and launch the app.
- Implemented self-hosted login flow in 01-self-hosted-login.yaml, including EULA acceptance and login assertions.
- Developed home tab navigation tests in 02-home-tab.yaml, verifying visibility of groups and messages.
- Added group creation test in 03-create-group.yaml, ensuring proper channel setup and visibility.
@jamesacklin jamesacklin marked this pull request as draft December 5, 2024 22:01
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