Skip to content

Commit 61f81d5

Browse files
committed
Fixed failing test
1 parent b9b1329 commit 61f81d5

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

test/e2e/page-objects/pages/header-navbar.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ class HeaderNavbar {
108108
}
109109
}
110110

111+
async mouseClickOnThreeDotMenu(): Promise<void> {
112+
console.log('Clicking three dot menu using mouse move');
113+
await this.driver.clickElementUsingMouseMove(this.threeDotMenuButton);
114+
}
115+
111116
async openPermissionsPage(): Promise<void> {
112117
console.log('Open permissions page in header navbar');
113118
await this.openThreeDotMenu();
@@ -140,12 +145,12 @@ class HeaderNavbar {
140145

141146
async clickNotificationsOptions(): Promise<void> {
142147
console.log('Click notifications options');
143-
await this.openThreeDotMenu();
148+
await this.mouseClickOnThreeDotMenu();
144149
await this.driver.clickElement(this.notificationsButton);
145150
}
146151

147152
async checkNotificationCountInMenuOption(count: number): Promise<void> {
148-
await this.openThreeDotMenu();
153+
await this.mouseClickOnThreeDotMenu();
149154
await this.driver.findElement({
150155
css: this.notificationCountOption,
151156
text: count.toString(),

test/e2e/snaps/test-snap-cronjob-duration.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('Test Snap Cronjob Duration', function () {
4040
await headerNavbar.checkNotificationCountInMenuOption(1);
4141

4242
// This click will close the menu.
43-
await headerNavbar.openThreeDotMenu();
43+
await headerNavbar.mouseClickOnThreeDotMenu();
4444

4545
// Click the notification options and validate the message in the
4646
// notification list.

test/e2e/snaps/test-snap-notification.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ describe('Test Snap Notification', function () {
8585
await headerNavbar.checkNotificationCountInMenuOption(1);
8686

8787
// this click will close the menu
88-
await headerNavbar.openThreeDotMenu();
88+
await headerNavbar.mouseClickOnThreeDotMenu();
8989

9090
// click the notification options
9191
await headerNavbar.clickNotificationsOptions();

0 commit comments

Comments
 (0)