[MM-53636] Add channel/team name back for the Saved Posts view (#24117)

* [MM-53636] Add channel/team name back for the Saved Posts view

* E2E test
Этот коммит содержится в:
Devin Binnie
2023-07-28 15:35:18 -04:00
коммит произвёл GitHub
родитель 93a2c3281a
Коммит 047583947f
2 изменённых файлов: 15 добавлений и 2 удалений

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

@@ -40,6 +40,19 @@ describe('Post PreHeader', () => {
// * Assert the preHeader is displayed and works as expected
verifySavedPost(postId, message);
// # Click the saved link
cy.get('@savedLink').click();
// * Check that the saved post shows the channel name
cy.findByTestId('search-item-container').within(() => {
cy.get('span.search-channel__name').
should('be.visible').
and('have.text', 'Off-Topic');
});
// # Close the RHS
cy.get('#searchResultsCloseButton').should('be.visible').click();
// # Click again the center save icon of a post
cy.clickPostSaveIcon(postId);