mattermost-mobile-upstream/app
Guillermo Vayá d83b576af8 test: cover the read triggers against a real database
The bugs manual testing found were not in what this screen computes but in
whether its gate was reachable at all, so the test renders the container against
a real in-memory database and lets the real markChannelAsViewed run first, the
way switchToChannel does on every channel open. Passing props by hand would have
gone green on both of them.

Covers: no read while the server still has posts the user has not seen, an
immediate read when there is nothing left to see, a read once the separator is
reported, a report ignored while another screen is on top, and a retry after a
failed read.

Verified by reintroducing the optimistic clear bug, which fails the first and
fourth cases.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-26 17:02:32 +02:00
..
actions fix: mark a channel read from what the user has seen 2026-08-20 19:12:16 +02:00
client Classification Markings: Cached request timer and PSv2 Implementation (#9926) 2026-08-13 15:24:07 +03:00
components fix: address review of the viewability driven read 2026-08-20 20:00:49 +02:00
constants Update supported ESR version (#9954) 2026-08-17 08:33:58 +03:00
context Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
database Classification Markings: Cached request timer and PSv2 Implementation (#9926) 2026-08-13 15:24:07 +03:00
helpers Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
hooks MM-70051 Fixing issues with system classifications (#9989) 2026-08-11 11:17:39 +03:00
i18n Add autotranslations (#9324) 2026-02-10 17:50:39 +01:00
init Mm 68767 zero persistence (#9803) 2026-07-16 13:55:45 +02:00
keyboard resumes slide animation after stopping due to modal system dialog showing (#9792) 2026-05-29 06:50:57 +08:00
managers Mm 68767 zero persistence (#9803) 2026-07-16 13:55:45 +02:00
products replace react-native-incall-manager with @mattermost/calls-native for audio management (#9973) 2026-08-06 07:38:54 +08:00
queries Classification Markings: Cached request timer and PSv2 Implementation (#9926) 2026-08-13 15:24:07 +03:00
routes Classification Markings: Cached request timer and PSv2 Implementation (#9926) 2026-08-13 15:24:07 +03:00
screens test: cover the read triggers against a real database 2026-08-26 17:02:32 +02:00
store Classification Markings: Cached request timer and PSv2 Implementation (#9926) 2026-08-13 15:24:07 +03:00
utils Classification Markings: Cached request timer and PSv2 Implementation (#9926) 2026-08-13 15:24:07 +03:00