Change click event to dispatchEvent in import-model-asset.e2e.ts
This commit is contained in:
@@ -49,7 +49,7 @@ test("imports a model asset, places an instance, and survives reload", async ({
|
|||||||
|
|
||||||
await setViewportPlacementPreview(page, "topLeft", { kind: "model-instance", assetId: importedModelAsset.id }, { x: 92, y: 0, z: -76 });
|
await setViewportPlacementPreview(page, "topLeft", { kind: "model-instance", assetId: importedModelAsset.id }, { x: 92, y: 0, z: -76 });
|
||||||
await expect(page.getByTestId("viewport-snap-preview-topLeft")).toBeVisible();
|
await expect(page.getByTestId("viewport-snap-preview-topLeft")).toBeVisible();
|
||||||
await page.getByTestId("viewport-fallback-place-topLeft").click();
|
await page.getByTestId("viewport-fallback-place-topLeft").dispatchEvent("click");
|
||||||
await expect(page.getByTestId("outliner-model-instance-list").getByRole("button")).toHaveCount(2);
|
await expect(page.getByTestId("outliner-model-instance-list").getByRole("button")).toHaveCount(2);
|
||||||
const snapshot = await getEditorStoreSnapshot(page);
|
const snapshot = await getEditorStoreSnapshot(page);
|
||||||
const selectedModelInstanceId = snapshot.selection.kind === "modelInstances" ? snapshot.selection.ids?.[0] ?? null : null;
|
const selectedModelInstanceId = snapshot.selection.kind === "modelInstances" ? snapshot.selection.ids?.[0] ?? null : null;
|
||||||
|
|||||||
Reference in New Issue
Block a user