diff --git a/e2e/signature-actions.spec.ts b/e2e/signature-actions.spec.ts index e305459..048f266 100644 --- a/e2e/signature-actions.spec.ts +++ b/e2e/signature-actions.spec.ts @@ -57,3 +57,8 @@ test("zoom a pdf element", async({page})=> { await expect(page.locator(".signature-box")).toHaveCount(1) expect(after.x).not.toBe(before.y); }) + +test("duplicates a signature element", async ({ page }) => { + await page.getByTitle("Duplicate").click(); + await expect(page.locator(".signature-box")).toHaveCount(2); +}); diff --git a/examples/basic/App.vue b/examples/basic/App.vue index 15df9bc..fc8efcd 100644 --- a/examples/basic/App.vue +++ b/examples/basic/App.vue @@ -41,7 +41,8 @@ SPDX-License-Identifier: AGPL-3.0-or-later /> -