diff --git a/tests/specs/12-settings-licenses.spec.ts b/tests/specs/12-settings-licenses.spec.ts index b0b6bf8d0a..0e367c386e 100644 --- a/tests/specs/12-settings-licenses.spec.ts +++ b/tests/specs/12-settings-licenses.spec.ts @@ -1,18 +1,24 @@ require("module-alias/register"); -import { maximizeWindow, scrollDown } from "@helpers/commands"; +import { maximizeWindow } from "@helpers/commands"; +import { MACOS_DRIVER } from "@helpers/constants"; import SettingsAboutScreen from "@screenobjects/settings/SettingsAboutScreen"; import SettingsLicensesScreen from "@screenobjects/settings/SettingsLicenses"; export default async function settingsLicensesTests() { it("Settings Licenses - Validate header and description texts and license button are present", async () => { // Change screen to be full size - await maximizeWindow(); + const currentDriver = await SettingsAboutScreen.getCurrentDriver(); + if (currentDriver === MACOS_DRIVER) { + await maximizeWindow(); + } // Go to Settings Licenses Screen await SettingsAboutScreen.goToLicensesSettings(); // Change screen to not be full size and validate settings screen is displayed - await maximizeWindow(); + if (currentDriver === MACOS_DRIVER) { + await maximizeWindow(); + } await SettingsLicensesScreen.waitForIsShown(true); // Validate the header and description texts from MIT license diff --git a/tests/specs/13-settings-developer.spec.ts b/tests/specs/13-settings-developer.spec.ts index 6d46621205..c29308ab57 100644 --- a/tests/specs/13-settings-developer.spec.ts +++ b/tests/specs/13-settings-developer.spec.ts @@ -10,13 +10,18 @@ import WebInspector from "@screenobjects/developer/WebInspector"; export default async function settingsDeveloperTests() { it("Settings Developer - Validate headers and descriptions from Settings Sections", async () => { // Change screen to be full size - await maximizeWindow(); + const currentDriver = await SettingsLicensesScreen.getCurrentDriver(); + if (currentDriver === MACOS_DRIVER) { + await maximizeWindow(); + } // Go to Settings Screen and finally select the Settings Screen to validate await SettingsLicensesScreen.goToDeveloperSettings(); // Change screen to not be full size and validate settings screen is displayed - await maximizeWindow(); + if (currentDriver === MACOS_DRIVER) { + await maximizeWindow(); + } await SettingsDeveloperScreen.waitForIsShown(true); // Validate EXPERIMENTAL FEATURES section