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 exiting immediately instead it's waiting to execute the next steps. I am getting the below error
Error: function timed out, ensure the promise resolves within 120000 milliseconds at Timeout. (C:\DEV\ftm_webdriverio\node_modules@cucumber\cucumber\lib\time.js:60:20) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7)
I need to exit the code instead of waiting for the steps to execute. Appreciate any insights. Thanks