[MM-61756] Attribute Based Access Control - Phase 1 (#30785)
Attribute Based Access Control - Base * MM-63662 * MM-63919 * MM-63954 * MM-63955 * MM-63425 * MM-63426 * MM-63458 * MM-63459 * MM-63603 * MM-63845 * MM-64146 * MM-64199 * MM-64201 * MM-64233 * MM-64247 * MM-64268 --------- Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com> Co-authored-by: Pablo Andrés Vélez Vidal <pablovv2012@gmail.com> Co-authored-by: abhijit-singh <abhijitsingh0702@gmail.com> Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4b445cbf16
Коммит
a344b3225b
@@ -108,19 +108,19 @@ describe('Compliance Export', () => {
|
||||
|
||||
// * Verify table header
|
||||
cy.get('@firstheader').within(() => {
|
||||
cy.get('th:eq(1)').should('have.text', 'Status');
|
||||
cy.get('th:eq(2)').should('have.text', 'Files');
|
||||
cy.get('th:eq(3)').should('have.text', 'Finish Time');
|
||||
cy.get('th:eq(4)').should('have.text', 'Run Time');
|
||||
cy.get('th:eq(5)').should('have.text', 'Details');
|
||||
cy.get('th:eq(0)').should('have.text', 'Status');
|
||||
cy.get('th:eq(1)').should('have.text', 'Finish Time');
|
||||
cy.get('th:eq(2)').should('have.text', 'Run Time');
|
||||
cy.get('th:eq(3)').should('have.text', 'Files');
|
||||
cy.get('th:eq(4)').should('have.text', 'Details');
|
||||
});
|
||||
|
||||
// * Verify first row (last run job) data
|
||||
cy.get('@firstRow').within(() => {
|
||||
cy.get('td:eq(1)').should('have.text', 'Success');
|
||||
cy.get('td:eq(2)').should('have.text', 'Download');
|
||||
cy.get('td:eq(4)').contains('seconds');
|
||||
cy.get('td:eq(5)').should('have.text', '1 messages exported.');
|
||||
cy.get('td:eq(0)').should('have.text', 'Success');
|
||||
cy.get('td:eq(2)').contains('seconds');
|
||||
cy.get('td:eq(3)').should('have.text', 'Download');
|
||||
cy.get('td:eq(4)').should('have.text', '1 messages exported.');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -166,6 +166,6 @@ describe('Compliance Export', () => {
|
||||
cy.get('.job-table__table').find('tbody > tr').eq(0).as('firstRow');
|
||||
|
||||
// * Canceled text should be shown in the first row of the table
|
||||
cy.get('@firstRow').find('td:eq(1)').should('have.text', 'Canceled');
|
||||
cy.get('@firstRow').find('td:eq(0)').should('have.text', 'Canceled');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -41,7 +41,7 @@ export function verifyActianceXMLFile(targetFolder, type, match) {
|
||||
|
||||
export function verifyExportedMessagesCount(expectedNumber) {
|
||||
// * Verifying number of exported messages
|
||||
cy.get('@firstRow').find('td:eq(5)').should('have.text', `${expectedNumber} messages exported.`);
|
||||
cy.get('@firstRow').find('td:eq(4)').should('have.text', `${expectedNumber} messages exported.`);
|
||||
}
|
||||
|
||||
export function editLastPost(message) {
|
||||
@@ -161,7 +161,7 @@ export function runDataRetentionAndVerifyPostDeleted(testTeam, testChannel, post
|
||||
// # Waiting for Data Retention process to finish
|
||||
cy.get('.job-table__table').find('tbody > tr').eq(0).as('firstRow');
|
||||
cy.get('@firstRow').within(() => {
|
||||
cy.get('td:eq(1)', {timeout: TIMEOUTS.FOUR_MIN}).should('have.text', 'Success');
|
||||
cy.get('td:eq(0)', {timeout: TIMEOUTS.FOUR_MIN}).should('have.text', 'Success');
|
||||
});
|
||||
|
||||
// * Verifying if post has been deleted
|
||||
|
||||
@@ -40,7 +40,7 @@ Cypress.Commands.add('uiExportCompliance', () => {
|
||||
|
||||
// # Wait until export is finished
|
||||
cy.waitUntil(() => {
|
||||
return cy.get('@firstRow').find('td:eq(1)').then((el) => {
|
||||
return cy.get('@firstRow').find('td:eq(0)').then((el) => {
|
||||
return el[0].innerText.trim() === 'Success';
|
||||
});
|
||||
},
|
||||
|
||||
Ссылка в новой задаче
Block a user