diff --git a/tests/helpers/commands.ts b/tests/helpers/commands.ts index 9335fd8cb6..4a1d02d60e 100644 --- a/tests/helpers/commands.ts +++ b/tests/helpers/commands.ts @@ -553,6 +553,14 @@ export async function getUplinkWindowHandle() { // Key Combinations Commands +export async function keyboardShortcutSelectAll() { + if (process.env.DRIVER === WINDOWS_DRIVER) { + await robot.keyTap("a", ["control"]); + } else if (process.env.DRIVER === MACOS_DRIVER) { + await robot.keyTap("a", ["command"]); + } +} + export async function keyboardShortcutPaste() { if (process.env.DRIVER === WINDOWS_DRIVER) { await robot.keyTap("v", ["control"]); diff --git a/tests/screenobjects/chats/InputBar.ts b/tests/screenobjects/chats/InputBar.ts index 00eed2bd9b..fddf0f6f69 100644 --- a/tests/screenobjects/chats/InputBar.ts +++ b/tests/screenobjects/chats/InputBar.ts @@ -7,6 +7,7 @@ import { getUplinkWindowHandle, selectFileOnMacos, selectFileOnWindows, + keyboardShortcutSelectAll, } from "@helpers/commands"; import UplinkMainScreen from "@screenobjects/UplinkMainScreen"; import { selectorContainer } from "@screenobjects/AppScreen"; @@ -128,6 +129,14 @@ class InputBar extends UplinkMainScreen { await inputText.clearValue(); } + async clearLongInputBar() { + const inputText = await this.inputText; + await inputText.click(); + await keyboardShortcutSelectAll(); + await this.typeMessageOnInput("a"); + await inputText.clearValue(); + } + async clickOnEmojiButton() { const addEmoji = await this.emojiButton; await this.hoverOnElement(addEmoji); diff --git a/tests/specs/13-settings-developer.spec.ts b/tests/specs/13-settings-developer.spec.ts index c29308ab57..378770d3d6 100644 --- a/tests/specs/13-settings-developer.spec.ts +++ b/tests/specs/13-settings-developer.spec.ts @@ -17,11 +17,6 @@ export default async function settingsDeveloperTests() { // 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 - if (currentDriver === MACOS_DRIVER) { - await maximizeWindow(); - } await SettingsDeveloperScreen.waitForIsShown(true); // Validate EXPERIMENTAL FEATURES section diff --git a/tests/specs/reusable-accounts/04-message-input.spec.ts b/tests/specs/reusable-accounts/04-message-input.spec.ts index e3097e627f..77cfe7c523 100644 --- a/tests/specs/reusable-accounts/04-message-input.spec.ts +++ b/tests/specs/reusable-accounts/04-message-input.spec.ts @@ -59,7 +59,7 @@ export default async function chatInputTests() { ); // Clear input bar to finish test - await InputBar.clearInputBar(); + await InputBar.clearLongInputBar(); }); it("Emoji Suggested List - Displays expected data", async () => {