fix playwright test (#33353)
Этот коммит содержится в:
@@ -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');
|
||||
});
|
||||
|
||||
Ссылка в новой задаче
Block a user