I am implementing cucumber page object model with webdriverio. I need to stop the execution when a step fails.
Feature:
Given user login with <username> and <password>--- first page
And user selects configuration ---second page
And user perform some action--- third page
When I give invalid credentials code is not stopping on the first step itself.
I am getting below error message on “And user perform some action”
Error: function timed out, ensure the promise resolves within 120000 milliseconds
at Timeout.<anonymous> (C:[email protected]:60:20)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
I tried giving the option “bail: 1” but still the same result.
Appreciate any insights.
Thanks