Skip to content

Commit

Permalink
Fix existing: when engine fails export we handle the failure and aler…
Browse files Browse the repository at this point in the history
…t the user (#3561)

Fix existing: when engine fails export we handle the failure and alert the user #3560
  • Loading branch information
Irev-Dev authored Aug 20, 2024
1 parent c674feb commit 0ef6eac
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions e2e/playwright/regression-tests.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,13 @@ const sketch001 = startSketchAt([-0, -0])
page,
}) => {
const u = await getUtils(page)
await page.addInitScript(async (code) => {
localStorage.setItem('persistCode', code)
}, TEST_CODE_TRIGGER_ENGINE_EXPORT_ERROR)
await page.addInitScript(
async ({ code }) => {
localStorage.setItem('persistCode', code)
;(window as any).playwrightSkipFilePicker = true
},
{ code: TEST_CODE_TRIGGER_ENGINE_EXPORT_ERROR }
)

await page.setViewportSize({ width: 1000, height: 500 })

Expand Down Expand Up @@ -325,7 +329,7 @@ const sketch001 = startSketchAt([-0, -0])
await expect(exportingToastMessage).toBeVisible()

// Expect it to succeed.
await expect(exportingToastMessage).not.toBeVisible()
await expect(exportingToastMessage).not.toBeVisible({ timeout: 15_000 })
await expect(errorToastMessage).not.toBeVisible()
await expect(engineErrorToastMessage).not.toBeVisible()

Expand Down

0 comments on commit 0ef6eac

Please sign in to comment.