Commit Graph
88 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
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 1b62990f28 TF-4301 Add E2E tests for label creation and tagging from email view 2026-04-17 11:58:53 +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 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 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 f1feb6225d TF-4243 Add integration test on mobile for case delete_a_label 2026-01-27 15:08:02 +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 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 cc8ba39d19 TF-4229 Add integration test on mobile for case search_email_with_tag_scenario 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 2fe9021c7f Add E2E test for case show full recipient field when expand all 2025-11-20 14:21:09 +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
dab246 dbb5568e4a TF-4068 Add E2E test for select identity as default 2025-10-15 11:59:00 +07:00
dab246 5584982294 TF-4056 Add E2E for persist filter when change search input text 2025-10-14 05:20:52 +07:00
DatDang bfb20d3b6c TF-3569 E2E Mailbox toggle read/star/spam 2025-09-17 16:15:28 +07:00
DatDang e6c3ebf0d7 TF-3579 E2E Mailbox mark as read 2025-09-17 12:47:45 +07:00
DatDang a65bf27bb9 TF-3579 E2E Mailbox move and delete email 2025-09-17 12:47:45 +07:00
DatDang 5c4329ba2a TF-3605 E2E Mailbox create, rename, move and delete sub folder 2025-09-17 11:43:22 +07:00
DatDang 7f4dcf8b38 TF-3611 E2E Long press spam empty and recover 2025-09-17 09:42:26 +07:00
DatDang 1799364a35 TF-3611 E2E Long press trash empty and recover 2025-09-17 09:42:26 +07:00
DatDang 8fe9e4905e TF-3611 E2E Spam mailbox empty and recover 2025-09-17 09:42:26 +07:00
DatDang 90e4962dd4 TF-3611 E2E Trash mailbox empty and recover 2025-09-17 09:42:26 +07:00
DatDang 03694d8848 TF-3614 E2E quota view increase 2025-09-16 11:17:21 +07:00
DatDang e5d996eeb3 TF-3614 E2E Team mailbox receive email 2025-09-16 11:17:21 +07:00
DatDang 9222f1ca22 TF-3614 E2E Search mailbox 2025-09-16 11:17:21 +07:00
DatDang c09a2c92b2 TF-3631 E2E log out 2025-09-16 10:03:59 +07:00
dab246 8de206e555 TF-3563 Add integration test for case view inline image in EmailView 2025-09-16 09:33:44 +07:00
dab246 5ef01d299f TF-3563 Add integration test for case download attachment in EmailView
Signed-off-by: dab246 <tdvu@linagora.com>
2025-09-16 09:33:44 +07:00
DatDang e82039152c TF-3558 E2E Mailbox switch 2025-09-16 06:05:51 +07:00
DatDang a1c7fbe242 TF-3558 E2E Mailbox pull to refresh 2025-09-16 06:05:51 +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
dab246 3aa4aa1b30 TF-3609 Add integration test for case create rule with email address in EmailView
Signed-off-by: dab246 <tdvu@linagora.com>
2025-09-11 10:31:20 +07:00
dab246 d02f45edcc TF-3609 Add integration test for case compose email from email address in EmailView
Signed-off-by: dab246 <tdvu@linagora.com>
2025-09-11 10:31:20 +07:00
dab246 9077e5567c TF-3609 Add integration test for case copy email address to Clipboard in EmailView
Signed-off-by: dab246 <tdvu@linagora.com>
2025-09-11 10:31:20 +07:00
dab246 2e62184c35 TF-3609 Add integration test for case long press copy email address to Clipboard in EmailView
Signed-off-by: dab246 <tdvu@linagora.com>
2025-09-11 10:31:20 +07:00
dab246 430a41a7bd TF-3609 Add integration test for case display email address info dialog in EmailView
Signed-off-by: dab246 <tdvu@linagora.com>
2025-09-11 10:31:20 +07:00
DatDang 0b16fea42a TF-3564 E2E Mailbox count real time update 2025-09-11 10:31:20 +07:00