Skip to content

Commit

Permalink
test: feature-preview adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajforesti committed Dec 17, 2024
1 parent 9a2727c commit 9a2d0fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/meteor/tests/e2e/feature-preview.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ test.describe.serial('feature preview', () => {
test('should show "Message" and "Navigation" feature sections', async ({ page }) => {
await page.goto('/account/feature-preview');

await expect(page.getByRole('button', { name: 'Message' })).toBeVisible();
await expect(page.getByRole('button', { name: 'Navigation' })).toBeVisible();
await expect(page.getByRole('button', { name: 'Message', exact: true })).toBeVisible();
await expect(page.getByRole('button', { name: 'Navigation', exact: true })).toBeVisible();
});

test.describe('Sidepanel', () => {
Expand Down Expand Up @@ -122,6 +122,7 @@ test.describe.serial('feature preview', () => {
await page.goto('/home');
const message = 'hello world';

await poHomeChannel.content.waitForPageLoad();
await poHomeChannel.sidebar.setDisplayMode('Extended');
await poHomeChannel.sidebar.openChat(sidepanelTeam);
await poHomeChannel.content.sendMessage(message);
Expand All @@ -133,6 +134,7 @@ test.describe.serial('feature preview', () => {
const message = 'hello > world';
const parsedWrong = 'hello > world';

await poHomeChannel.content.waitForPageLoad();
await poHomeChannel.sidebar.setDisplayMode('Extended');
await poHomeChannel.sidebar.openChat(sidepanelTeam);
await poHomeChannel.content.sendMessage(message);
Expand Down

0 comments on commit 9a2d0fb

Please sign in to comment.