diff --git a/cypress/e2e/admin/administrateMigration.feature b/cypress/e2e/admin/administrateMigration.feature index 942a410e..625d59ef 100644 --- a/cypress/e2e/admin/administrateMigration.feature +++ b/cypress/e2e/admin/administrateMigration.feature @@ -35,4 +35,5 @@ Feature: Admin Users - To administrate the Migration process. Then I can see the end migration confirmation button is disabled When I click on the end migration confirmation checkbox Then I see the end migration confirmation button is enabled - When I click on the end migration confirmation button \ No newline at end of file + When I click on the end migration confirmation button + Then I see the timestamp when the migration is finished \ No newline at end of file diff --git a/cypress/support/pages/admin/pageAdministration.js b/cypress/support/pages/admin/pageAdministration.js index a61239ae..addbe8a1 100644 --- a/cypress/support/pages/admin/pageAdministration.js +++ b/cypress/support/pages/admin/pageAdministration.js @@ -49,6 +49,7 @@ class Management { static #endMigrationTextBlogLink = '[data-testid="end-warningcard-migration-blog-link"]' static #migrationMandatorySwitch = '[data-testid="migration-mandatory-switch"]' static #enableSyncDuringMigrationSwitch = '[data-testid="enable-sync-during-migration-switch"]' + static #migrationFinishedTimestamp = '[data-testid="migration-finished-timestamp"]' disableTeamsVideoConferenceByAdmin () { @@ -408,5 +409,10 @@ class Management { .click(); } + seeMigrationFinishedTimestamp(){ + cy.get(Management.#migrationFinishedTimestamp) + .and('be.visible') + } + } export default Management diff --git a/cypress/support/step_definition/admin/administrateMigrationSteps.js b/cypress/support/step_definition/admin/administrateMigrationSteps.js index c947395f..6663881e 100644 --- a/cypress/support/step_definition/admin/administrateMigrationSteps.js +++ b/cypress/support/step_definition/admin/administrateMigrationSteps.js @@ -91,4 +91,8 @@ When('I toggle the migration mandatory switch', () => { When('I toggle the sync during migration switch', () => { management.toggleSyncDuringMigrationSwitch() +}); + +Then('I see the timestamp when the migration is finished', () => { + management.seeMigrationFinishedTimestamp() }); \ No newline at end of file