Reputation: 1707
According to the goto
docs, I have to set navigationTimeout
in options
to override the default wait of 30 seconds. I am trying to override it to 100 seconds, but it isn't working - it times out in 40 seconds, as shown here:
Here's my step:
step('Go to <path>', async function (path) {
await goto(process.env.BASE_URL + path, { navigationTimeout: 100000 })
})
My test case:
# Add product to cart
* Go to "/collections/all-products"
* Click on the link with the text "A Prodcut"
* Click the button with the label "Add to Cart"
* Go to "/cart"
Upvotes: 0
Views: 731
Reputation: 957
The timeout shown here is from Gauge, try updating the gauge step timeout in the properties file default/js.properties
to something above 120000
.
It was failing because the step timeout of Gauge is lesser than that of Taiko's
Upvotes: 0
Reputation:
NavigationTimeOut waits that amount of milliseconds while waitForNavigations waits for navigation that amount of time.
You can check it out in the link you posted
Upvotes: 0