fix more tests
This commit is contained in:
@ -63,10 +63,6 @@ test.describe('Testing selections', { tag: ['@skipWin'] }, () => {
|
|||||||
await page.mouse.click(700, 200)
|
await page.mouse.click(700, 200)
|
||||||
await page.waitForTimeout(700) // wait for animation
|
await page.waitForTimeout(700) // wait for animation
|
||||||
|
|
||||||
// select a plane
|
|
||||||
await page.mouse.click(700, 200)
|
|
||||||
await page.waitForTimeout(700) // wait for animation
|
|
||||||
|
|
||||||
const startXPx = 600
|
const startXPx = 600
|
||||||
await u.closeDebugPanel()
|
await u.closeDebugPanel()
|
||||||
await page.mouse.click(startXPx + PUR * 10, 500 - PUR * 10)
|
await page.mouse.click(startXPx + PUR * 10, 500 - PUR * 10)
|
||||||
@ -260,64 +256,64 @@ test.describe('Testing selections', { tag: ['@skipWin'] }, () => {
|
|||||||
localStorage.setItem(
|
localStorage.setItem(
|
||||||
'persistCode',
|
'persistCode',
|
||||||
`sketch001 = startSketchOn('XZ')
|
`sketch001 = startSketchOn('XZ')
|
||||||
|> startProfileAt([-79.26, 95.04], %)
|
|> startProfileAt([-79.26, 95.04], %)
|
||||||
|> line(end=[112.54, 127.64], %, $seg02)
|
|> line(end = [112.54, 127.64], tag = $seg02)
|
||||||
|> line(end=[170.36, -121.61], %, $seg01)
|
|> line(end = [170.36, -121.61], tag = $seg01)
|
||||||
|> line(endAbsolute=[profileStartX(%), profileStartY(%)], %)
|
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|
||||||
|> close(%)
|
|> close()
|
||||||
extrude001 = extrude(50, sketch001)
|
extrude001 = extrude(sketch001, length = 50)
|
||||||
sketch005 = startSketchOn(extrude001, 'END')
|
sketch005 = startSketchOn(extrude001, 'END')
|
||||||
|> startProfileAt([23.24, 136.52], %)
|
|> startProfileAt([23.24, 136.52], %)
|
||||||
|> line(end=[-8.44, 36.61], %)
|
|> line(end = [-8.44, 36.61])
|
||||||
|> line(end=[49.4, 2.05], %)
|
|> line(end = [49.4, 2.05])
|
||||||
|> line(end=[29.69, -46.95], %)
|
|> line(end = [29.69, -46.95])
|
||||||
|> line(endAbsolute=[profileStartX(%), profileStartY(%)], %)
|
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|
||||||
|> close(%)
|
|> close()
|
||||||
sketch003 = startSketchOn(extrude001, seg01)
|
sketch003 = startSketchOn(extrude001, seg01)
|
||||||
|> startProfileAt([21.23, 17.81], %)
|
|> startProfileAt([21.23, 17.81], %)
|
||||||
|> line(end=[51.97, 21.32], %)
|
|> line(end = [51.97, 21.32])
|
||||||
|> line(end=[4.07, -22.75], %)
|
|> line(end = [4.07, -22.75])
|
||||||
|> line(endAbsolute=[profileStartX(%), profileStartY(%)], %)
|
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|
||||||
|> close(%)
|
|> close()
|
||||||
sketch002 = startSketchOn(extrude001, seg02)
|
sketch002 = startSketchOn(extrude001, seg02)
|
||||||
|> startProfileAt([-100.54, 16.99], %)
|
|> startProfileAt([-100.54, 16.99], %)
|
||||||
|> line(end=[0, 20.03], %)
|
|> line(end = [0, 20.03])
|
||||||
|> line(end=[62.61, 0], %, $seg03)
|
|> line(end = [62.61, 0], tag = $seg03)
|
||||||
|> line(endAbsolute=[profileStartX(%), profileStartY(%)], %)
|
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|
||||||
|> close(%)
|
|> close()
|
||||||
extrude002 = extrude(50, sketch002)
|
extrude002 = extrude(sketch002, length = 50)
|
||||||
sketch004 = startSketchOn(extrude002, seg03)
|
sketch004 = startSketchOn(extrude002, seg03)
|
||||||
|> startProfileAt([57.07, 134.77], %)
|
|> startProfileAt([57.07, 134.77], %)
|
||||||
|> line(end=[-4.72, 22.84], %)
|
|> line(end = [-4.72, 22.84])
|
||||||
|> line(end=[28.8, 6.71], %)
|
|> line(end = [28.8, 6.71])
|
||||||
|> line(end=[9.19, -25.33], %)
|
|> line(end = [9.19, -25.33])
|
||||||
|> line(endAbsolute=[profileStartX(%), profileStartY(%)], %)
|
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|
||||||
|> close(%)
|
|> close()
|
||||||
extrude003 = extrude(20, sketch004)
|
extrude003 = extrude(sketch004, length = 20)
|
||||||
pipeLength = 40
|
pipeLength = 40
|
||||||
pipeSmallDia = 10
|
pipeSmallDia = 10
|
||||||
pipeLargeDia = 20
|
pipeLargeDia = 20
|
||||||
thickness = 0.5
|
thickness = 0.5
|
||||||
part009 = startSketchOn('XY')
|
part009 = startSketchOn('XY')
|
||||||
|> startProfileAt([pipeLargeDia - (thickness / 2), 38], %)
|
|> startProfileAt([pipeLargeDia - (thickness / 2), 38], %)
|
||||||
|> line(end=[thickness, 0], %)
|
|> line(end = [thickness, 0])
|
||||||
|> line(end=[0, -1], %)
|
|> line(end = [0, -1])
|
||||||
|> angledLineToX({
|
|> angledLineToX({
|
||||||
angle = 60,
|
angle = 60,
|
||||||
to = pipeSmallDia + thickness
|
to = pipeSmallDia + thickness
|
||||||
}, %)
|
}, %)
|
||||||
|> line(end=[0, -pipeLength], %)
|
|> line(end = [0, -pipeLength])
|
||||||
|> angledLineToX({
|
|> angledLineToX({
|
||||||
angle = -60,
|
angle = -60,
|
||||||
to = pipeLargeDia + thickness
|
to = pipeLargeDia + thickness
|
||||||
}, %)
|
}, %)
|
||||||
|> line(end=[0, -1], %)
|
|> line(end = [0, -1])
|
||||||
|> line(end=[-thickness, 0], %)
|
|> line(end = [-thickness, 0])
|
||||||
|> line(end=[0, 1], %)
|
|> line(end = [0, 1])
|
||||||
|> angledLineToX({ angle = 120, to = pipeSmallDia }, %)
|
|> angledLineToX({ angle = 120, to = pipeSmallDia }, %)
|
||||||
|> line(end=[0, pipeLength], %)
|
|> line(end = [0, pipeLength])
|
||||||
|> angledLineToX({ angle = 60, to = pipeLargeDia }, %)
|
|> angledLineToX({ angle = 60, to = pipeLargeDia }, %)
|
||||||
|> close(%)
|
|> close()
|
||||||
rev = revolve({ axis = 'y' }, part009)
|
rev = revolve({ axis = 'y' }, part009)
|
||||||
sketch006 = startSketchOn('XY')
|
sketch006 = startSketchOn('XY')
|
||||||
profile001 = circle({
|
profile001 = circle({
|
||||||
@ -334,12 +330,12 @@ profile002 = startProfileAt([86.92, -63.81], sketch006)
|
|||||||
segAng(rectangleSegmentA001),
|
segAng(rectangleSegmentA001),
|
||||||
-segLen(rectangleSegmentA001)
|
-segLen(rectangleSegmentA001)
|
||||||
], %)
|
], %)
|
||||||
|> line(endAbsolute=[profileStartX(%), profileStartY(%)], %)
|
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|
||||||
|> close(%)
|
|> close()
|
||||||
profile003 = startProfileAt([40.16, -120.48], sketch006)
|
profile003 = startProfileAt([40.16, -120.48], sketch006)
|
||||||
|> line(end=[26.95, 24.21], %)
|
|> line(end = [26.95, 24.21])
|
||||||
|> line(end=[20.91, -28.61], %)
|
|> line(end = [20.91, -28.61])
|
||||||
|> line(end=[32.46, 18.71], %)
|
|> line(end = [32.46, 18.71])
|
||||||
|
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
@ -449,7 +445,7 @@ profile003 = startProfileAt([40.16, -120.48], sketch006)
|
|||||||
const codeToBeDeletedSnippet =
|
const codeToBeDeletedSnippet =
|
||||||
'profile003 = startProfileAt([40.16, -120.48], sketch006)'
|
'profile003 = startProfileAt([40.16, -120.48], sketch006)'
|
||||||
await expect(page.locator('.cm-activeLine')).toHaveText(
|
await expect(page.locator('.cm-activeLine')).toHaveText(
|
||||||
' |> line([20.91, -28.61], %)'
|
' |> line(end = [20.91, -28.61])'
|
||||||
)
|
)
|
||||||
await u.clearCommandLogs()
|
await u.clearCommandLogs()
|
||||||
await page.keyboard.press('Backspace')
|
await page.keyboard.press('Backspace')
|
||||||
|
@ -532,11 +532,11 @@ extrude001 = extrude(sketch001, length = 5 + 7)`
|
|||||||
|
|
||||||
await expect.poll(u.normalisedEditorCode).toContain(
|
await expect.poll(u.normalisedEditorCode).toContain(
|
||||||
u.normalisedCode(`sketch002 = startSketchOn(extrude001, seg01)
|
u.normalisedCode(`sketch002 = startSketchOn(extrude001, seg01)
|
||||||
profile001 = startProfileAt([-12.88, 6.66], sketch002)
|
profile001 = startProfileAt([-12.34, 12.34], sketch002)
|
||||||
|> line(end = [2.71, -0.22], %)
|
|> line(end = [12.34, -12.34])
|
||||||
|> line(end = [-2.87, -1.38], %)
|
|> line(end = [-12.34, -12.34])
|
||||||
|> lineTo(endAbsolute = [profileStartX(%), profileStartY(%)], %)
|
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|
||||||
|> close(%)
|
|> close()
|
||||||
`)
|
`)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user