mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
merge: show specific role in moderation posting warning
This commit is contained in:
@@ -1052,6 +1052,24 @@ describe('PostForm', () => {
|
||||
expect(container.textContent).not.toContain('warning: posting as moderator');
|
||||
});
|
||||
|
||||
it('uses the 5chan dev label for known developer moderator posts', async () => {
|
||||
testState.account = {
|
||||
author: { address: 'plebeius.bso', displayName: 'Tom' },
|
||||
subscriptions: ['music-posting.eth'],
|
||||
};
|
||||
testState.resolvedCommunityAddress = 'music-posting.eth';
|
||||
testState.rolesByCommunity = {
|
||||
'music-posting.eth': {
|
||||
'plebeius.bso': { role: 'owner' },
|
||||
},
|
||||
};
|
||||
|
||||
await renderPostForm('/mu');
|
||||
await clickByText(container, 'start_new_thread');
|
||||
|
||||
expect(container.textContent).toContain('warning: posting as 5chan dev');
|
||||
});
|
||||
|
||||
it('shows the pasted file-link filename next to the upload button', async () => {
|
||||
testState.uploadedFileName = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user