Skip to content

Commit

Permalink
test tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Irev-Dev committed Feb 28, 2025
1 parent f135f49 commit e96ae46
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions e2e/playwright/regression-tests.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -635,15 +635,13 @@ extrude001 = extrude(sketch001, length = 50)
homePage,
toolbar,
}) => {
const u = await getUtils(page)

await test.step('Load an empty file', async () => {
await page.addInitScript(async () => {
localStorage.setItem('persistCode', '')
})
await page.setBodyDimensions({ width: 1200, height: 500 })
await homePage.goToModelingScene()
await u.waitForPageLoad()
})

const toolBarMode = () =>
Expand All @@ -658,11 +656,8 @@ extrude001 = extrude(sketch001, length = 50)
await page.mouse.click(700, 200)

// Check that the modeling toolbar doesn't appear during the animation
// The animation typically takes around 500ms, so we'll check for 800
for (let i = 0; i < 8; i++) {
await expect.poll(toolBarMode).not.toEqual('modeling')
await page.waitForTimeout(100)
}
// The animation typically takes around 500ms, so we'll check for a second
await expect.poll(toolBarMode, {timeout: 1000}).not.toEqual('modeling')

// After animation completes, we should see the sketching toolbar
await expect.poll(toolBarMode).toEqual('sketching')
Expand Down

0 comments on commit e96ae46

Please sign in to comment.