MM-54458 : Refactor playwright test with app areas (#24527)

Этот коммит содержится в:
M-ZubairAhmed
2023-09-12 16:35:07 +05:30
коммит произвёл GitHub
родитель c887381318
Коммит 6109330beb
16 изменённых файлов: 243 добавлений и 152 удалений

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

@@ -14,7 +14,7 @@ test('Base channel accessibility', async ({pw, pages, axe}) => {
const channelsPage = new pages.ChannelsPage(page);
await channelsPage.goto();
await channelsPage.toBeVisible();
await channelsPage.postMessage('hello');
await channelsPage.centerView.postCreate.postMessage('hello');
// # Analyze the page
// Disable 'color-contrast' to be addressed by MM-53814
@@ -35,9 +35,9 @@ test('Post actions tab support', async ({pw, pages, axe}) => {
const channelsPage = new pages.ChannelsPage(page);
await channelsPage.goto();
await channelsPage.toBeVisible();
await channelsPage.postMessage('hello');
await channelsPage.centerView.postCreate.postMessage('hello');
const post = await channelsPage.getLastPost();
const post = await channelsPage.centerView.getLastPost();
await post.hover();
await post.postMenu.toBeVisible();