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 удалений

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

@@ -194,7 +194,7 @@ describe('Integrations page', () => {
integrationPageTitleIsBold('Incoming Webhooks');
integrationPageTitleIsBold('Outgoing Webhooks');
integrationPageTitleIsBold('Slash Commands');
integrationPageTitleIsBold('Slash Commands', false);
integrationPageTitleIsBold('OAuth 2.0 Applications');
integrationPageTitleIsBold('Bot Accounts');
});
@@ -443,7 +443,7 @@ describe('Integrations page', () => {
});
});
function integrationPageTitleIsBold(title) {
function integrationPageTitleIsBold(title, isBold = true) {
cy.get('.section-title__text').contains(title).click();
cy.get('.item-details__name').should('be.visible').and('have.css', 'font-weight', '400');
cy.get('.item-details__name').should('be.visible').and('have.css', 'font-weight', isBold ? '600' : '400');
}