Skip to content

Commit

Permalink
Tests/eui 1002 test coverage, async function fix (#354)
Browse files Browse the repository at this point in the history
* Refactor and fix existing functional tests

* New browser to handle user registration email on mailinator domain

* Functional tests invite user and validate after successful registration

* End to end scenarios added

* common run config to separet file

* Fixed config import/require

* minor fix to use chai-promised

* Fixed minor issues. added jenkins nightly file for nightly functional test build.

* Fixed step definition mapping issue.

* Include invite suer scenario to functional test group

* config update

* added retry page load on blank or service error.

* Applied fixes to make tests robust

* locator fix

* Added scenario to validate MC login for invited user

* Fixes to improve robustness of tests.

* merge conflict fixes

* Added retry actions to handle scenario robustness

* Ret login added to get to login page

* fix missing async keyword for function

* Fixes to screenshot util and Invite user retries

* Fixed world param reference in step definition

* Replaced page refresh with get url to overcome service error page.

* Fixed by adding  async function
  • Loading branch information
sreekanthpuligadda authored and Vamshi-Muniganti committed Jan 23, 2020
1 parent 0a95b4c commit 3e95844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/features/step_definitions/loginLogout.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defineSupportCode(function ({ Given, When, Then }) {
await browser.driver.manage()
.deleteAllCookies();
await browser.refresh();
await browserWaits.retryWithAction(loginPage.emailAddress, function (message) {
await browserWaits.retryWithAction(loginPage.emailAddress, async function (message) {
world.attach("Retrying Login page load : " + message);
browser.takeScreenshot()
.then(stream => {
Expand Down

0 comments on commit 3e95844

Please sign in to comment.