Skip to content

Commit

Permalink
updating snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Jul 24, 2024
1 parent 713a535 commit 346c518
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/e2e/snapshot.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@ const demoNames = ["aquarium", "baking-soft-shadows", "basic-demo"];
console.log("demoNames", demoNames);

demoNames.forEach((demoName) => {
test(`${demoName} should match previous one`, async ({ page }) => {
test(`${demoName}`, async ({ page }) => {
// Redirect console.log messages to stdout
page.on("console", (msg) => {
if (msg.type() === "log") {
console.log(`Browser console.log: ${msg.text()}`);
}
});

await waitForServer();

// ⏳ "r3f" event
Expand All @@ -53,7 +60,7 @@ demoNames.forEach((demoName) => {

// 👁️
await expect($canvas).toHaveScreenshot({
maxDiffPixelRatio: 0.1,
maxDiffPixelRatio: 0.05,
});
});
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.

0 comments on commit 346c518

Please sign in to comment.