Skip to content

Commit

Permalink
tests: add some expects that were missing
Browse files Browse the repository at this point in the history
  • Loading branch information
janainaCoelhoRocketchat committed Sep 28, 2023
1 parent 2872428 commit bd19cf2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/meteor/tests/e2e/threads.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ test.describe.serial('Threads', () => {
await page.locator('[data-qa-id="edit-message"]').click();
await page.locator('[name="msg"]').last().fill('this message was edited');
await page.keyboard.press('Enter');
await expect(page.locator('//main//aside >> [data-qa-type="message"]').last().locator('[data-qa-type="message-body"]')).toContainText(
'this message was edited',
);
});

test('expect quote the thread message', async ({ page }) => {
Expand All @@ -118,6 +121,11 @@ test.describe.serial('Threads', () => {
test('expect star the thread message', async ({ page }) => {
await poHomeChannel.content.openLastThreadMessageMenu();
await page.locator('[data-qa-id="star-message"]').click();
await page.getByRole('button').and(page.getByTitle('Options')).click();
await page.locator('[data-key="starred-messages"]').click();
await expect(page.locator('//main//aside >> [data-qa-type="message"]').last().locator('[data-qa-type="message-body"]')).toContainText(
'this is a message for reply',
);
});

test('expect copy the message', async ({ page }) => {
Expand Down

0 comments on commit bd19cf2

Please sign in to comment.