diff --git a/tests/screenobjects/chats/InputBar.ts b/tests/screenobjects/chats/InputBar.ts index 72bdca3cea..75f3cb1f02 100644 --- a/tests/screenobjects/chats/InputBar.ts +++ b/tests/screenobjects/chats/InputBar.ts @@ -11,7 +11,7 @@ import { selectFileOnWindows, } from "@helpers/commands"; import UplinkMainScreen from "@screenobjects/UplinkMainScreen"; -const {keyboard, Key} = require("@nut-tree/nut-js"); +const { keyboard, Key } = require("@nut-tree/nut-js"); const currentOS = driver[USER_A_INSTANCE].capabilities.automationName; let SELECTORS = {}; @@ -38,7 +38,7 @@ const SELECTORS_WINDOWS = { const SELECTORS_MACOS = { EDIT_MESSAGE_INPUT: "~edit-message-input", EMOJI_BUTTON: - '-ios class chain:**/XCUIElementTypeGroup[`label == "chat-layout"`]/XCUIElementTypeButton[2]', + '-ios class chain:**/XCUIElementTypeGroup[`label == "chat-layout"`]/XCUIElementTypeGroup[8]/XCUIElementTypeButton', INPUT_CHAR_COUNTER: "~input-char-counter", INPUT_CHAR_COUNTER_TEXT: "-ios class chain:**/XCUIElementTypeStaticText", INPUT_CHAR_MAX_TEXT: diff --git a/tests/specs/reusable-accounts/ChatUserB/01-main-chats-userB.spec.ts b/tests/specs/reusable-accounts/ChatUserB/01-main-chats-userB.spec.ts index e1fe058d65..cde1cc590a 100644 --- a/tests/specs/reusable-accounts/ChatUserB/01-main-chats-userB.spec.ts +++ b/tests/specs/reusable-accounts/ChatUserB/01-main-chats-userB.spec.ts @@ -48,7 +48,6 @@ export default async function mainChatsTestsUserB() { it("Chat User B - Wait until the other user is connected", async () => { // Go to the current list of All friends and then open a Chat conversation with ChatUserA await friendsScreenFirstUser.validateChatWithFriendButtonExists(); - await friendsScreenFirstUser.hoverOnChatWithFriendButton("ChatUserA"); await friendsScreenFirstUser.chatWithFriendButton.click(); await chatsTopbarFirstUser.validateTopbarExists(); });