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

tests #38

Open
unicomp21 opened this issue May 12, 2023 · 2 comments
Open

tests #38

unicomp21 opened this issue May 12, 2023 · 2 comments

Comments

@unicomp21
Copy link

Error: A snapshot doesn't exist at /Users/johndavis/repo/dev/monorepo/root/babylonjs-webpack-es6/tests/validation.spec.ts-snapshots/Render-Default-with-WebGPU-1-chromium-darwin.png, writing actual.

65 | });
66 | // await page.waitForFunction(() => (window as any).renderCount === scene.renderCount || 1, { timeout: 5000 });

67 | await expect(page).toHaveScreenshot({
| ^
68 | timeout: 0,
69 | });
70 | expect(testInfo.stderr).toHaveLength(0);

at /Users/johndavis/repo/dev/monorepo/root/babylonjs-webpack-es6/tests/validation.spec.ts:67:7
@unicomp21
Copy link
Author

@RaananW ^how do i fix it?

@RaananW
Copy link
Owner

RaananW commented May 15, 2023

the snapshots were created on windows, so the filename that was auto-generated ends with win32. You can generate the snapshots to fit your use case:

npm run test:visuals -- --update-snapshots .

I think a different solution would be to remove the OS-version from the generated file. I'll keep this issue open to keep track of making the changes.

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

2 participants