Skip to content

Commit

Permalink
Merge pull request #685 from Satellite-im/luis/fixes-test-mac
Browse files Browse the repository at this point in the history
screenobject(update): fix tests failing on CI for accessibility
  • Loading branch information
luisecm authored Apr 29, 2024
2 parents 0fde0d6 + 6c60c63 commit e58c598
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion tests/helpers/commandsNewUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import SettingsProfileScreen from "@screenobjects/settings/SettingsProfileScreen
import WelcomeScreen from "@screenobjects/welcome-screen/WelcomeScreen";
import {
activateFirstApplication,
activateSecondApplication,
getUserKey,
launchSecondApplication,
launchThirdApplication,
Expand Down
4 changes: 2 additions & 2 deletions tests/screenobjects/settings/SettingsBaseScreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default class SettingsBaseScreen extends UplinkMainScreen {
}

public get accessibilityButton() {
return $(SELECTORS.ACCESSIBILITY_BUTTON);
return this.settingsLayout.$(SELECTORS.ACCESSIBILITY_BUTTON);
}

public get audioButton() {
Expand Down Expand Up @@ -108,7 +108,7 @@ export default class SettingsBaseScreen extends UplinkMainScreen {
}

public get settingsSearchInput() {
return $(SELECTORS.SETTINGS_SEARCH_INPUT);
return this.settingsLayout.$(SELECTORS.SETTINGS_SEARCH_INPUT);
}

async goToAboutSettings() {
Expand Down
6 changes: 2 additions & 4 deletions tests/specs/10-settings-accessibility.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,15 @@ export default async function settingsAccessibilityTests() {
);
});

// Skip test that needs rework because it is clicking on a switch slider from MacOS configuration instead of Uplink - Settings Accessibility Screen
xit("Settings Accessibility - Click on slider switch to enable Open Dyslexic option", async () => {
it("Settings Accessibility - Click on slider switch to enable Open Dyslexic option", async () => {
// Click on the Open Dyslexic switch slider from the Settings Accessibility Screen
await SettingsAccessibilityScreen.clickOnOpenDyslexic();

// Validate that toggle has now value = "1" (enabled)
await SettingsAccessibilityScreen.validateOpenDyslexicIsEnabled();
});

// Skip test that needs rework because it is clicking on a switch slider from MacOS configuration instead of Uplink - Settings Accessibility Screen
xit("Settings Audio - Click on slider switches to disable the options", async () => {
it("Settings Audio - Click on slider switches to disable the options", async () => {
// Click again on the switch slider from Open Dyslexic option in Settings Accessibility Screen
await SettingsAccessibilityScreen.clickOnOpenDyslexic();

Expand Down

0 comments on commit e58c598

Please sign in to comment.