Skip to content

Commit

Permalink
Merge pull request #498 from Satellite-im/luis/enter-to-send
Browse files Browse the repository at this point in the history
test(update): press enter key to send messages
  • Loading branch information
luisecm authored Oct 19, 2023
2 parents e82e543 + d16f5ec commit bc0bbb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/screenobjects/chats/InputBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions tests/specs/reusable-accounts/05-message-attachments.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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");
});

Expand Down

0 comments on commit bc0bbb5

Please sign in to comment.