Skip to content

Commit

Permalink
test: add user and channel test case
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocostadev committed Jul 25, 2024
1 parent ad582e9 commit 6e374c3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions apps/meteor/tests/e2e/e2e-encryption.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,31 @@ test.describe.serial('e2e-encryption', () => {
await expect(page).toHaveURL(`/channel/general`);
});

test('expect create a encrypted private channel, mention a channel and user', async ({ page }) => {
const channelName = faker.string.uuid();

await poHomeChannel.sidenav.createEncryptedChannel(channelName);

await expect(page).toHaveURL(`/group/${channelName}`);

await poHomeChannel.dismissToast();

await expect(poHomeChannel.content.encryptedRoomHeaderIcon).toBeVisible();

await poHomeChannel.content.sendMessage('Are you in the #general channel, @user1 ?');

const channelMention = await page.getByRole('button', {
name: 'general',
});

const userMention = await page.getByRole('button', {
name: 'user1',
});

await expect(userMention).toBeVisible();
await expect(channelMention).toBeVisible();
});

test('should encrypted field be available on edit room', async ({ page }) => {
const channelName = faker.string.uuid();

Expand Down

0 comments on commit 6e374c3

Please sign in to comment.