Minor tests improvements

This commit is contained in:
SleepWalker 2019-12-30 09:58:51 +02:00
parent af2f7cc532
commit 5428e53a86
2 changed files with 6 additions and 0 deletions

View File

@ -227,6 +227,8 @@ describe('Sign in / Log out', () => {
.contains(account2.username) .contains(account2.username)
.click(); .click();
cy.get('[data-e2e-account-id]').should('have.length', 0); 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', () => { it('should not allow log in the same account twice', () => {

View File

@ -58,6 +58,7 @@ describe('Profile — Change Email', () => {
cy.location('pathname').should('eq', '/profile/change-email/step2'); cy.location('pathname').should('eq', '/profile/change-email/step2');
cy.getByTestId('step2').should('be.visible');
cy.getByTestId('step2') cy.getByTestId('step2')
.find('[name=key]') .find('[name=key]')
.type(key); .type(key);
@ -76,6 +77,9 @@ describe('Profile — Change Email', () => {
); );
cy.location('pathname').should('eq', '/profile/change-email/step3'); cy.location('pathname').should('eq', '/profile/change-email/step3');
cy.getByTestId('step3')
.find('[name=key]')
.should('be.visible');
cy.getByTestId('step3') cy.getByTestId('step3')
.find('[name=key]') .find('[name=key]')
.should('have.value', ''); .should('have.value', '');