Skip to content

Commit

Permalink
Fix attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellsh committed Mar 16, 2023
1 parent 7cb39fb commit cd4ede5
Show file tree
Hide file tree
Showing 5 changed files with 169 additions and 169 deletions.
8 changes: 4 additions & 4 deletions apps/meteor/tests/e2e/e2e-encryption.spec.ts
Expand Up @@ -161,7 +161,7 @@ test.describe.serial('e2e-encryption', () => {

await poHomeChannel.content.sendMessage('hello world');

await expect(poHomeChannel.content.lastUserMessage.locator('div')).toHaveText('hello world');
await expect(poHomeChannel.content.lastUserMessage).toHaveText('hello world');
await expect(poHomeChannel.content.lastUserMessage.locator('.rcx-icon--name-key')).toBeVisible();

await poHomeChannel.tabs.kebab.click({ force: true });
Expand All @@ -171,7 +171,7 @@ test.describe.serial('e2e-encryption', () => {

await poHomeChannel.content.sendMessage('hello world not encrypted');

await expect(poHomeChannel.content.lastUserMessage.locator('div')).toHaveText('hello world not encrypted');
await expect(poHomeChannel.content.lastUserMessage).toHaveText('hello world not encrypted');
await expect(poHomeChannel.content.lastUserMessage.locator('.rcx-icon--name-key')).not.toBeVisible();

await poHomeChannel.tabs.kebab.click({ force: true });
Expand All @@ -181,7 +181,7 @@ test.describe.serial('e2e-encryption', () => {

await poHomeChannel.content.sendMessage('hello world encrypted again');

await expect(poHomeChannel.content.lastUserMessage.locator('div')).toHaveText('hello world encrypted again');
await expect(poHomeChannel.content.lastUserMessage).toHaveText('hello world encrypted again');
await expect(poHomeChannel.content.lastUserMessage.locator('.rcx-icon--name-key')).toBeVisible();
});

Expand All @@ -207,7 +207,7 @@ test.describe.serial('e2e-encryption', () => {

await poHomeChannel.content.sendMessage('hello world');

await expect(poHomeChannel.content.lastUserMessage.locator('div')).toHaveText('hello world');
await expect(poHomeChannel.content.lastUserMessage).toHaveText('hello world');
await expect(poHomeChannel.content.lastUserMessage.locator('.rcx-icon--name-key')).toBeVisible();
});
});

0 comments on commit cd4ede5

Please sign in to comment.