You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is an example of a basic test I have created:
import{expect,test}from'src/test-utils/playwright';test('Starting the app shows the search page and the tutorial pop up',async({
page,})=>{awaitpage.goto('/');awaitpage.getByRole('button',{name: 'Skip'}).click();awaitexpect(page.getByPlaceholder('Search')).toBeVisible();awaitexpect(page.getByRole('button',{name: 'View options'})).toBeVisible();});
When ever I try to run a test MSW doesn't seem to be intercepting the calls as expected, any idea of why this isn't working? Seems like one of the more basic setups out there.
I have tried changing the URL in the handlers to include http://localhost:3001 (we're using a proxy for our API calls)
From what I can see my setup also looks basically identical to #72's example repo.
The text was updated successfully, but these errors were encountered:
I was able to figure out why it wasn't working today, issues caused by my MSAL react calls not being handled when we were in the playwright environment 😓
Hi,
I've been trying to get msw+playwright + playwright-msw to work but can't figure out what I'm either doing wrong or what isn't working.
My setup is this:
vite preview
msw-auto-mock
and aswagger.json
Open API documentation fileExample of one of these handlers:
My
playwright.config.ts
Here is an example of a basic test I have created:
When ever I try to run a test MSW doesn't seem to be intercepting the calls as expected, any idea of why this isn't working? Seems like one of the more basic setups out there.
I have tried changing the URL in the handlers to include
http://localhost:3001
(we're using a proxy for our API calls)From what I can see my setup also looks basically identical to #72's example repo.
The text was updated successfully, but these errors were encountered: