From 9566c6c3450b9f587ec0f5e013274172b7fdf881 Mon Sep 17 00:00:00 2001 From: dougfabris Date: Mon, 13 May 2024 17:06:52 -0300 Subject: [PATCH] fix: e2e test --- apps/meteor/tests/e2e/channel-management.spec.ts | 2 +- apps/meteor/tests/e2e/messaging.spec.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/meteor/tests/e2e/channel-management.spec.ts b/apps/meteor/tests/e2e/channel-management.spec.ts index a082aca17868..aeaa74773354 100644 --- a/apps/meteor/tests/e2e/channel-management.spec.ts +++ b/apps/meteor/tests/e2e/channel-management.spec.ts @@ -259,7 +259,7 @@ test.describe.serial('channel-management', () => { await expect(page.getByRole('navigation')).toBeVisible(); }); - test('should info contextualbar when clicking on roomName', async ({ page }) => { + test('should open room info when clicking on roomName', async ({ page }) => { await poHomeChannel.sidenav.openChat(targetChannel); await page.getByRole('button', { name: targetChannel }).first().focus(); await page.keyboard.press('Space'); diff --git a/apps/meteor/tests/e2e/messaging.spec.ts b/apps/meteor/tests/e2e/messaging.spec.ts index edc322c574a0..226b75ecc9a8 100644 --- a/apps/meteor/tests/e2e/messaging.spec.ts +++ b/apps/meteor/tests/e2e/messaging.spec.ts @@ -105,7 +105,7 @@ test.describe.serial('Messaging', () => { await expect(page.locator('[data-qa-type="message"]').last()).not.toBeFocused(); }); - test('should focus on the recent message when moving the focus on the list and theres no previous focus', async ({ page }) => { + test('should focus the latest message when moving the focus on the list and theres no previous focus', async ({ page }) => { await poHomeChannel.sidenav.openChat(targetChannel); await page.getByRole('button', { name: targetChannel }).first().focus(); @@ -115,7 +115,7 @@ test.describe.serial('Messaging', () => { await page.keyboard.press('Tab'); await expect(page.locator('[data-qa-type="message"]').last()).toBeFocused(); - await page.getByRole('button', { name: targetChannel }).first().click(); + await page.getByRole('button', { name: targetChannel }).first().focus(); // move focus to the list again await page.keyboard.press('Tab');