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"); });