Skip to content

feat(demo): add duplicate button so duplicating is testable - #107

Open
nva138 wants to merge 2 commits into
LibreSign:mainfrom
nva138:feat/demo-duplicate-button
Open

feat(demo): add duplicate button so duplicating is testable#107
nva138 wants to merge 2 commits into
LibreSign:mainfrom
nva138:feat/demo-duplicate-button

Conversation

@nva138

@nva138 nva138 commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Part of #82. I didn't want to leave the duplicate interaction unfinished, so I added the button myself, hope thats okay. Now the duplicate test passes too.

Signed-off-by: Maximilian Mayer <office@maximilianmayer.at>
Signed-off-by: Maximilian Mayer <office@maximilianmayer.at>
@nva138
nva138 requested a review from a team as a code owner September 11, 2026 11:00
Comment on lines +62 to +63
await page.getByTitle("Duplicate").click();
await expect(page.locator(".signature-box")).toHaveCount(2);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we also verify that the new element is actually a copy of the original one?

Checking only that there are two .signature-box elements would also pass if the duplicate action accidentally created a new default signature instead of copying the selected element. It would be useful to compare an observable property of both elements, such as their content/size, while still allowing the expected position offset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants