Commit Graph
21 Commits
Author SHA1 Message Date
Dat Dang 3851df15c6 Patrol isolate Android tests (#4469)
* Patrol POC replace Firebase Test Lab with local Android emulator

Replace GCloud auth, Firebase Test Lab, and ngrok with a local Android AVD via
reactivecircus/android-emulator-runner on CI. The backend runs in Docker and is
reachable from the emulator at the QEMU host alias 10.0.2.2.

CI / scripts:
- Remove Google Cloud auth, Firebase run step, and ngrok tunnel
- Add KVM, Gradle, and AVD cache setup; shard tests across 4 parallel runners
- Scripts: drop ngrok, point jmap.properties to 10.0.2.2, manage cleanup via trap
- prebuild.sh: parallelize module builds, suppress noisy output
- provisioning.sh: parallelize james-cli/curl calls, fix hardcoded container IP

Backend reset for test isolation:
- Add backend-reset-server.py: HTTP server that restarts tmail-backend and
  re-runs provisioning on POST /reset, so each test starts with a clean state
- Add BackendResetClient.dart: Dart client called in patrolTearDown
- Reduce visibleTimeout 30s → 10s; allow insecure connections in debug mode

* Patrol POC fix flaky tests

Replace fixed pumpAndSettle delays with waitUntilVisible/waitUntilExists so
tests react to actual UI state rather than arbitrary timeouts.

- Add PatrolFileExtensions.toFileInfo() and use it in composer robot/scenario utils
- Guard MobileEditorWidget.dispose() under isIntegrationTesting to prevent teardown crash
- Fix scroll direction (AxisDirection.down) in calendar attendee button scroll
- Add scrollTo() before tap in label modal robot and edit-tag scenario
- Wait on EmailTileBuilder (not label name) after email provisioning — more reliable
- Inline image: wait for HtmlContentViewer to contain base64 data before asserting
- Use native platform wait for inline image in upload scenario
- Remove unnecessary Future.delayed and extra pumpAndSettle calls
- Pre-select English before switching language to ensure deterministic starting state
- Fix app_grid back-press sequence
2026-05-11 08:09:31 +07:00
Dat Dang b18813a096 Patrol web POC (#4450)
* Patrol POC add UIKeys to production widgets for web testability

Add semantic UIKeys to composer widgets, login controller, mailbox
dashboard, thread view, and web finger extension to enable reliable
widget targeting in Patrol web integration tests.

* Patrol POC add web login and send email Patrol integration test scenarios

Add web-specific test scenarios (login with basic auth, send email),
a new web_send_email_test entry point, and a web tag in TestTags.
Update test_base, requires_login_mixin, composer_robot, and
thread_robot to support web platform.

* Patrol POC add Patrol web integration test workflow and scripts

Add GitHub Actions workflow for running Patrol web integration tests.
Add patrol-web-integration-test-with-docker.sh and
patrol-web-local-integration-test-with-docker.sh scripts.
Minor fix to patrol-local-integration-test-with-docker.sh.

* Patrol POC update gitignore and web/index.html for Patrol web support

* poc: implement cross-platform robot factory architecture

Introduces Abstract Factory + conditional export infrastructure from
ADR-0081. Platform selection resolved at compile time via dart.library.html
— no if/else in any logic class.

New structure:
- factories/: RobotFactory, Mobile/WebRobotFactory, conditional provider
- robots/abstract/: AbstractLogin/Thread/ComposerRobot interfaces
- robots/mobile/: thin wrappers over existing robots
- robots/web/: WebComposerRobot overrides addContent for web
2026-04-21 14:34:47 +07:00
Dat Dang e3dfadce34 Upgrade Patrol to 4.5.0 (#4446) 2026-04-17 20:50:22 +07:00
dab246 b97abfbf69 TF-4404 Add e2e test for Mail to attendees action on mobile 2026-03-27 10:36:23 +07:00
dab246 e2c158d633 TF-4373 Add E2E test for test case delete thread to trash on mobile 2026-03-12 15:15:03 +07:00
dab246 a8e0bf6167 TF-4367 Remove the duplicated closeEmailDetailedView helper from this mixin. 2026-03-11 13:33:28 +07:00
dab246 9e9e666518 TF-4367 Add E2E test for test case forward email is forwarded when change language on mobile 2026-03-11 13:33:28 +07:00
dab246 f9ff9ecde7 TF-4229 Add isSelected && condition to non-RTL selectedIconWidget rendering to match RTL behavior. 2026-01-22 10:54:04 +07:00
dab246 2052fdbe5e TF-4227 Add integration test on mobile for case display_view_with_all_email_with_tag_scenario 2026-01-19 11:34:43 +07:00
dab246 a23d15a9ca TF-4136 refactor(logging): replace logError with logWarning for non-critical cases 2026-01-06 13:53:22 +07:00
dab246 d686b66f75 TF-4058 Update E2E test to compatible with flutter version 3.32.8 2025-10-15 13:54:34 +07:00
dab246 8de206e555 TF-3563 Add integration test for case view inline image in EmailView 2025-09-16 09:33:44 +07:00
Dang Dat c6ace7a9b5 E2E Fix integration test Twake Mail v0.18.4
E2E Fix integration test Twake Mail v0.18.4
2025-09-11 10:31:20 +07:00
DatDang 52f9da941b TF-3535 E2E composer attachment and inline 2025-09-11 10:31:20 +07:00
dab246 5a64ff7e8f TF-3894 Fix blank email content when opening email 2025-09-04 09:30:29 +07:00
dab246 23ecdfbf11 TF-2948 Apply new identity view for web
Signed-off-by: dab246 <tdvu@linagora.com>
2025-07-31 14:45:59 +07:00
dab246 ef1f979c4b TF-3685 Add integration test for case change identity in draft email
Signed-off-by: dab246 <tdvu@linagora.com>
2025-05-13 23:40:12 -07:00
dab246 b6de5d9391 TF-3707 Add integration test for case empty trash
Signed-off-by: dab246 <tdvu@linagora.com>
2025-05-06 21:15:42 -07:00
DatDang 43aee1d286 fixup! TF-3649 Fix reply to own sent email 2025-04-15 02:42:58 -07:00
dab246 bd8c5ccfbf TF-3517 Fix "Reply to *me*" field is added when save an email as draft
Signed-off-by: dab246 <tdvu@linagora.com>
2025-03-02 21:06:11 -08:00
dab246 abdcb614ce TF-3493 Refactor integration test code for performance and maintainability
Signed-off-by: dab246 <tdvu@linagora.com>
2025-02-23 22:40:30 -08:00