mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-22 03:18:12 +00:00
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> |
||
|---|---|---|
| .. | ||
| alert.ts | ||
| attachment_options.ts | ||
| autocomplete.ts | ||
| camera_quick_action.ts | ||
| file_quick_action.ts | ||
| global_classification_banner.ts | ||
| image_quick_action.ts | ||
| index.ts | ||
| input_quick_action.ts | ||
| navigation_header.ts | ||
| plus_menu.ts | ||
| post_channel_info.ts | ||
| post_draft.ts | ||
| post_list.ts | ||
| post.ts | ||
| profile_picture.ts | ||
| search_bar.ts | ||
| send_button.ts | ||
| team_sidebar.ts | ||