Fix Cypress tests on master (#26500)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6ea363e260
Коммит
9e5d486a5b
@@ -61,7 +61,7 @@ describe('Archived channels', () => {
|
||||
cy.visit(`/admin_console/user_management/channels/${testChannel.id}`);
|
||||
|
||||
// * Verify the Unarchive Channel button is visible
|
||||
cy.get('button.ArchiveButton', {timeout: TIMEOUTS.ONE_MIN}).findByText('Unarchive Channel').should('be.visible');
|
||||
cy.get('button.btn-secondary', {timeout: TIMEOUTS.TWO_SEC}).should('have.text', 'Unarchive Channel').should('be.visible').should('be.enabled');
|
||||
|
||||
// * Verify that only one widget is visible
|
||||
cy.get('div.AdminPanel').should('be.visible').and('have.length', 1);
|
||||
@@ -72,10 +72,10 @@ describe('Archived channels', () => {
|
||||
cy.visit(`/admin_console/user_management/channels/${testChannel.id}`);
|
||||
|
||||
// # Click Unarchive Channel button
|
||||
cy.get('button.ArchiveButton', {timeout: TIMEOUTS.ONE_MIN}).findAllByText('Unarchive Channel').click();
|
||||
cy.get('button.btn-secondary', {timeout: TIMEOUTS.TWO_SEC}).findAllByText('Unarchive Channel').click();
|
||||
|
||||
// * Verify the Archive Channel button is visible
|
||||
cy.get('button.ArchiveButton', {timeout: TIMEOUTS.TWO_SEC}).findAllByText('Archive Channel').should('be.visible');
|
||||
cy.get('button.btn-secondary.btn-danger', {timeout: TIMEOUTS.TWO_SEC}).findAllByText('Archive Channel').should('be.visible');
|
||||
|
||||
// * Verify that the other widget appears
|
||||
cy.get('div.AdminPanel').should('be.visible').should('have.length', 5);
|
||||
|
||||
@@ -148,7 +148,7 @@ describe('Compliance Export', () => {
|
||||
cy.findByTestId('enableComplianceExportfalse').click();
|
||||
|
||||
// * Verify that exported button is disabled
|
||||
cy.findByRole('button', {name: /run compliance export job now/i}).should('be.enabled');
|
||||
cy.findByRole('button', {name: /run compliance export job now/i}).should('be.not.enabled');
|
||||
});
|
||||
|
||||
it('MM-T1167 - Compliance Export job can be canceled', () => {
|
||||
|
||||
@@ -78,7 +78,7 @@ describe('System Console > Site Statistics', () => {
|
||||
cy.get('.admin-console__content .row').should('have.length', 4);
|
||||
|
||||
// * Check that the title content for the stats is as expected.
|
||||
cy.findByTestId('totalActiveUsersTitle').should('contain', 'Total Active Users');
|
||||
cy.findByTestId('totalActiveUsersTitle').should('have.text', 'Total Activated Users');
|
||||
|
||||
// cy.findByTestId('seatPurchasedTitle').should('contain', 'Total paid users');
|
||||
cy.findByTestId('totalTeamsTitle').should('contain', 'Total Teams');
|
||||
|
||||
Ссылка в новой задаче
Block a user