Update box brush authoring e2e test to store snapshots

This commit is contained in:
2026-04-03 00:27:49 +02:00
parent 7c95b7e71e
commit 6cb7989a85

View File

@@ -23,7 +23,8 @@ test("user can create a box brush and keep it through a draft reload", async ({
await page.reload();
await page.getByRole("button", { name: "Box Create" }).click();
await expect(await getEditorStoreSnapshot(page)).toMatchObject({
const creationSnapshot = await getEditorStoreSnapshot(page);
expect(creationSnapshot).toMatchObject({
toolMode: "create",
viewportTransientState: {
toolPreview: {
@@ -37,7 +38,8 @@ test("user can create a box brush and keep it through a draft 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: {