Cover delete/restore account forms with E2E tests

This commit is contained in:
ErickSkrauch
2020-07-28 23:00:51 +03:00
parent 8ee2323bfa
commit 3cff6ad26c
7 changed files with 159 additions and 13 deletions

View File

@@ -1,3 +1,5 @@
import { UserResponse } from 'app/services/api/accounts';
import { openSectionByName, getSectionByName, confirmWithPassword } from './utils';
describe('Profile — mfa', () => {
@@ -63,10 +65,11 @@ describe('Profile — mfa', () => {
elyProfileLink: 'http://ely.by/u7',
email: 'danilenkos@auroraglobal.com',
isActive: true,
isDeleted: false,
passwordChangedAt: 1476075696,
hasMojangUsernameCollision: true,
shouldAcceptRules: false,
},
} as UserResponse,
});
confirmWithPassword(account.password);
@@ -104,10 +107,11 @@ describe('Profile — mfa', () => {
elyProfileLink: 'http://ely.by/u7',
email: 'danilenkos@auroraglobal.com',
isActive: true,
isDeleted: false,
passwordChangedAt: 1476075696,
hasMojangUsernameCollision: true,
shouldAcceptRules: false,
},
} as UserResponse,
});
cy.route({
method: 'DELETE',