|
|
|
@ -166,7 +166,7 @@ test.describe.serial('feature preview', () => { |
|
|
|
|
test.describe('Sidepanel', () => { |
|
|
|
|
test.beforeEach(async ({ api }) => { |
|
|
|
|
await setUserPreferences(api, { |
|
|
|
|
sidebarViewMode: 'Medium', |
|
|
|
|
// sidebarViewMode: 'Medium',
|
|
|
|
|
featuresPreview: [ |
|
|
|
|
{ |
|
|
|
|
name: 'newNavigation', |
|
|
|
@ -183,7 +183,7 @@ test.describe.serial('feature preview', () => { |
|
|
|
|
|
|
|
|
|
test.afterEach(async ({ api }) => { |
|
|
|
|
await setUserPreferences(api, { |
|
|
|
|
sidebarViewMode: 'Medium', |
|
|
|
|
// sidebarViewMode: 'Medium',
|
|
|
|
|
featuresPreview: [ |
|
|
|
|
{ |
|
|
|
|
name: 'newNavigation', |
|
|
|
@ -248,43 +248,43 @@ test.describe.serial('feature preview', () => { |
|
|
|
|
await deleteChannel(api, targetChannelNameInTeam); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
test('should display sidepanel item with the same display preference as the sidebar', async ({ page }) => { |
|
|
|
|
await page.goto('/home'); |
|
|
|
|
const message = 'hello world'; |
|
|
|
|
// test('should display sidepanel item with the same display preference as the sidebar', async ({ page }) => {
|
|
|
|
|
// await page.goto('/home');
|
|
|
|
|
// const message = 'hello world';
|
|
|
|
|
|
|
|
|
|
await poHomeChannel.sidebar.setDisplayMode('Extended'); |
|
|
|
|
await poHomeChannel.sidebar.openChat(targetTeam); |
|
|
|
|
// await poHomeChannel.sidebar.setDisplayMode('Extended');
|
|
|
|
|
// await poHomeChannel.sidebar.openChat(targetTeam);
|
|
|
|
|
|
|
|
|
|
await poHomeChannel.tabs.btnRoomInfo.click(); |
|
|
|
|
await poHomeChannel.tabs.room.btnEdit.click(); |
|
|
|
|
await poHomeChannel.tabs.room.toggleSidepanelWithChannels(); |
|
|
|
|
await expect(poHomeChannel.toastSuccess).toBeVisible(); |
|
|
|
|
await poHomeChannel.dismissToast(); |
|
|
|
|
// await poHomeChannel.tabs.btnRoomInfo.click();
|
|
|
|
|
// await poHomeChannel.tabs.room.btnEdit.click();
|
|
|
|
|
// await poHomeChannel.tabs.room.toggleSidepanelWithChannels();
|
|
|
|
|
// await expect(poHomeChannel.toastSuccess).toBeVisible();
|
|
|
|
|
// await poHomeChannel.dismissToast();
|
|
|
|
|
|
|
|
|
|
await poHomeChannel.content.sendMessage(message); |
|
|
|
|
await expect(poHomeChannel.sidepanel.getExtendedItem(targetTeam, message)).toBeVisible(); |
|
|
|
|
}); |
|
|
|
|
// await poHomeChannel.content.sendMessage(message);
|
|
|
|
|
// await expect(poHomeChannel.sidepanel.getExtendedItem(targetTeam, message)).toBeVisible();
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
// remove .fail after fix
|
|
|
|
|
test.fail('should escape special characters on item subtitle', async ({ page }) => { |
|
|
|
|
await page.goto('/home'); |
|
|
|
|
const message = 'hello > world'; |
|
|
|
|
const parsedWrong = 'hello > world'; |
|
|
|
|
// test.fail('should escape special characters on item subtitle', async ({ page }) => {
|
|
|
|
|
// await page.goto('/home');
|
|
|
|
|
// const message = 'hello > world';
|
|
|
|
|
// const parsedWrong = 'hello > world';
|
|
|
|
|
|
|
|
|
|
await poHomeChannel.sidebar.setDisplayMode('Extended'); |
|
|
|
|
// await poHomeChannel.sidebar.setDisplayMode('Extended');
|
|
|
|
|
|
|
|
|
|
await poHomeChannel.sidebar.openChat(targetTeam); |
|
|
|
|
// await poHomeChannel.sidebar.openChat(targetTeam);
|
|
|
|
|
|
|
|
|
|
await poHomeChannel.tabs.btnRoomInfo.click(); |
|
|
|
|
await poHomeChannel.tabs.room.btnEdit.click(); |
|
|
|
|
await poHomeChannel.tabs.room.toggleSidepanelWithChannels(); |
|
|
|
|
await expect(poHomeChannel.toastSuccess).toBeVisible(); |
|
|
|
|
await poHomeChannel.dismissToast(); |
|
|
|
|
// await poHomeChannel.tabs.btnRoomInfo.click();
|
|
|
|
|
// await poHomeChannel.tabs.room.btnEdit.click();
|
|
|
|
|
// await poHomeChannel.tabs.room.toggleSidepanelWithChannels();
|
|
|
|
|
// await expect(poHomeChannel.toastSuccess).toBeVisible();
|
|
|
|
|
// await poHomeChannel.dismissToast();
|
|
|
|
|
|
|
|
|
|
await poHomeChannel.content.sendMessage(message); |
|
|
|
|
// await poHomeChannel.content.sendMessage(message);
|
|
|
|
|
|
|
|
|
|
await expect(poHomeChannel.sidepanel.getExtendedItem(targetTeam, message)).toBeVisible(); |
|
|
|
|
await expect(poHomeChannel.sidepanel.getExtendedItem(targetTeam, message)).not.toHaveText(parsedWrong); |
|
|
|
|
}); |
|
|
|
|
// await expect(poHomeChannel.sidepanel.getExtendedItem(targetTeam, message)).toBeVisible();
|
|
|
|
|
// await expect(poHomeChannel.sidepanel.getExtendedItem(targetTeam, message)).not.toHaveText(parsedWrong);
|
|
|
|
|
// });
|
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|