Hopefully fix snapshots at least

This commit is contained in:
lee-at-zoo-corp
2025-04-04 12:40:14 -04:00
parent 767fde869c
commit 062495c02d
2 changed files with 2 additions and 16 deletions

View File

@ -10,6 +10,7 @@ test.describe('Import UI tests', () => {
toolbar, toolbar,
scene, scene,
editor, editor,
cmdBar,
}) => { }) => {
await context.folderSetupFn(async (dir) => { await context.folderSetupFn(async (dir) => {
const projectDir = path.join(dir, 'import-test') const projectDir = path.join(dir, 'import-test')
@ -61,7 +62,7 @@ sketch002 = startSketchOn(extrude001, seg01)`
}) })
await homePage.openProject('import-test') await homePage.openProject('import-test')
await scene.waitForExecutionDone() await scene.settled(cmdBar)
await scene.moveCameraTo( await scene.moveCameraTo(
{ {

View File

@ -103,7 +103,6 @@ part001 = startSketchOn(-XZ)
await u.waitForAuthSkipAppStart() await u.waitForAuthSkipAppStart()
await scene.connectionEstablished()
await scene.settled(cmdBar) await scene.settled(cmdBar)
const axisDirectionPair: Models['AxisDirectionPair_type'] = { const axisDirectionPair: Models['AxisDirectionPair_type'] = {
@ -369,7 +368,6 @@ const extrudeDefaultPlane = async (
await page.setViewportSize({ width: 1200, height: 500 }) await page.setViewportSize({ width: 1200, height: 500 })
await u.waitForAuthSkipAppStart() await u.waitForAuthSkipAppStart()
await scene.connectionEstablished()
await scene.settled(cmdBar) await scene.settled(cmdBar)
await expect(page).toHaveScreenshot({ await expect(page).toHaveScreenshot({
@ -421,7 +419,6 @@ test(
const PUR = 400 / 37.5 //pixeltoUnitRatio const PUR = 400 / 37.5 //pixeltoUnitRatio
await u.waitForAuthSkipAppStart() await u.waitForAuthSkipAppStart()
await scene.connectionEstablished()
const startXPx = 600 const startXPx = 600
const [endOfTangentClk, endOfTangentMv] = scene.makeMouseHelpers( const [endOfTangentClk, endOfTangentMv] = scene.makeMouseHelpers(
@ -551,7 +548,6 @@ test(
await u.waitForAuthSkipAppStart() await u.waitForAuthSkipAppStart()
await scene.connectionEstablished()
// click on "Start Sketch" button // click on "Start Sketch" button
await u.doAndWaitForImageDiff( await u.doAndWaitForImageDiff(
@ -598,7 +594,6 @@ test(
await u.waitForAuthSkipAppStart() await u.waitForAuthSkipAppStart()
await scene.connectionEstablished()
await u.doAndWaitForImageDiff( await u.doAndWaitForImageDiff(
() => page.getByRole('button', { name: 'Start Sketch' }).click(), () => page.getByRole('button', { name: 'Start Sketch' }).click(),
@ -650,7 +645,6 @@ test.describe(
await u.waitForAuthSkipAppStart() await u.waitForAuthSkipAppStart()
await scene.connectionEstablished()
await u.doAndWaitForImageDiff( await u.doAndWaitForImageDiff(
() => page.getByRole('button', { name: 'Start Sketch' }).click(), () => page.getByRole('button', { name: 'Start Sketch' }).click(),
@ -744,7 +738,6 @@ test.describe(
await u.waitForAuthSkipAppStart() await u.waitForAuthSkipAppStart()
await scene.connectionEstablished()
await scene.settled(cmdBar) await scene.settled(cmdBar)
await u.doAndWaitForImageDiff( await u.doAndWaitForImageDiff(
@ -846,7 +839,6 @@ part002 = startSketchOn(part001, seg01)
await u.waitForAuthSkipAppStart() await u.waitForAuthSkipAppStart()
await scene.connectionEstablished()
await scene.settled(cmdBar) await scene.settled(cmdBar)
// Wait for the second extrusion to appear // Wait for the second extrusion to appear
@ -902,7 +894,6 @@ test(
await u.waitForAuthSkipAppStart() await u.waitForAuthSkipAppStart()
await scene.connectionEstablished()
await scene.settled(cmdBar) await scene.settled(cmdBar)
// Wait for the second extrusion to appear // Wait for the second extrusion to appear
@ -943,7 +934,6 @@ test(
await u.waitForAuthSkipAppStart() await u.waitForAuthSkipAppStart()
await scene.connectionEstablished()
await scene.settled(cmdBar) await scene.settled(cmdBar)
// Wait for the second extrusion to appear // Wait for the second extrusion to appear
@ -976,7 +966,6 @@ test.describe('Grid visibility', { tag: '@snapshot' }, () => {
await page.goto('/') await page.goto('/')
await u.waitForAuthSkipAppStart() await u.waitForAuthSkipAppStart()
await scene.connectionEstablished()
await scene.settled(cmdBar) await scene.settled(cmdBar)
await u.closeKclCodePanel() await u.closeKclCodePanel()
@ -1041,7 +1030,6 @@ test.describe('Grid visibility', { tag: '@snapshot' }, () => {
await page.goto('/') await page.goto('/')
await u.waitForAuthSkipAppStart() await u.waitForAuthSkipAppStart()
await scene.connectionEstablished()
await scene.settled(cmdBar) await scene.settled(cmdBar)
await u.closeKclCodePanel() await u.closeKclCodePanel()
@ -1086,7 +1074,6 @@ test.describe('Grid visibility', { tag: '@snapshot' }, () => {
await page.goto('/') await page.goto('/')
await u.waitForAuthSkipAppStart() await u.waitForAuthSkipAppStart()
await scene.connectionEstablished()
await scene.settled(cmdBar) await scene.settled(cmdBar)
await u.closeKclCodePanel() await u.closeKclCodePanel()
@ -1205,7 +1192,6 @@ sweepSketch = startSketchOn(XY)
await page.setViewportSize({ width: 1200, height: 1000 }) await page.setViewportSize({ width: 1200, height: 1000 })
await u.waitForAuthSkipAppStart() await u.waitForAuthSkipAppStart()
await scene.connectionEstablished()
await scene.settled(cmdBar) await scene.settled(cmdBar)
await expect(page, 'expect small color widget').toHaveScreenshot({ await expect(page, 'expect small color widget').toHaveScreenshot({
@ -1255,7 +1241,6 @@ sweepSketch = startSketchOn(XY)
await page.setViewportSize({ width: 1200, height: 1000 }) await page.setViewportSize({ width: 1200, height: 1000 })
await u.waitForAuthSkipAppStart() await u.waitForAuthSkipAppStart()
await scene.connectionEstablished()
await scene.settled(cmdBar) await scene.settled(cmdBar)
await expect(page.locator('.cm-css-color-picker-wrapper')).toBeVisible() await expect(page.locator('.cm-css-color-picker-wrapper')).toBeVisible()