diff --git a/tests/screenobjects/chats/InputBar.ts b/tests/screenobjects/chats/InputBar.ts index bb12da7be7..a244a297dd 100644 --- a/tests/screenobjects/chats/InputBar.ts +++ b/tests/screenobjects/chats/InputBar.ts @@ -123,6 +123,11 @@ class InputBar extends UplinkMainScreen { return $(SELECTORS.UPLOAD_BUTTON_LOCAL_DISK); } + public async getInputBarPlaceholderText() { + const inputText = await this.inputText; + return inputText.getAttribute('placeholderValue'); + } + async clearInputBar() { const inputText = await this.inputText; await inputText.clearValue(); diff --git a/tests/specs/reusable-accounts/04-message-input.spec.ts b/tests/specs/reusable-accounts/04-message-input.spec.ts index 1e7ec6e1b9..b769149e74 100644 --- a/tests/specs/reusable-accounts/04-message-input.spec.ts +++ b/tests/specs/reusable-accounts/04-message-input.spec.ts @@ -123,6 +123,16 @@ export default async function messageInputTests() { await expect(messageContents).toHaveText("Bolds1"); }); + it('should have the correct placeholder text', async () => { + await InputBar.inputText.waitForDisplayed(); + // Retrieve the placeholder text + const actualPlaceholderText = await InputBar.getInputBarPlaceholderText(); + // Define expected placeholder text + const expectedPlaceholderText = 'Say something...'; + // Assert that the actual placeholder text matches the expected placeholder text + expect(actualPlaceholderText).toEqual(expectedPlaceholderText); + }); + it("Chat Input Text - Validate texts with __ markdown are sent in bolds", async () => { // With Chat User A, send a message with __ markdown await InputBar.typeMessageOnInput("__Bolds2__");