I have a stepwizard where the next button triggers a post request before navigating to next the step.
await page.click('[data-test-next-step]');
await page.waitForSelector(['data-test-address-page']);
When I click on the button via page.click(selector) and page.waitForSelector(next-page) nothing happens. However, if I set a waitFor(500) prior to clicking on the next button, it works just fine.
Any idea what this could be?
I have already tried waitUntil and all the possible values we can pass to it, but no luck
Thank you!