Commit Graph
57 Commits
Author SHA1 Message Date
Dat Vu d49bf3fdb8 TF-5187 Dispose the dashboard on a forced sign-out so the search left open is reset (#5196) 2026-11-27 19:34:42 +07:00
Dat Dang 62f5e8fd47 Fix web Patrol flakes and remove dead GitHub nightly Android workflow (#5127) 2026-11-18 18:54:05 +07:00
dab246 d675bfa950 TF-5022 T-09 Run the stand-alone account switcher e2e on Android and iOS through a shared AccountSwitcherRobot base 2026-11-17 10:42:08 +07:00
dab246 1e5e48a331 TF-5022 T-07 Add web e2e for stand-alone avatar switcher flows 2026-11-13 17:22:41 +07:00
dab246 6128ba45fa TF-5022 T-06 Seed alice→bob delegation for e2e 2026-11-13 17:22:21 +07:00
Dat Vu 7405c072bc Drop unsafe-inline from the web CSP with a per-request script nonce (#5135) 2026-11-13 16:51:45 +07:00
Dat Vu 54fee9ffb5 Chore: upgrade Flutter to 3.47.9 (#5083) 2026-11-11 17:21:45 +07:00
Dat Dang 1ca9c82acb Add automated memory leak check for web and Android (#5113) 2026-11-09 09:19:45 +07:00
Dat VuandDat H. Pham d043c98431 Move inline web scripts to files and enforce the nginx page policy (#5115)
* Move inline web scripts to files and enforce the nginx page policy

* Render CSP_* through the nginx image entrypoint and allow blob: in connect-src

* Allow CSP_IMG_SRC and document nginx add_header inheritance and connect-src ports

* Keep a read-only logo mount from stopping nginx and add optional CSP_REPORT_URI

* fix: start nginx when the root or a logo mount is read-only

* docs: document the web CSP variables and upgrade steps

---------

Co-authored-by: Dat H. Pham <dphamhoang@linagora.com>
2026-11-08 10:54:57 +07:00
Dat Dang cab851c4fe Speed up the Patrol integration suites with a backend per test, web workers and FTL shards (#5068) 2026-11-06 15:32:36 +07:00
Dat Dang 8be9171f41 Keep CI logs to diagnose flaky Patrol tests (#5029) 2026-10-28 15:31:59 +07:00
Dat H. Pham fe148f2f81 Test HTML email display rules on every viewer and pane width (#4966) 2026-10-21 05:01:30 +07:00
Dat H. Pham 73b2c207fa Match test platform metadata as whole names, not inside identifiers 2026-10-20 10:03:55 +07:00
Dat Dang c936325076 2509 Add release security scan workflow (#4958) 2026-10-19 11:15:28 +07:00
Benoit TELLIER 52b864ad82 Adapt QA scripts to support web and mobile 2026-10-15 17:36:45 +07:00
Dat Dang c317bae063 TF-4827 Read dropped files lazily (#4908) 2026-10-13 13:59:00 +07:00
Dat H. Pham e7f287473c [MCP Marionette] Use MCP to drive the UI (#4916) 2026-10-07 11:37:30 +07:00
Benoit TELLIER 3536f9fe42 [QA] Add a twake-qa compatible QA environment 2026-10-04 11:43:24 +07:00
Dat Dang 5f6b55867f 2509 Pin pica/dotlottie at build time, serve CanvasKit locally, add nginx baseline hardening (#4912) 2026-10-02 06:58:42 +07:00
Dat Vu 585b1083f8 Run every test in CI without registration (#4903) 2026-09-28 17:19:54 +07:00
Dang Dat 9dcc5702b2 Expose error in prebuild script 2026-09-14 15:20:42 +07:00
Dat H. Pham a405777be7 fix: write flutter test report to a file instead of stdout 2026-08-27 15:32:53 +07:00
Rene Cordier 2a30ab80de [Build] Firebase policy changes: upload to specific bucket name 2026-08-26 12:46:31 +07:00
Rene Cordier c0e66a4a28 [E2E] Mobile test with firebase test lab (#4602) 2026-07-01 15:49:07 +07:00
Dat H. Pham dffe0e19ce fix: prebuild failed 2026-06-04 10:58:09 +07:00
Rene Cordier 5ca54862e9 E2E mobile tests with Jenkins 2026-06-01 16:25:25 +07:00
Rene Cordier 527eceae9a Jenkinsfile for running patrol web e2e tests on Jenkins 2026-05-27 13:02:28 +07:00
Rene Cordier 03a2967f5f [Patrol] sed command that works for both linux and macos 2026-05-27 13:02:28 +07:00
Dat Dang 7534f369cb Patrol Web enable reset server (#4557) 2026-05-26 15:41:29 +07:00
Rene Cordier 33538c6c50 Patrol E2E integration tests: webadmin provisioning 2026-05-25 14:58:16 +07:00
Dat H. Pham f3c536c99a Fix iOS build with pod repo update 2026-05-22 15:54:01 +07:00
dab246 9ee1ba7fc5 Fix silent failure and stale adapter guard reset 2026-05-21 13:25:43 +07:00
dab246 3d3981a5a0 Configure workspace root, consolidate overrides, and upgrade dependencies 2026-05-21 13:25:43 +07:00
Dat Vu 54ffff4e1d Hotfix: Second Save as Draft Fails for Draft Emails with Attachments or Inline Images (#4505) 2026-05-14 17:11:45 +07:00
Dang Dat 89f0a77a83 Patrol Delete user data instead of restart docker 2026-05-12 14:24:32 +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 H. Pham 5e1348f261 Fix sentry minified (#4481) 2026-05-05 14:19:28 +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 fae12ced76 TF-4169 Add Labels module in prebuild.sh for CI 2026-01-19 11:34:43 +07:00
dab246 6e09d853fd feat(ai-scribe): Fix the English locale file `(intl_en.arb)` is missing all three AI Scribe keys
feat(ai-scribe): Fix async function declared without proper return type annotation.

feat(ai-scribe): Fix Async operations not properly awaited.

feat(ai-scribe): Fix inconsistent capitalization between button labels.

feat(ai-scribe): Fix GenerateAITextFailure check will never match.

feat(ai-scribe): Fix consider validating text input for predefined actions.

feat(ai-scribe): Using a subshell for directory isolation.

feat(ai-scribe): Fix verify the mock usage or document intent.

feat(ai-scribe): Using a more conventional import for Offset.

feat(ai-scribe): Adding error handling for consistency

feat(ai-scribe): Remove `fromJson` and `toJson` of AIResponse

feat(ai-scribe): Using constants for role values.

feat(ai-scribe): Using a more specific import.

feat(ai-scribe): Using Timer for cleaner lifecycle management

feat(ai-scribe): Adding error handling to fromMap() for consistency.

feat(ai-scribe): Disposing the ValueNotifier

feat(ai-scribe): Redundant null check after assignment

feat(ai-scribe): Fix calling `registerSelectionChangeListener` multiple times may be inefficient.

feat(ai-scribe): Safer type handling for JavaScript callback args

feat(ai-scribe): Fix async callbacks not awaited in switch statement.

feat(ai-scribe): Fix binding lifecycle mismatch for GetAIScribeConfigInteractor

feat(ai-scribe): Fix ai prompts

feat(ai-scribe): Fix unawaited async call to `_setupSelectionListener`

feat(ai-scribe): Fix switch cases use top-origin coordinates while `PositionedDirectional(bottom:)`` expects bottom-origin coordinates.

feat(ai-scribe): Adding error handling for selection listener setup.
2025-12-19 19:03:39 +07:00
Théo Poizat c858ac40f5 Add translations for scribe module
Added a separated ScribeLocalizations to keep it separated from main app.
2025-12-19 19:03:39 +07:00
Théo Poizat 7e0c98b080 Add scribe module 2025-12-19 19:03:39 +07:00
dab246 c15353ccad fix(ci): prevent "No space left on device" by cleaning up and using release build 2025-09-29 21:22:23 +07:00
Dat Dang e26e0be51d HOTFIX Integration test v0.18.2 (#3980) 2025-08-27 14:41:50 +07:00
Dat Dang 1c04825367 Update Cozy integration doc (#3905) 2025-08-11 09:30:09 +07:00
DatDang 8e500a2ac5 HOTFIX Fix integration tests 2025-07-16 10:26:26 +07:00
DatDang 966a3acd39 HOTFIX Pin Patrol version to 3.6.0 2025-07-16 10:26:26 +07:00
DatDang b5280c805d TF-3603: Integrate Cozy features
TF-3603 [TEMP] expose Cozy integration result to console.log
2025-06-18 10:33:44 +07:00
DatDang 48a035edc9 TF-3341 Integration test web socket for mobile 2025-02-05 03:00:08 -08:00