Fix(e2e): At-mention user autocomplete should open above the textbox in RHS (#27962)

* Fix(e2e): At-mention user autocomplete should open above the textbox in RHS
Этот коммит содержится в:
yasserfaraazkhan
2024-08-14 21:04:07 +05:30
коммит произвёл GitHub
родитель 4c91ad8b61
Коммит 7ba1928c29
3 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@@ -21,7 +21,7 @@ describe('Messaging', () => {
});
});
it('At-mention user autocomplete should open below the textbox in RHS when only one message is present -- KNOWN ISSUE: MM-45597', () => {
it('At-mention user autocomplete should open above the textbox in RHS when only one message is present', () => {
// # Add a single message to center textbox
cy.postMessage(MESSAGES.TINY);
@@ -36,8 +36,8 @@ describe('Messaging', () => {
cy.uiGetReplyTextBox().then((replyTextbox) => {
cy.get('#suggestionList').then((suggestionList) => {
// * Verify that the suggestion box opened below the textbox
expect(replyTextbox[0].getBoundingClientRect().top).to.be.lessThan(suggestionList[0].getBoundingClientRect().top);
// * Verify that the suggestion box opened above the textbox
expect(replyTextbox[0].getBoundingClientRect().top).to.be.greaterThan(suggestionList[0].getBoundingClientRect().top);
});
});