Этот коммит содержится в:
sabril
2025-07-08 21:58:59 +08:00
коммит произвёл GitHub
родитель a8fa77f107
Коммит 749f7d4d21

Просмотреть файл

@@ -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');
});