MM-54022: add warning when deleting a remote post (#28284)

Этот коммит содержится в:
Caleb Roseland
2024-09-24 12:04:26 -05:00
коммит произвёл GitHub
родитель e080f9f5ed
Коммит e0e0b57b8b
7 изменённых файлов: 129 добавлений и 115 удалений

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

@@ -43,10 +43,10 @@ describe('Message deletion', () => {
cy.get('#deletePostModal').should('be.visible');
// * Check that confirmation dialog contains correct text
cy.get('#deletePostModal').should('contain', 'Are you sure you want to delete this Post?');
cy.get('#deletePostModal').should('contain', 'Are you sure you want to delete this message?');
// * Check that confirmation dialog shows that the post has one comment on it
cy.get('#deletePostModal').should('contain', 'This post has 1 comment on it.');
cy.get('#deletePostModal').should('contain', 'This message has 1 comment on it.');
// # Confirm deletion.
cy.get('#deletePostModalButton').click();

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

@@ -379,10 +379,10 @@ const deleteLatestPostRoot = (testTeam, channelName) => {
// * Check that confirmation dialog contains correct text
cy.get('#deletePostModal').
should('contain', 'Are you sure you want to delete this Post?');
should('contain', 'Are you sure you want to delete this message?');
// * Check that confirmation dialog shows that the post has one comment on it
cy.get('#deletePostModal').should('contain', 'This post has 1 comment on it.');
cy.get('#deletePostModal').should('contain', 'This message has 1 comment on it.');
// # Confirm deletion.
cy.get('#deletePostModalButton').click();