Skip to content

Commit

Permalink
test(update): update locator for button
Browse files Browse the repository at this point in the history
  • Loading branch information
luisecm committed Nov 7, 2023
1 parent 9a55fa1 commit 8f2123a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/screenobjects/chats/InputBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};

Expand All @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit 8f2123a

Please sign in to comment.