From bd5698fec254751613f75daf9e76db6157fe891e Mon Sep 17 00:00:00 2001 From: Frank Noirot Date: Tue, 3 Sep 2024 16:30:50 -0400 Subject: [PATCH] Some colors and export file size changes occurred engine-side, update tests to match --- e2e/playwright/desktop-export.spec.ts | 2 +- e2e/playwright/projects.spec.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/e2e/playwright/desktop-export.spec.ts b/e2e/playwright/desktop-export.spec.ts index 713060b43..a510028ca 100644 --- a/e2e/playwright/desktop-export.spec.ts +++ b/e2e/playwright/desktop-export.spec.ts @@ -104,7 +104,7 @@ test( }, { timeout: 15_000 } ) - .toBe(477327) + .toBe(477715) // clean up output.gltf await fsp.rm('output.gltf') diff --git a/e2e/playwright/projects.spec.ts b/e2e/playwright/projects.spec.ts index fc662f40a..f8970a9b1 100644 --- a/e2e/playwright/projects.spec.ts +++ b/e2e/playwright/projects.spec.ts @@ -173,7 +173,7 @@ test.describe('Can export from electron app', () => { // gray at this pixel means the stream has loaded in the most // user way we can verify it (pixel color) await expect - .poll(() => u.getGreatestPixDiff(pointOnModel, [75, 75, 75]), { + .poll(() => u.getGreatestPixDiff(pointOnModel, [85, 85, 85]), { timeout: 10_000, }) .toBeLessThan(10) @@ -207,7 +207,7 @@ test.describe('Can export from electron app', () => { }, { timeout: 15_000 } ) - .toBe(477327) + .toBe(477715) // clean up output.gltf await fsp.rm('output.gltf') @@ -856,7 +856,7 @@ const extrude001 = extrude(200, sketch001)`) // gray at this pixel means the stream has loaded in the most // user way we can verify it (pixel color) await expect - .poll(() => u.getGreatestPixDiff(pointOnModel, [132, 132, 132]), { + .poll(() => u.getGreatestPixDiff(pointOnModel, [143, 143, 143]), { timeout: 10_000, }) .toBeLessThan(10) @@ -867,7 +867,7 @@ const extrude001 = extrude(200, sketch001)`) await page.mouse.click(pointOnModel.x, pointOnModel.y) // check user can interact with model by checking it turns yellow await expect - .poll(() => u.getGreatestPixDiff(pointOnModel, [176, 180, 132])) + .poll(() => u.getGreatestPixDiff(pointOnModel, [185, 185, 142])) .toBeLessThan(10) }).toPass({ timeout: 40_000, intervals: [1_000] }) @@ -956,7 +956,7 @@ test( // gray at this pixel means the stream has loaded in the most // user way we can verify it (pixel color) await expect - .poll(() => u.getGreatestPixDiff(pointOnModel, [75, 75, 75]), { + .poll(() => u.getGreatestPixDiff(pointOnModel, [85, 85, 85]), { timeout: 10_000, }) .toBeLessThan(10) @@ -990,7 +990,7 @@ test( // gray at this pixel means the stream has loaded in the most // user way we can verify it (pixel color) await expect - .poll(() => u.getGreatestPixDiff(pointOnModel, [132, 132, 132]), { + .poll(() => u.getGreatestPixDiff(pointOnModel, [143, 143, 143]), { timeout: 10_000, }) .toBeLessThan(10)