Files
wehub-resource-sync bf122cd71b
AI Engine CI / engine (push) Failing after 0s
Check generated models / generated-models (push) Failing after 1s
Enterprise E2E (Playwright) / pick (push) Failing after 8s
Enterprise E2E (Playwright) / playwright-e2e-enterprise (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 11:59:14 +08:00

30 lines
1.3 KiB
Gherkin

@proprietary @forms
Feature: Advanced Forms API Validation (JSON data parts)
@fill @positive
Scenario: Fill PDF form with empty JSON data part
Given I generate a PDF file as "file"
And the pdf contains 2 pages
And the pdf has form fields
And the request includes a JSON part "data" with content "{}"
When I send the API request to the endpoint "/api/v1/form/fill"
Then the response status code should be 200
And the response content type should be "application/pdf"
And the response file should have size greater than 0
And the response file should have extension ".pdf"
@fill @positive
Scenario: Fill and flatten PDF form with empty JSON data part
Given I generate a PDF file as "file"
And the pdf contains 2 pages
And the pdf has form fields
And the request data includes
| parameter | value |
| flatten | true |
And the request includes a JSON part "data" with content "{}"
When I send the API request to the endpoint "/api/v1/form/fill"
Then the response status code should be 200
And the response content type should be "application/pdf"
And the response file should have size greater than 0
And the response file should have extension ".pdf"