Upon clicking a button, I am attempting to open a modal popup but encountering an error:
The button click works, however, the popup does not appear after the event.
test.only('Create Template', async({ page })=>{
await page.goto('http://localhost:3000');
await page.click('text=Templates');
await page.click('text=Create Template');
await page.waitForURL('http://localhost:Templates');
});
racing.stop
— 1ms
browserContext.newPage
— 272ms
page.goto
(localhost:3000)
— 990ms
locator.click
(text=Templates)
— 206ms
locator.click
(text=Create Template)
— 476ms
page.waitForURL()
waiting for navigation to "http://localhost:Templates" until "load"