Chore(cypress): Review and Fix tests failing on master (#26954)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a1ed780a86
Коммит
03c930daa0
@@ -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');
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user