revert failing test

This commit is contained in:
Kurt Hutten Irev-Dev
2024-06-03 10:22:23 +10:00
parent c158ffcb79
commit b769aeffe8

View File

@ -4235,7 +4235,8 @@ test('Engine disconnect & reconnect in sketch mode', async ({ page }) => {
await expect(
page.getByRole('button', { name: 'Start Sketch' })
).not.toBeDisabled({ timeout: 15000 })
).not.toBeDisabled()
await expect(page.getByRole('button', { name: 'Start Sketch' })).toBeVisible()
// click on "Start Sketch" button
await u.clearCommandLogs()
@ -4298,10 +4299,6 @@ test('Engine disconnect & reconnect in sketch mode', async ({ page }) => {
})
// Wait for the app to be ready for use
await expect(
page.getByRole('button', { name: 'Start Sketch' })
).not.toBeDisabled({ timeout: 15000 })
// Expect the network to be up
await expect(page.getByText('Network Health (Connected)')).toBeVisible()
@ -4329,15 +4326,15 @@ test('Engine disconnect & reconnect in sketch mode', async ({ page }) => {
.toHaveText(`const part001 = startSketchOn('XZ')
|> startProfileAt(${commonPoints.startAt}, %)
|> line([${commonPoints.num1}, 0], %)
|> line([-11.64, 11.11], %)`)
|> line([-11.59, 11.1], %)`)
await page.waitForTimeout(100)
await page.mouse.click(startXPx, 500 - PUR * 20)
await expect(page.locator('.cm-content'))
.toHaveText(`const part001 = startSketchOn('XZ')
|> startProfileAt(${commonPoints.startAt}, %)
|> line([${commonPoints.num1}, 0], %)
|> line([-11.64, 11.11], %)
|> line([-6.56, 0], %)`)
|> line([-11.59, 11.1], %)
|> line([-6.61, 0], %)`)
// Unequip line tool
await page.keyboard.press('Escape')