fix 'Engine disconnect & reconnect in sketch mode' test (#3215)

* fix 'Engine disconnect & reconnect in sketch mode' test

* tweak

* tweak 2
This commit is contained in:
Kurt Hutten
2024-08-01 18:39:24 +10:00
committed by GitHub
parent 1ac39d95f2
commit a74c715c01

View File

@ -7290,15 +7290,15 @@ test.describe('Test network and connection issues', () => {
.toHaveText(`const sketch001 = startSketchOn('XZ') .toHaveText(`const sketch001 = startSketchOn('XZ')
|> startProfileAt(${commonPoints.startAt}, %) |> startProfileAt(${commonPoints.startAt}, %)
|> line([${commonPoints.num1}, 0], %) |> line([${commonPoints.num1}, 0], %)
|> line([-9.16, 8.81], %)`) |> line([-8.84, 8.75], %)`)
await page.waitForTimeout(100) await page.waitForTimeout(100)
await page.mouse.click(startXPx, 500 - PUR * 20) await page.mouse.click(startXPx, 500 - PUR * 20)
await expect(page.locator('.cm-content')) await expect(page.locator('.cm-content'))
.toHaveText(`const sketch001 = startSketchOn('XZ') .toHaveText(`const sketch001 = startSketchOn('XZ')
|> startProfileAt(${commonPoints.startAt}, %) |> startProfileAt(${commonPoints.startAt}, %)
|> line([${commonPoints.num1}, 0], %) |> line([${commonPoints.num1}, 0], %)
|> line([-9.16, 8.81], %) |> line([-8.84, 8.75], %)
|> line([-5.28, 0], %)`) |> line([-5.6, 0], %)`)
// Unequip line tool // Unequip line tool
await page.keyboard.press('Escape') await page.keyboard.press('Escape')