From 749f7d4d211c5d60597de88b030d2318f360cef6 Mon Sep 17 00:00:00 2001 From: sabril <5334504+saturninoabril@users.noreply.github.com> Date: Tue, 8 Jul 2025 21:58:59 +0800 Subject: [PATCH] fix playwright test (#33353) --- .../functional/channels/threads/threads_list.spec.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/e2e-tests/playwright/specs/functional/channels/threads/threads_list.spec.ts b/e2e-tests/playwright/specs/functional/channels/threads/threads_list.spec.ts index d2184daaae..c44dcc2dcb 100644 --- a/e2e-tests/playwright/specs/functional/channels/threads/threads_list.spec.ts +++ b/e2e-tests/playwright/specs/functional/channels/threads/threads_list.spec.ts @@ -3,7 +3,7 @@ import {test} from '@mattermost/playwright-lib'; -test.fixme('Should be able to change threads with arrow keys', async ({pw}, testInfo) => { +test('Should be able to change threads with arrow keys', async ({pw}, testInfo) => { test.skip(testInfo.project.name === 'ipad'); const {team, user} = await pw.initSetup(); @@ -42,14 +42,14 @@ test.fixme('Should be able to change threads with arrow keys', async ({pw}, test // * Ensure the latest thread was selected await threadsPage.toHaveThreadSelected(); - (await threadsPage.getLastPost()).toContainText('ccc reply'); + await (await threadsPage.getLastPost()).toContainText('ccc reply'); // # Press the down arrow again await page.keyboard.press('ArrowDown'); // * Ensure the latest thread was selected await threadsPage.toHaveThreadSelected(); - (await threadsPage.getLastPost()).toContainText('bbb reply'); + await (await threadsPage.getLastPost()).toContainText('bbb reply'); await threadsPage.threadsList.focus(); @@ -58,19 +58,19 @@ test.fixme('Should be able to change threads with arrow keys', async ({pw}, test // * Ensure the latest thread was selected await threadsPage.toHaveThreadSelected(); - (await threadsPage.getLastPost()).toContainText('aaa reply'); + await (await threadsPage.getLastPost()).toContainText('aaa reply'); // # Press the up arrow await page.keyboard.press('ArrowUp'); // * Ensure the latest thread was selected await threadsPage.toHaveThreadSelected(); - (await threadsPage.getLastPost()).toContainText('bbb reply'); + await (await threadsPage.getLastPost()).toContainText('bbb reply'); // # Press the up arrow await page.keyboard.press('ArrowUp'); // * Ensure the latest thread was selected await threadsPage.toHaveThreadSelected(); - (await threadsPage.getLastPost()).toContainText('ccc reply'); + await (await threadsPage.getLastPost()).toContainText('ccc reply'); });