fix e2e about compliance test (#23742)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
44a99d1736
Коммит
5881c7dac5
@@ -31,6 +31,10 @@ describe('Compliance Export', () => {
|
|||||||
teamName = team.name;
|
teamName = team.name;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// # Visit a channel and post a message so it has something to be exported initially
|
||||||
|
cy.visit('/');
|
||||||
|
cy.postMessage('hello');
|
||||||
|
|
||||||
// # Go to compliance page, enable export and do initial export
|
// # Go to compliance page, enable export and do initial export
|
||||||
cy.uiGoToCompliancePage();
|
cy.uiGoToCompliancePage();
|
||||||
cy.uiEnableComplianceExport();
|
cy.uiEnableComplianceExport();
|
||||||
|
|||||||
@@ -33,6 +33,10 @@ describe('Compliance Export', () => {
|
|||||||
teamName = team.name;
|
teamName = team.name;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// # Visit a channel and post a message so it has something to be exported initially
|
||||||
|
cy.visit('/');
|
||||||
|
cy.postMessage('hello');
|
||||||
|
|
||||||
// # Go to compliance page, enable export and do initial export
|
// # Go to compliance page, enable export and do initial export
|
||||||
cy.uiGoToCompliancePage();
|
cy.uiGoToCompliancePage();
|
||||||
cy.uiEnableComplianceExport();
|
cy.uiEnableComplianceExport();
|
||||||
|
|||||||
@@ -37,6 +37,10 @@ describe('Compliance Export', () => {
|
|||||||
teamName = team.name;
|
teamName = team.name;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// # Visit a channel and post a message so it has something to be exported initially
|
||||||
|
cy.visit('/');
|
||||||
|
cy.postMessage('hello');
|
||||||
|
|
||||||
// # Go to compliance page, enable export and do export
|
// # Go to compliance page, enable export and do export
|
||||||
cy.uiGoToCompliancePage();
|
cy.uiGoToCompliancePage();
|
||||||
cy.uiEnableComplianceExport();
|
cy.uiEnableComplianceExport();
|
||||||
|
|||||||
@@ -4,12 +4,17 @@
|
|||||||
import * as TIMEOUTS from '../../fixtures/timeouts';
|
import * as TIMEOUTS from '../../fixtures/timeouts';
|
||||||
|
|
||||||
Cypress.Commands.add('uiEnableComplianceExport', (exportFormat = 'csv') => {
|
Cypress.Commands.add('uiEnableComplianceExport', (exportFormat = 'csv') => {
|
||||||
|
// * Verify that the page is loaded
|
||||||
|
cy.findByText('Enable Compliance Export:').should('be.visible');
|
||||||
|
cy.findByText('Compliance Export time:').should('be.visible');
|
||||||
|
cy.findByText('Export Format:').should('be.visible');
|
||||||
|
|
||||||
// # Enable compliance export
|
// # Enable compliance export
|
||||||
cy.findByRole('radio', {name: /false/i}).click();
|
cy.findByRole('radio', {name: /false/i}).click();
|
||||||
cy.findByRole('radio', {name: /true/i}).click();
|
cy.findByRole('radio', {name: /true/i}).click();
|
||||||
|
|
||||||
// # Change export format
|
// # Change export format
|
||||||
cy.findByRole('combobox', {name: /export format:/i}).select(exportFormat);
|
cy.findByTestId('exportFormatdropdown').should('be.visible').select(exportFormat);
|
||||||
|
|
||||||
// # Save settings
|
// # Save settings
|
||||||
cy.uiSaveConfig({confirm: true});
|
cy.uiSaveConfig({confirm: true});
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user