mattermost-mobile-upstream/detox/e2e/support/server_api
yasser khan c37808ebcf
Bring release-2.45 E2E up to main for CMT (#10174 + #10187 merge + #10184) (#10188)
* fix: read manual time entry from both datetime config keys, and unblock main-branch E2E (#10174)

Apps form: Reads both manual_time_entry and the deprecated allow_manual_time_entry keys, preserving compatibility across supported server versions. Tests cover both keys, precedence, and the unset case.

Channel Attributes E2E: Gates the suite on the presence of the server feature flag so it does not run against 11.x servers where the feature does not exist.

E2E reliability: Fixes several main-branch failure modes, including cross-shard interference from server-global required channel attributes, Maestro account-screen timing, transient channel-creation failures, and bookmark setup/recovery after ambiguous network responses.

Bookmark setup: Makes channel creation idempotent by name and verifies membership through a read-back rather than blindly retrying writes.

Test coverage: Adds component-level coverage for the not_set channel-attribute state while documenting the intended re-homing of the skipped E2E case.

Test conventions/documentation: Aligns new test names and comments with project conventions and clarifies server-version behavior.

(cherry picked from commit 4f5b83e6af)

* test(e2e): make CMT and PR E2E green (absorbs #10186) (#10184)

test(e2e): stabilize mobile suites and shared-server configuration

- Restore Android character-limit coverage with realistic word-based payloads.
- Use a time-based grace period for classification-lock transport failures,
  resetting it after each successful request.
- Pin the demo plugin to v0.12.1 and replace mismatched installations using
  the multipart upload force flag.
- Recover uncertain channel creation through read-back, retry transient
  membership and profile-update failures, and check setup results.
- Improve sidebar navigation, channel-info recovery, tooltip dismissal,
  archived-channel assertions, and archived-search retries.
- Verify banner attributes before UI assertions and report observed failures
  without attributing unsupported causes.
- Reduce ChannelAttributes flag changes, retry app reloads, strengthen
  feature-state assertions, and remove unsafe full-config updates.
- Check configuration writability and environment overrides before patching;
  verify the app reflects AllowDownloadLogs and fix Maestro text matching.
- Increase the Jest timeout to accommodate existing test waits.

(cherry picked from commit 72e74b8785)
2026-09-22 10:37:35 +03:00
..
bot.ts Detox/E2E: Migrate e2e javascript to typescript (#6059) 2022-03-17 17:35:26 -07:00
channel_bookmark.ts [MM-69455] Fix channel bookmark taps with React Native New Architecture (#9904) 2026-07-02 13:55:27 -07:00
channel.ts Bring release-2.45 E2E up to main for CMT (#10174 + #10187 merge + #10184) (#10188) 2026-09-22 10:37:35 +03:00
client.test.ts fix: stabilize server switch, saved posts, favorites, and related runtime races (#10122) 2026-09-09 00:35:15 +05:30
client.ts test(e2e): close manual release-test gaps (#10125) 2026-09-11 09:48:02 +05:30
command.ts Fix/detox hittest cluster (#10023) 2026-08-27 08:58:03 +05:30
common.ts test(detox): re-submit RF→Detox migration without unintended UI changes (#9847) 2026-06-19 22:44:02 +05:30
custom_profile_attributes.ts test(detox): re-submit RF→Detox migration without unintended UI changes (#9847) 2026-06-19 22:44:02 +05:30
index.ts test(e2e): close manual release-test gaps (#10125) 2026-09-11 09:48:02 +05:30
ldap.ts Detox/E2E: Migrate e2e javascript to typescript (#6059) 2022-03-17 17:35:26 -07:00
mfa.ts test(e2e): close manual release-test gaps (#10125) 2026-09-11 09:48:02 +05:30
plugin.ts Fix/detox hittest cluster (#10023) 2026-08-27 08:58:03 +05:30
post.ts test(e2e): fix main-branch E2E flakes and make a killed shard report red (#10161) (#10187) 2026-09-21 12:08:10 +03:00
preference.ts fix(e2e): Quarantine proven flakes and harden Detox harness (#9971) 2026-07-30 02:40:23 +05:30
properties.ts Bring release-2.45 E2E up to main for CMT (#10174 + #10187 merge + #10184) (#10188) 2026-09-22 10:37:35 +03:00
setup.ts Bring release-2.45 E2E up to main for CMT (#10174 + #10187 merge + #10184) (#10188) 2026-09-22 10:37:35 +03:00
status.ts fix(e2e): Quarantine proven flakes and harden Detox harness (#9971) 2026-07-30 02:40:23 +05:30
system.ts Bring release-2.45 E2E up to main for CMT (#10174 + #10187 merge + #10184) (#10188) 2026-09-22 10:37:35 +03:00
team.ts test(detox): re-submit RF→Detox migration without unintended UI changes (#9847) 2026-06-19 22:44:02 +05:30
terms_of_service.ts Add E2E coverage for custom terms of service login flow (#10105) 2026-09-01 03:03:53 +05:30
user.ts test(e2e): fix main-branch E2E flakes and make a killed shard report red (#10161) (#10187) 2026-09-21 12:08:10 +03:00
webhook.ts fix(e2e): Quarantine proven flakes and harden Detox harness (#9971) 2026-07-30 02:40:23 +05:30