Chore(cypress): Review and Fix tests failing on master (#26954)

Этот коммит содержится в:
yasserfaraazkhan
2024-05-06 15:48:19 +05:30
коммит произвёл GitHub
родитель a1ed780a86
Коммит 03c930daa0
42 изменённых файлов: 120 добавлений и 134 удалений

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

@@ -48,7 +48,10 @@ describe('Keyboard Shortcuts', () => {
cy.get('.status--group').click();
// * Check if channel intro message with usernames is visible
cy.findByText(/This is the start/).should('be.visible').contains(secondUser.username).contains(thirdUser.username);
cy.get('.channel-intro__text').contains('This is the start of your group message history with these teammates').
should('be.visible');
cy.get('.channel-intro__title').contains(secondUser.username).contains(thirdUser.username);
});
});
});

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

@@ -26,7 +26,7 @@ describe('Keyboard Shortcuts', () => {
cy.postMessage(message);
// # Open the edit the channel header modal
cy.findByRole('button', {name: 'Set a Header dialog'}).click();
cy.get('[aria-label="Set header dialog"]').click();
// * Verify modal is open
cy.findByRole('dialog', {name: 'Edit Header for Off-Topic'}).within(() => {