[MM-57383] User profile popover performance improved and redesigned (#26420)

Этот коммит содержится в:
M-ZubairAhmed
2024-05-15 07:35:25 +00:00
коммит произвёл GitHub
родитель 4fbc96ec02
Коммит 0911e4dee7
91 изменённых файлов: 4932 добавлений и 7148 удалений

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

@@ -45,7 +45,7 @@ describe('Profile > Profile Settings > Position', () => {
cy.get('.profile-icon > img').as('profileIconForPopover').click();
// # Verify that the popover is visible and contains position
cy.contains('#user-profile-popover', position).should('be.visible');
cy.contains('div.user-profile-popover', position).should('be.visible');
});
it('MM-T2064 Position / 128 characters', () => {

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

@@ -60,10 +60,11 @@ describe('Profile > Profile Settings> Full Name', () => {
cy.getLastPostId().then((postId) => {
cy.get(`#post_${postId}`).should('be.visible');
cy.get(`#post_${postId} img`).click();
cy.get('#user-profile-popover').should('be.visible');
cy.get('div.user-profile-popover').should('be.visible');
cy.get('button.closeButtonRelativePosition').click();
// * Popover user name should show truncated to 'This Is a Long Name That Should Tr...'
cy.findByTestId(`popover-fullname-${firstUser.username}`).should('have.css', 'text-overflow', 'ellipsis');
cy.findByTestId(`popover-fullname-${firstUser.username}`).should('have.css', 'text-overflow', 'clip');
});
});

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

@@ -205,7 +205,7 @@ describe('Settings > Sidebar > General > Edit', () => {
});
// * Verify username in profile popover
cy.get('#user-profile-popover').within(() => {
cy.get('div.user-profile-popover').within(() => {
cy.get('#userPopoverUsername').should('be.visible').and('contain', `${testUser.username}`);
});
});
@@ -238,7 +238,7 @@ describe('Settings > Sidebar > General > Edit', () => {
});
// * Verify that new username is in profile popover
cy.get('#user-profile-popover').within(() => {
cy.get('div.user-profile-popover').within(() => {
cy.get('#userPopoverUsername').should('be.visible').and('contain', `${otherUser.username}-${randomId}`);
});
});