Skip to content

Commit

Permalink
Add timestamp test
Browse files Browse the repository at this point in the history
  • Loading branch information
MBergCap committed Sep 11, 2023
1 parent 3d827c0 commit d16dbf8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cypress/e2e/admin/administrateMigration.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
When I click on the end migration confirmation button
Then I see the timestamp when the migration is finished
6 changes: 6 additions & 0 deletions cypress/support/pages/admin/pageAdministration.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down Expand Up @@ -408,5 +409,10 @@ class Management {
.click();
}

seeMigrationFinishedTimestamp(){
cy.get(Management.#migrationFinishedTimestamp)
.and('be.visible')
}

}
export default Management
Original file line number Diff line number Diff line change
Expand Up @@ -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()
});

0 comments on commit d16dbf8

Please sign in to comment.