Skip to content

Commit

Permalink
Add retries to login section of e2e (CMC-1713) (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasrice authored Sep 27, 2021
1 parent cd90e76 commit f5fab7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions e2e/pages/login.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ module.exports = {
submitButton: 'input[value="Sign in"]',

signIn(user) {
I.waitForElement(this.fields.username);
I.retry(5).waitForElement(this.fields.username);
I.fillField(this.fields.username, user.email);
I.fillField(this.fields.password, user.password);

I.waitForElement(this.submitButton);
I.retry(5).waitForElement(this.submitButton);
I.click(this.submitButton);
},
};
4 changes: 2 additions & 2 deletions e2e/tests/smoke_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ const config = require('../config.js');
Feature('Smoke tests @smoke-tests');

Scenario('Sign in as solicitor user', async ({I}) => {
await I.login(config.applicantSolicitorUser);
await I.see('Case list');
await I.retry(5).login(config.applicantSolicitorUser);
await I.retry(5).see('Case list');
});

0 comments on commit f5fab7d

Please sign in to comment.