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
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4c91ad8b61
Коммит
7ba1928c29
@@ -347,8 +347,8 @@ describe('Profile popover', () => {
|
||||
// # Visit that channel
|
||||
cy.visit(`/${testTeam.name}/channels/${testChannel.name}`);
|
||||
|
||||
// * Verify that there are 2 post views now.
|
||||
cy.findAllByTestId('postView', {timeout: TIMEOUTS.ONE_MIN}).should('have.length', 2);
|
||||
// * Verify that there are 1 post views now.
|
||||
cy.findAllByTestId('postView', {timeout: TIMEOUTS.ONE_MIN}).should('have.length', 1);
|
||||
|
||||
// * Verify that user added message is there.
|
||||
cy.findAllByTestId('postView').last().find('.post-message__text').should('contain.text', `@${testUser.username} added to the channel by you.`);
|
||||
|
||||
@@ -44,7 +44,7 @@ describe('User Management', () => {
|
||||
cy.visit('/admin_console/user_management/users');
|
||||
gotoUserConfigurationPage(testUser);
|
||||
|
||||
verifyManageUserSettingModal(testUser);
|
||||
verifyManageUserSettingModal(testUser, true);
|
||||
|
||||
cy.get('#replyNotificationsTitle').should('be.visible').should('have.text', 'Reply notifications').click();
|
||||
cy.get('#notificationCommentsNever').should('be.checked');
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user