mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-23 00:22:57 +05:30
Minor tests improvements
This commit is contained in:
parent
af2f7cc532
commit
5428e53a86
@ -227,6 +227,8 @@ describe('Sign in / Log out', () => {
|
||||
.contains(account2.username)
|
||||
.click();
|
||||
cy.get('[data-e2e-account-id]').should('have.length', 0);
|
||||
cy.getByTestId('profile-index').should('not.contain', account1.username);
|
||||
cy.getByTestId('profile-index').should('contain', account2.username);
|
||||
});
|
||||
|
||||
it('should not allow log in the same account twice', () => {
|
||||
|
@ -58,6 +58,7 @@ describe('Profile — Change Email', () => {
|
||||
|
||||
cy.location('pathname').should('eq', '/profile/change-email/step2');
|
||||
|
||||
cy.getByTestId('step2').should('be.visible');
|
||||
cy.getByTestId('step2')
|
||||
.find('[name=key]')
|
||||
.type(key);
|
||||
@ -76,6 +77,9 @@ describe('Profile — Change Email', () => {
|
||||
);
|
||||
cy.location('pathname').should('eq', '/profile/change-email/step3');
|
||||
|
||||
cy.getByTestId('step3')
|
||||
.find('[name=key]')
|
||||
.should('be.visible');
|
||||
cy.getByTestId('step3')
|
||||
.find('[name=key]')
|
||||
.should('have.value', '');
|
||||
|
Loading…
Reference in New Issue
Block a user