[MM-63799] Fix the high number of detached nodes in post list in dynamic-virtualized-list (#30864)

Этот коммит содержится в:
M-ZubairAhmed
2025-06-11 22:42:15 +05:30
коммит произвёл GitHub
родитель ee5926f03c
Коммит c6a11763a8
9 изменённых файлов: 201 добавлений и 222 удалений

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

@@ -71,7 +71,7 @@ describe('Collapsed Reply Threads', () => {
cy.uiGetPostThreadFooter(rootPost.id).should('not.exist');
// # Post a reply post as current user
cy.postMessageAs({sender: testUser, message: 'reply!', channelId: testChannel.id, rootId: rootPost.id});
cy.postMessageAs({sender: testUser, message: 'reply to root post', channelId: testChannel.id, rootId: rootPost.id});
// # Get thread footer of last post
cy.uiGetPostThreadFooter(rootPost.id).within(() => {

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

@@ -27,7 +27,8 @@ describe('Leave Channel Command', () => {
it('Should be redirected to last channel when user leaves channel with /leave command', () => {
// # Go to newly created channel
cy.get('#sidebarItem_' + testChannel.name).click({force: true});
cy.findAllByTestId('postView').should('be.visible');
cy.findAllByTestId('postView').last().scrollIntoView().should('be.visible');
// # Post /leave command in center channel
cy.postMessage('/leave ');

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

@@ -139,6 +139,9 @@ describe('Teams Suite', () => {
});
cy.get('#sidebarItem_off-topic').should('be.visible').click({force: true});
cy.findAllByTestId('postView').last().scrollIntoView();
cy.getLastPost().wait(TIMEOUTS.HALF_SEC).then(($el) => {
cy.wrap($el).get('.user-popover').
should('be.visible').

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

@@ -139,7 +139,7 @@ Cypress.Commands.add('uiClickSidebarItem', (name) => {
});
cy.get('#tutorial-threads-mobile-header span.Button_label').contains('Followed threads');
} else {
cy.findAllByTestId('postView').should('be.visible');
cy.findAllByTestId('postView').last().scrollIntoView().should('be.visible');
}
});