diff --git a/e2e/playwright/flow-tests.spec.ts b/e2e/playwright/flow-tests.spec.ts index e81b092ac..73176f127 100644 --- a/e2e/playwright/flow-tests.spec.ts +++ b/e2e/playwright/flow-tests.spec.ts @@ -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')