From d16f5ec005d96a26cc712dc8c7fe8ebe856f4d08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Carden=CC=83a?= <35935591+luisecm@users.noreply.github.com> Date: Thu, 19 Oct 2023 12:25:08 -0600 Subject: [PATCH] test(update): press enter key to send messages --- tests/screenobjects/chats/InputBar.ts | 2 +- tests/specs/reusable-accounts/05-message-attachments.spec.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/screenobjects/chats/InputBar.ts b/tests/screenobjects/chats/InputBar.ts index e164aca4c0..8c4e4d17ff 100644 --- a/tests/screenobjects/chats/InputBar.ts +++ b/tests/screenobjects/chats/InputBar.ts @@ -197,7 +197,7 @@ export default class InputBar extends UplinkMainScreen { ? (enterValue = "\uE007") : (enterValue = "\n"); const inputText = await this.inputText; - await inputText.setValue(enterValue); + await inputText.addValue(enterValue); } async selectUploadFromLocalDisk() { diff --git a/tests/specs/reusable-accounts/05-message-attachments.spec.ts b/tests/specs/reusable-accounts/05-message-attachments.spec.ts index a3d1a69763..cf7b1a9e9b 100644 --- a/tests/specs/reusable-accounts/05-message-attachments.spec.ts +++ b/tests/specs/reusable-accounts/05-message-attachments.spec.ts @@ -119,7 +119,7 @@ export default async function messageAttachmentsTests() { it("Send files from Browse Files - Message sent with attachments is shown on local side", async () => { // Type a text message and send it await chatsInputSecondUser.typeMessageOnInput("Attached"); - await chatsInputSecondUser.clickOnSendMessage(); + await chatsInputSecondUser.pressEnterKeyOnInputBar(); // Ensure that message sent with attached file is displayed on local side await chatsMessagesSecondUser.waitForMessageSentToExist("Attached"); @@ -175,7 +175,7 @@ export default async function messageAttachmentsTests() { // Type a text message and send it await chatsInputSecondUser.typeMessageOnInput("Attached2"); - await chatsInputSecondUser.clickOnSendMessage(); + await chatsInputSecondUser.pressEnterKeyOnInputBar(); await chatsMessagesSecondUser.waitForMessageSentToExist("Attached2"); });