MM-40414: Add empty state icons (#25282)

Automatic Merge
Этот коммит содержится в:
Ashish Dhama
2023-11-20 09:30:14 +05:30
коммит произвёл GitHub
родитель 8bd603eb12
Коммит a9a879d00d
57 изменённых файлов: 809 добавлений и 151 удалений

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

@@ -115,7 +115,7 @@ Cypress.Commands.add('uiGetRecentMentionButton', () => {
});
Cypress.Commands.add('uiGetSavedPostButton', () => {
return cy.findByRole('button', {name: 'Saved posts'}).should('be.visible');
return cy.findByRole('button', {name: 'Saved messages'}).should('be.visible');
});
Cypress.Commands.add('uiGetSettingsButton', () => {

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

@@ -111,7 +111,7 @@ export function verifySavedPost(postId, message) {
cy.get('#searchContainer').should('be.visible').within(() => {
cy.get('.sidebar--right__title').
should('be.visible').
and('have.text', 'Saved Posts');
and('have.text', 'Saved messages');
// * Check that the post pre-header is not shown for the saved message in RHS
cy.get(`#searchResult_${postId}`).within(() => {
@@ -129,14 +129,14 @@ export function verifyUnsavedPost(postId) {
cy.get(`#post_${postId}`).trigger('mouseover', {force: true});
cy.get(`#CENTER_flagIcon_${postId}`).
should('have.class', 'post-menu__item').
and('have.attr', 'aria-label', 'save');
and('have.attr', 'aria-label', 'save message');
// # Open the post-dotmenu
cy.clickPostDotMenu(postId, 'CENTER');
// * Check that the dotmenu item is changed accordingly
cy.findAllByTestId(`post-menu-${postId}`).eq(0).should('be.visible');
cy.findByText('Save').scrollIntoView().should('be.visible');
cy.findByText('Save Message').scrollIntoView().should('be.visible');
cy.get(`#CENTER_dropdown_${postId}`).should('be.visible').type('{esc}');
cy.get('#postListContent').within(() => {
@@ -165,7 +165,7 @@ export function verifyUnsavedPost(postId) {
cy.get('#searchContainer').should('be.visible').within(() => {
cy.get('.sidebar--right__title').
should('be.visible').
and('have.text', 'Saved Posts');
and('have.text', 'Saved messages');
// * Check that the post pre-header is not shown for the saved message in RHS
cy.get('#search-items-container').within(() => {