diff --git a/e2e/playwright/flow-tests.spec.ts b/e2e/playwright/flow-tests.spec.ts index 28af93ea4..5a9eb8c58 100644 --- a/e2e/playwright/flow-tests.spec.ts +++ b/e2e/playwright/flow-tests.spec.ts @@ -47,6 +47,7 @@ test.beforeEach(async ({ context, page }) => { localStorage.setItem('TOKEN_PERSIST_KEY', token) localStorage.setItem('persistCode', ``) localStorage.setItem(settingsKey, settings) + localStorage.setItem('playwright', 'true') }, { token: secrets.token, @@ -2592,7 +2593,6 @@ test.describe('Testing segment overlays', () => { |> tangentialArcTo([3.14 + 13, 3.14], %) ` ) - localStorage.setItem('playwright', 'true') }) const u = await getUtils(page) await page.setViewportSize({ width: 1200, height: 500 }) @@ -2735,7 +2735,6 @@ const part001 = startSketchOn('XZ') |> angledLineOfXLength({ angle: 181 + 0, length: 23.14 }, %) ` ) - localStorage.setItem('playwright', 'true') }) const u = await getUtils(page) await page.setViewportSize({ width: 1200, height: 500 }) @@ -2808,7 +2807,6 @@ const part001 = startSketchOn('XZ') |> tangentialArcTo([3.14 + 13, 3.14], %) ` ) - localStorage.setItem('playwright', 'true') }) const u = await getUtils(page) await page.setViewportSize({ width: 1200, height: 500 }) @@ -2918,7 +2916,6 @@ const part001 = startSketchOn('XZ') |> tangentialArcTo([3.14 + 13, 1.14], %) ` ) - localStorage.setItem('playwright', 'true') }) const u = await getUtils(page) await page.setViewportSize({ width: 1200, height: 500 }) @@ -3056,7 +3053,6 @@ const part001 = startSketchOn('XZ') |> tangentialArcTo([3.14 + 13, -3.14], %) ` ) - localStorage.setItem('playwright', 'true') }) const u = await getUtils(page) await page.setViewportSize({ width: 1200, height: 500 }) @@ -3156,7 +3152,6 @@ const part001 = startSketchOn('XZ') |> tangentialArcTo([3.14 + 13, 1.14], %) ` ) - localStorage.setItem('playwright', 'true') }) const u = await getUtils(page) await page.setViewportSize({ width: 1200, height: 500 }) diff --git a/e2e/playwright/snapshot-tests.spec.ts b/e2e/playwright/snapshot-tests.spec.ts index b93b094e2..949e35a25 100644 --- a/e2e/playwright/snapshot-tests.spec.ts +++ b/e2e/playwright/snapshot-tests.spec.ts @@ -20,6 +20,7 @@ test.beforeEach(async ({ page }) => { localStorage.setItem('TOKEN_PERSIST_KEY', token) localStorage.setItem('persistCode', ``) localStorage.setItem(settingsKey, settings) + localStorage.setItem('playwright', 'true') }, { token: secrets.token, diff --git a/e2e/playwright/snapshot-tests.spec.ts-snapshots/Draft-rectangles-should-look-right-1-Google-Chrome-linux.png b/e2e/playwright/snapshot-tests.spec.ts-snapshots/Draft-rectangles-should-look-right-1-Google-Chrome-linux.png index f788e15bb..9ef452cc5 100644 Binary files a/e2e/playwright/snapshot-tests.spec.ts-snapshots/Draft-rectangles-should-look-right-1-Google-Chrome-linux.png and b/e2e/playwright/snapshot-tests.spec.ts-snapshots/Draft-rectangles-should-look-right-1-Google-Chrome-linux.png differ diff --git a/e2e/playwright/snapshot-tests.spec.ts-snapshots/Draft-segments-should-look-right-1-Google-Chrome-linux.png b/e2e/playwright/snapshot-tests.spec.ts-snapshots/Draft-segments-should-look-right-1-Google-Chrome-linux.png index f7693fd60..61b51ee99 100644 Binary files a/e2e/playwright/snapshot-tests.spec.ts-snapshots/Draft-segments-should-look-right-1-Google-Chrome-linux.png and b/e2e/playwright/snapshot-tests.spec.ts-snapshots/Draft-segments-should-look-right-1-Google-Chrome-linux.png differ diff --git a/e2e/playwright/snapshot-tests.spec.ts-snapshots/Draft-segments-should-look-right-2-Google-Chrome-linux.png b/e2e/playwright/snapshot-tests.spec.ts-snapshots/Draft-segments-should-look-right-2-Google-Chrome-linux.png index 91c582a8e..2f6bf0bd7 100644 Binary files a/e2e/playwright/snapshot-tests.spec.ts-snapshots/Draft-segments-should-look-right-2-Google-Chrome-linux.png and b/e2e/playwright/snapshot-tests.spec.ts-snapshots/Draft-segments-should-look-right-2-Google-Chrome-linux.png differ diff --git a/e2e/playwright/snapshot-tests.spec.ts-snapshots/Sketch-on-face-with-none-z-up-1-Google-Chrome-linux.png b/e2e/playwright/snapshot-tests.spec.ts-snapshots/Sketch-on-face-with-none-z-up-1-Google-Chrome-linux.png index 9d3a22641..263a6af64 100644 Binary files a/e2e/playwright/snapshot-tests.spec.ts-snapshots/Sketch-on-face-with-none-z-up-1-Google-Chrome-linux.png and b/e2e/playwright/snapshot-tests.spec.ts-snapshots/Sketch-on-face-with-none-z-up-1-Google-Chrome-linux.png differ diff --git a/e2e/playwright/snapshot-tests.spec.ts-snapshots/Zoom-to-fit-on-load---solid-3d-1-Google-Chrome-linux.png b/e2e/playwright/snapshot-tests.spec.ts-snapshots/Zoom-to-fit-on-load---solid-3d-1-Google-Chrome-linux.png index 4f5aa5216..65521c024 100644 Binary files a/e2e/playwright/snapshot-tests.spec.ts-snapshots/Zoom-to-fit-on-load---solid-3d-1-Google-Chrome-linux.png and b/e2e/playwright/snapshot-tests.spec.ts-snapshots/Zoom-to-fit-on-load---solid-3d-1-Google-Chrome-linux.png differ diff --git a/src/components/LowerRightControls.tsx b/src/components/LowerRightControls.tsx index 39805fbbe..496d64e97 100644 --- a/src/components/LowerRightControls.tsx +++ b/src/components/LowerRightControls.tsx @@ -13,6 +13,8 @@ export function LowerRightControls(props: React.PropsWithChildren) { const linkOverrideClassName = '!text-chalkboard-70 hover:!text-chalkboard-80 dark:!text-chalkboard-40 dark:hover:!text-chalkboard-30' + const isPlayWright = window?.localStorage.getItem('playwright') === 'true' + return (
{props.children} @@ -23,7 +25,7 @@ export function LowerRightControls(props: React.PropsWithChildren) { rel="noopener noreferrer" className={'!no-underline font-mono text-xs ' + linkOverrideClassName} > - v{APP_VERSION} + v{isPlayWright ? '11.22.33' : APP_VERSION}