Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inspector not appearing and no new files are created #9

Open
rinogo opened this issue Dec 17, 2021 · 0 comments
Open

Inspector not appearing and no new files are created #9

rinogo opened this issue Dec 17, 2021 · 0 comments

Comments

@rinogo
Copy link

rinogo commented Dec 17, 2021

Seems like a really cool project! I can't get it to work, though.

I'm using the following in my .spec.ts file:

test.beforeEach(async ({ page }) => {
  await useNetworkRecordMocks(page, {
    recordRoute: `page-you-are-testing`,
  });
});

Then, I run with:

PWDEBUG=console npx playwright test --config=test/playwright.config.ts

The tests run headful but the Playwright Inspector never appears. I see the following output every time I run tests - nothing seems to be recorded (no new files are appearing in my repo)

--- Test output ------------------------------------------------------------------------------------

Mocks file not found, recording a new one!

----------------------------------------------------------------------------------------------------

Any idea what might be going on? Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant