Change import-model-asset.e2e.ts to use dispatchEvent for click

This commit is contained in:
2026-04-03 00:10:44 +02:00
parent 56305dc7cf
commit db8965436d

View File

@@ -67,7 +67,7 @@ test("imports a model asset, places an instance, and survives reload", async ({
z: -76
});
await page.getByRole("button", { name: "Save Draft" }).click();
await page.getByRole("button", { name: "Save Draft" }).dispatchEvent("click");
await expect(page.getByTestId("status-message")).toContainText("Local draft saved.");
await page.reload();