Skip to content

Commit

Permalink
test(update): fixes for macos tests
Browse files Browse the repository at this point in the history
  • Loading branch information
luisecm committed May 7, 2024
1 parent a006ddb commit ee56061
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/screenobjects/settings/SettingsBaseScreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default class SettingsBaseScreen extends UplinkMainScreen {
}

public get notificationsButton() {
return $(SELECTORS.NOTIFICATIONS_BUTTON);
return this.settingsLayout.$(SELECTORS.NOTIFICATIONS_BUTTON);
}

public get profileButton() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class SettingsNotificationsScreen extends SettingsBaseScreen {
}

public get settingsNotifications() {
return $(SELECTORS.SETTINGS_NOTIFICATIONS);
return this.settingsLayout.$(SELECTORS.SETTINGS_NOTIFICATIONS);
}

async clickOnEnabledNotifications() {
Expand Down
4 changes: 0 additions & 4 deletions tests/specs/09-settings-notifications.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require("module-alias/register");
import { maximizeWindow } from "@helpers/commands";
import SettingsAccessibilityScreen from "@screenobjects/settings/SettingsAccessibilityScreen";
import SettingsNotificationsScreen from "@screenobjects/settings/SettingsNotificationsScreen";

Expand Down Expand Up @@ -50,9 +49,6 @@ export default async function settingsNotificationsTests() {
});

it("Settings Notifications - Disable all notifications by switching ENABLED toggle to off", async () => {
// Quit full size window
await maximizeWindow();

// Click on ENABLED switch slider to activate toggles and then validate that toggle has now value = "0" (disabled)
await SettingsNotificationsScreen.clickOnEnabledNotifications();
await SettingsNotificationsScreen.validateEnabledNotificationsIsDisabled();
Expand Down
2 changes: 1 addition & 1 deletion tests/suites/Chats/01-Chats.suite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ describe(
"Group Chats Favorites and Sidebar Tests",
groupChatsSidebarTests.bind(this),
);
describe("Group Chats Multiple Users Tests", multipleUsersTests.bind(this));
xdescribe("Group Chats Multiple Users Tests", multipleUsersTests.bind(this));

0 comments on commit ee56061

Please sign in to comment.