@ -944,11 +944,14 @@ sketch002 = startSketchOn(extrude001, 'END')
|
||||
)
|
||||
})
|
||||
|
||||
/* TODO: once we fix bug turn on.
|
||||
test('empty-scene default-planes act as expected when spaces in file', async ({
|
||||
test('empty-scene default-planes act as expected when spaces in file', async ({
|
||||
page,
|
||||
browserName,
|
||||
}) => {
|
||||
test.skip(
|
||||
browserName === 'webkit',
|
||||
'Skip on Safari until `window.tearDown` is working there'
|
||||
)
|
||||
|
||||
const u = await getUtils(page)
|
||||
await page.setViewportSize({ width: 1200, height: 500 })
|
||||
@ -1000,6 +1003,10 @@ sketch002 = startSketchOn(extrude001, 'END')
|
||||
page,
|
||||
browserName,
|
||||
}) => {
|
||||
test.skip(
|
||||
browserName === 'webkit',
|
||||
'Skip on Safari until `window.tearDown` is working there'
|
||||
)
|
||||
|
||||
const u = await getUtils(page)
|
||||
await page.setViewportSize({ width: 1200, height: 500 })
|
||||
@ -1045,7 +1052,7 @@ sketch002 = startSketchOn(extrude001, 'END')
|
||||
expect(
|
||||
await u.getGreatestPixDiff(XYPlanePoint, unHoveredColor)
|
||||
).toBeLessThan(8)
|
||||
})*/
|
||||
})
|
||||
|
||||
test('empty-scene default-planes act as expected', async ({
|
||||
page,
|
||||
|
||||
@ -2110,6 +2110,7 @@ export class EngineCommandManager extends EventTarget {
|
||||
}
|
||||
|
||||
deferredArtifactPopulated = deferExecution((a?: null) => {
|
||||
console.log('populated')
|
||||
this.modelingSend({ type: 'Artifact graph populated' })
|
||||
}, 200)
|
||||
deferredArtifactEmptied = deferExecution((a?: null) => {
|
||||
|
||||
@ -984,6 +984,7 @@ export const modelingMachine = setup({
|
||||
})
|
||||
},
|
||||
'show default planes': () => {
|
||||
console.log('show default planes')
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
kclManager.showPlanes()
|
||||
},
|
||||
@ -1682,8 +1683,10 @@ export const modelingMachine = setup({
|
||||
},
|
||||
|
||||
showPlanes: {
|
||||
reenter: true,
|
||||
on: {
|
||||
'Artifact graph emptied': 'hidePlanes',
|
||||
'Artifact graph populated': 'showPlanes',
|
||||
},
|
||||
|
||||
entry: [
|
||||
|
||||
Reference in New Issue
Block a user