Commit Graph
146 Commits
Author SHA1 Message Date
Dang Dat ff036e8c94 fixup! Patrol Web App grid 2026-05-12 11:59:35 +07:00
Dang Dat 57bca6e683 fixup! Patrol Web App grid 2026-05-12 11:59:35 +07:00
Dang Dat 0f51f2ef41 Patrol Web App grid 2026-05-12 11:59:35 +07:00
dab246 95c35d9bcd fix(test): add catch for BackendResetClient.reset
Signed-off-by: dab246 <tdvu@linagora.com>
2026-05-11 17:48:59 +07:00
dab246 2deb81a331 test(composer): add Android e2e tests for composer auto-save draft (RC1 & RC2)
Signed-off-by: dab246 <tdvu@linagora.com>
2026-05-11 17:48:59 +07:00
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 5e4ffcba41 TF-4475 Fix mobile misplaced inline when picked (#4476) 2026-05-04 09:29:01 +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 cb41b5690b TF-4308 Add E2E tests for ChooseLabelModal and NoLabelYetWidget
Signed-off-by: dab246 <tdvu@linagora.com>
2026-04-17 17:09:24 +07:00
dab246 660c4f40e2 TF-4301 Address code review comments on label feature
- Make LabelModalMixin interactor getters non-nullable; remove force-unwraps at call sites
- Show positiveLabel and add semanticLabel in progressing button for accessibility
- Use timestamp-based label name in E2E scenario to prevent flakiness on reused accounts
- Guard labelAs action with isLabelAvailable check in SingleEmailController
- Don't pop back on label creation failure so users can retry without losing context
- Block modal dismissal while label creation request is in flight
- Null-guard email.id before toggling label in ThreadView::onCreateANewLabelAction
- Log stackTrace and rethrow in DialogRouter to distinguish errors from user cancel
2026-04-17 11:58:53 +07:00
dab246 1b62990f28 TF-4301 Add E2E tests for label creation and tagging from email view 2026-04-17 11:58:53 +07:00
dab246 190ccc7bc3 TF-4301 Add "Create a new label" button in Label As menus and wire up tagging in email view 2026-04-17 11:58:53 +07:00
Dat Vu c5eb4a011d Cherry pick commit fix issue #4292 to master (#4454)
* Add folder info when open mail list from Label

(cherry picked from commit de0bb4ee02)

* Add unit test for `hasMailboxLabel` function in BaseEmailItemTile mixin

(cherry picked from commit 18f8d1847a)

* TF-4292 Add E2E test for test case `Add folder info when open mail list from Label` on mobile

(cherry picked from commit 1c209e3335)
2026-04-16 15:45:45 +07:00
dab246 2a666056c2 TF-4268 Refactor app runner: split web/mobile runners, add platform error handlers 2026-04-09 14:16:41 +07:00
dab246 2a3325ab7a TF-4265 Add integration test for attachment reminder on mobile 2026-04-07 13:20:25 +07:00
dab246 0a88a8f109 TF-4404 Keep automation keys stable across enum renames. 2026-03-27 10:36:23 +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 fdae057837 TF-4370 Fix selector/key wiring: modal instantiation does not pass the key the test expects 2026-03-25 19:45:46 +07:00
dab246 0f9ea3c778 TF-4370 Add E2E test for test case create new a tag 2026-03-25 19:45:46 +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 12b9ad4a40 TF-4367 Add E2E test for test case reply email is replied when change language on mobile 2026-03-11 13:33:28 +07:00
dab246 b7287d4b5c TF-4367 Add E2E test for test case forward email when change language on mobile 2026-03-11 13:33:28 +07:00
dab246 8246dd66fd TF-4367 Add E2E test for test case reply email when change language on mobile 2026-03-11 13:33:28 +07:00
dab246 2e8a11e7eb refactor(sentry): standardize exceptions to prevent Sentry minification 2026-03-10 11:06:16 +07:00
Dat Dang 1b29b481c0 HOTFIX Integration test 0.24.8 (#4298) 2026-02-03 12:12:44 +07:00
dab246 f7c5341797 TF-4243 Remove setupPreLogin and disposeAfterTest 2026-01-27 15:08:02 +07:00
dab246 f1feb6225d TF-4243 Add integration test on mobile for case delete_a_label 2026-01-27 15:08:02 +07:00
dab246 a05a28700a TF-4236 Fix partial-update validation for thread label ops. 2026-01-27 12:04:11 +07:00
dab246 b633bcf709 TF-4236 Remove setupPreLogin and disposeAfterTest 2026-01-27 12:04:11 +07:00
dab246 429379c308 TF-4236 Renaming _setupAll to _setUp for clarity. 2026-01-27 12:04:11 +07:00
dab246 879b18bc45 TF-4236 Fix guard delete UI when no handler is provided. 2026-01-27 12:04:11 +07:00
dab246 326f5e46f5 TF-4236 Add integration test on mobile for case remove_a_label_from_email_scenario 2026-01-27 12:04:11 +07:00
dab246 b76df6a6f6 TF-4236 Set setUp and tearDown for Patrol 2026-01-27 12:04:11 +07:00
dab246 69c3d32e3c TF-4233 Fix the response success check to use key presence instead of value nullness. 2026-01-26 09:13:54 +07:00
dab246 5a0929bff2 TF-4229 Add integration test on mobile for case edit_a_tag_scenario 2026-01-26 09:13:54 +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 cc8ba39d19 TF-4229 Add integration test on mobile for case search_email_with_tag_scenario 2026-01-22 10:54:04 +07:00
dab246 acd8a6c4f1 TF-4227 Add integration test on mobile for case display_empty_view_when_open_tag_scenario 2026-01-19 11:34:43 +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 ec75bb3cab TF-4136 Add config Sentry 2026-01-15 09:46:51 +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 7e55f68ff3 Add E2E test for test case display empty view for favorite folder 2025-11-20 15:28:30 +07:00
dab246 2fe9021c7f Add E2E test for case show full recipient field when expand all 2025-11-20 14:21:09 +07:00
dab246 b34b4455cd TF-4053 Verify empty widget in Inbox when perform E2E for move folder content 2025-11-05 05:34:21 +07:00
dab246 a5cc102d0e TF-4053 Add E2E test for test case move folder content 2025-11-05 05:34:21 +07:00
dab246 dcb19992c6 TF-4045 Only show upgrade storage when premium is available and quota is available 2025-10-15 16:13:40 +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