mattermost-mobile-upstream/detox/e2e/support/ui/component
yasserfaraazkhan 580600881c fix(e2e): resolve classification banner post-reload race
Two-part fix for MM-T_CB_* flakiness (banner absent after reloadReactNative):

App: fetchClassificationBanner treated a single empty getPropertyFields
response right after reconnect/reload as "fields removed" and cleared local
data. A freshly reconnected client can momentarily see an empty field list
before fields propagate to its session. Add a bounded retry (5x1s), gated on
the feature flag so servers without classification take the single-pass path.

Harness: global_classification_banner.toBeVisible used
`expect(banner).toBeVisible(25)` where 25 is a visibility-% threshold, NOT a
timeout, so it asserted immediately. Switch to
`waitFor(...).toBeVisible(25).withTimeout(HALF_MIN)`. properties.ts polls the
same list endpoint the app uses (pollLinkedVisible) until the linked system
field is readable before the test reloads the app, covering ~28s cloud
propagation.

Unit tests updated for the retry path (19/19 pass).
Verified 10/10 CB tests on device.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-21 02:31:59 +05:30
..
alert.ts fix(detox): harness fixes and failing-spec CI mode. 2026-06-29 18:32:06 +05:30
attachment_options.ts test(detox): re-submit RF→Detox migration without unintended UI changes (#9847) 2026-06-19 22:44:02 +05:30
autocomplete.ts test(detox): re-submit RF→Detox migration without unintended UI changes (#9847) 2026-06-19 22:44:02 +05:30
camera_quick_action.ts Detox/E2E: Create Channel and Channel Post List e2e in Gekidou 2022-04-12 11:50:05 -07:00
file_quick_action.ts Detox/E2E: Create Channel and Channel Post List e2e in Gekidou 2022-04-12 11:50:05 -07:00
global_classification_banner.ts fix(e2e): resolve classification banner post-reload race 2026-07-21 02:31:59 +05:30
image_quick_action.ts Detox/E2E: Create Channel and Channel Post List e2e in Gekidou 2022-04-12 11:50:05 -07:00
index.ts MM-68208 Implementing global and channel-level banners on mobile (#9752) 2026-07-08 12:47:01 +03:00
input_quick_action.ts Revert "e2e(detox): Rainforest to Detox migration (#9790)" (#9834) 2026-06-15 17:57:01 +02:00
navigation_header.ts Detox/E2E: Search Messages e2e tests in Gekidou (#6756) 2022-11-21 12:58:51 -08:00
plus_menu.ts MM-39720_Invite People - phase 1 2022-10-31 18:12:03 -05:00
post_channel_info.ts Detox/E2E: Recent Mentions and Saved Messages e2e tests in Gekidou 2022-07-07 16:56:32 -07:00
post_draft.ts Detox/E2E: Channel Info and Quick Actions e2e tests in Gekidou (#6487) 2022-07-21 14:18:56 -07:00
post_list.ts test(detox): re-submit RF→Detox migration without unintended UI changes (#9847) 2026-06-19 22:44:02 +05:30
post.ts Detox/E2E: Messaging (at-mentions, channel mentions, autocomplete etc) e2e tests in Gekidou (#6428) 2022-07-05 10:01:46 -07:00
profile_picture.ts Detox/E2E: Messaging post options e2e tests in Gekidou (#6405) 2022-06-17 21:01:05 -04:00
search_bar.ts Detox/E2E: Messaging post options e2e tests in Gekidou (#6405) 2022-06-17 21:01:05 -04:00
send_button.ts Detox/E2E: Create Channel and Channel Post List e2e in Gekidou 2022-04-12 11:50:05 -07:00
team_sidebar.ts Detox/E2E: Team Sidebar e2e tests in Gekidou (#6188) 2022-04-26 08:22:33 -07:00