pdf_signature/test/features/support_multiple_signature_...

31 lines
1.5 KiB
Gherkin

Feature: support multiple signature assets
Scenario: Place signature placements on different pages with different assets
Given a multi-page document is open
When the user places a signature placement from asset <first_asset> on page <first_page>
And the user places a signature placement from asset <second_asset> on page <second_page>
Then both signature placements are shown on their respective pages
Examples:
# Same page, same asset
# Same page, different assets
# Different pages, same asset
# Different pages, different assets
| first_asset | first_page | second_asset | second_page |
| 'alice.png' | 1 | 'alice.png' | 1 |
| 'alice.png' | 1 | 'bob.png' | 1 |
| 'alice.png' | 1 | 'bob.png' | 3 |
| 'bob.png' | 2 | 'alice.png' | 5 |
Scenario: Reuse the same asset for more than one signature placement
Given a signature asset is loaded or drawn
When the user places it in multiple locations in the document
Then identical signature instances appear in each location
And adjusting one instance does not affect the others
Scenario: Save/export uses the assigned asset for each signature placement
Given a document is open and contains multiple placed signature placements across pages
When the user saves/exports the document
Then all placed signature placements appear on their corresponding pages in the output
And other page content remains unaltered