mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-12 14:10:14 +00:00
dm_gm_permission_policy.e2e.ts sets up an Enterprise Advanced server
with ABAC and one system permission policy on a Department attribute:
Engineering may start, read and write; Sales may only read; Contractor
may do nothing. Conversations and their first posts are created before
the policy is activated, since the admin has no Department and is
denied too. It covers:
1. Losing Read with a DM open shows the "Messages unavailable" sheet
and removes the DM category; regaining it brings the DM and GM back,
with the post made while hidden as an unread badge.
2. Denied Write shows the read-only composer with the DM/GM text in a
DM and a GM.
3. Denied Start hides "Open a direct message" in the plus menu and
"Open a DM" in Find channels, while an existing DM still opens.
4. Tapping a push for a DM while Read is denied shows the no-access
alert and opens nothing.
Support:
- the read-only composer text gets a testID ("<draft>.read_only.text");
- a ChannelAccessRevoked component for the sheet, the alert strings,
and ChannelScreen.postDraftReadOnlyText;
- buildTapPayload moves from push_notification_open.e2e.ts into
support/utils so both specs share it.
Session attributes can't be changed from a simulator; that path is
covered by unit tests only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y8zZ6swdpcLxJTgxH14DDD
|
||
|---|---|---|
| .. | ||
| archived | ||
| custom_emoji_picker | ||
| draft_handler | ||
| draft_input | ||
| post_input | ||
| quick_actions | ||
| read_only | ||
| send_button | ||
| send_handler | ||
| status_indicator | ||
| typing | ||
| uploads | ||
| index.ts | ||
| post_draft.tsx | ||