Update entities foundation e2e test to store snapshots

This commit is contained in:
2026-04-03 00:27:53 +02:00
parent 6cb7989a85
commit 149f550274

View File

@@ -152,7 +152,8 @@ test("escape cancels a typed entity creation preview", async ({ page }) => {
await page.getByTestId("add-menu-entities").click();
await page.getByTestId("add-menu-player-start").click();
await expect(await getEditorStoreSnapshot(page)).toMatchObject({
const creationSnapshot = await getEditorStoreSnapshot(page);
expect(creationSnapshot).toMatchObject({
toolMode: "create",
viewportTransientState: {
toolPreview: {
@@ -170,7 +171,8 @@ test("escape cancels a typed entity creation preview", async ({ page }) => {
await page.keyboard.press("Escape");
await expect(await getEditorStoreSnapshot(page)).toMatchObject({
const cancelledSnapshot = await getEditorStoreSnapshot(page);
expect(cancelledSnapshot).toMatchObject({
toolMode: "select",
viewportTransientState: {
toolPreview: {