Fix cache count numbers in editor test

This commit is contained in:
lee-at-zoo-corp
2025-04-04 01:53:05 -04:00
parent cdc0fa4ed9
commit 25af691911

View File

@ -82,7 +82,7 @@ sketch001 = startSketchOn(XY)
.poll(() => .poll(() =>
page.locator('[data-receive-command-type="scene_clear_all"]').count() page.locator('[data-receive-command-type="scene_clear_all"]').count()
) )
.toBe(3) .toBe(1)
await expect await expect
.poll(() => page.locator('[data-message-type="execution-done"]').count()) .poll(() => page.locator('[data-message-type="execution-done"]').count())
.toBe(2) .toBe(2)
@ -106,7 +106,7 @@ sketch001 = startSketchOn(XY)
).toHaveCount(3) ).toHaveCount(3)
await expect( await expect(
page.locator('[data-receive-command-type="scene_clear_all"]') page.locator('[data-receive-command-type="scene_clear_all"]')
).toHaveCount(3) ).toHaveCount(1)
}) })
test('ensure we use the cache, and do not clear on append', async ({ test('ensure we use the cache, and do not clear on append', async ({
@ -133,7 +133,7 @@ sketch001 = startSketchOn(XY)
await u.openDebugPanel() await u.openDebugPanel()
await expect( await expect(
page.locator('[data-receive-command-type="scene_clear_all"]') page.locator('[data-receive-command-type="scene_clear_all"]')
).toHaveCount(2) ).toHaveCount(1)
await expect( await expect(
page.locator('[data-message-type="execution-done"]') page.locator('[data-message-type="execution-done"]')
).toHaveCount(2) ).toHaveCount(2)
@ -161,7 +161,7 @@ sketch001 = startSketchOn(XY)
).toHaveCount(3) ).toHaveCount(3)
await expect( await expect(
page.locator('[data-receive-command-type="scene_clear_all"]') page.locator('[data-receive-command-type="scene_clear_all"]')
).toHaveCount(2) ).toHaveCount(1)
}) })
test('if you click the format button it formats your code', async ({ test('if you click the format button it formats your code', async ({