Rollback pw values to pre cam change

This commit is contained in:
Pierre Jacquier
2024-12-04 16:43:29 -05:00
parent 5156b847f3
commit 8d66f3ffad

View File

@ -692,24 +692,24 @@ loftPointAndClickCases.forEach(({ shouldPreselect }) => {
cmdBar, cmdBar,
}) => { }) => {
const initialCode = `sketch001 = startSketchOn('XZ') const initialCode = `sketch001 = startSketchOn('XZ')
|> circle({ center = [0, 0], radius = 40 }, %) |> circle({ center = [0, 0], radius = 30 }, %)
plane001 = offsetPlane('XZ', -40) plane001 = offsetPlane('XZ', 50)
sketch002 = startSketchOn(plane001) sketch002 = startSketchOn(plane001)
|> circle({ center = [0, 0], radius = 20 }, %) |> circle({ center = [0, 0], radius = 20 }, %)
` `
await app.initialise(initialCode) await app.initialise(initialCode)
// One dumb hardcoded screen pixel value // One dumb hardcoded screen pixel value
const testPoint = { x: 560, y: 275 } const testPoint = { x: 575, y: 200 }
const [clickOnSketch1] = scene.makeMouseHelpers(testPoint.x, testPoint.y) const [clickOnSketch1] = scene.makeMouseHelpers(testPoint.x, testPoint.y)
const [clickOnSketch2] = scene.makeMouseHelpers( const [clickOnSketch2] = scene.makeMouseHelpers(
testPoint.x + 20, testPoint.x,
testPoint.y testPoint.y + 80
) )
const loftDeclaration = 'loft001 = loft([sketch001, sketch002])' const loftDeclaration = 'loft001 = loft([sketch001, sketch002])'
await test.step(`Look for the white of the sketch001 shape`, async () => { await test.step(`Look for the white of the sketch001 shape`, async () => {
await scene.expectPixelColor([208, 208, 208], testPoint, 15) await scene.expectPixelColor([254, 254, 254], testPoint, 15)
}) })
async function selectSketches() { async function selectSketches() {
@ -764,7 +764,7 @@ sketch002 = startSketchOn(plane001)
activeLines: [loftDeclaration], activeLines: [loftDeclaration],
highlightedCode: '', highlightedCode: '',
}) })
await scene.expectPixelColor([16, 16, 16], testPoint, 15) await scene.expectPixelColor([89, 89, 89], testPoint, 15)
}) })
}) })
}) })