Store and assert snapshot after pressing Escape in import-model-asset.e2e.ts

This commit is contained in:
2026-04-03 00:28:00 +02:00
parent 149f550274
commit f5bb8b2627

View File

@@ -62,7 +62,8 @@ test("imports a model asset, places an instance, and survives reload", async ({
}
await page.keyboard.press("Escape");
await expect(await getEditorStoreSnapshot(page)).toMatchObject({
const cancelledSnapshot = await getEditorStoreSnapshot(page);
expect(cancelledSnapshot).toMatchObject({
toolMode: "select",
viewportTransientState: {
toolPreview: {