-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3951 from nextcloud/feat/fill-and-convert
feat: Add parameter to allow converting files after filling out fields
- Loading branch information
Showing
10 changed files
with
265 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ default: | |
- WopiContext | ||
- DirectContext | ||
- FederationContext | ||
- ApiContext | ||
|
||
|
||
extensions: | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
Feature: API | ||
|
||
Background: | ||
Given user "user1" exists | ||
|
||
Scenario: Extract field values | ||
Given as user "user1" | ||
And User "user1" uploads file "./data/form.odt" to "/form.odt" | ||
Then User "user1" requests the form field data of "/form.odt" | ||
And the response contains the field "Name of the Organizer/Organization" | ||
And the response contains the field "Road closures - Length of road closures (in meters)" | ||
|
||
Scenario: Extract field values and fill in field | ||
Given as user "user1" | ||
And User "user1" uploads file "./data/form.odt" to "/form.odt" | ||
Then User "user1" requests the form field data of "/form.odt" | ||
And the response contains the field "Name of the Organizer/Organization" | ||
And the response contains the field "Road closures - Length of road closures (in meters)" | ||
Then User "user1" fills in fields of "/form.odt" with values as "odt" to "/filled.odt" | ||
| ContentControls.ByIndex.19 | 100 | | ||
Then User "user1" requests the form field data of "/filled.odt" | ||
And the response contains the field "Road closures - Length of road closures (in meters)" with "100" | ||
And the resulting file is a "application/vnd.oasis.opendocument.text" | ||
|
||
Scenario: Extract field values and fill in field as pdf | ||
Given as user "user1" | ||
And User "user1" uploads file "./data/form.odt" to "/form.odt" | ||
Then User "user1" requests the form field data of "/form.odt" | ||
And the response contains the field "Name of the Organizer/Organization" | ||
And the response contains the field "Road closures - Length of road closures (in meters)" | ||
Then User "user1" fills in fields of "/form.odt" with values as "pdf" to "/filled.pdf" | ||
| ContentControls.ByIndex.19 | 100 | | ||
And the resulting file is a "application/pdf" | ||
|
||
Scenario: Extract field values and fill in field as pdf | ||
Given as user "user1" | ||
And User "user1" uploads file "./data/form.odt" to "/form.odt" | ||
Then User "user1" requests the form field data of "/form.odt" | ||
And the response contains the field "Name of the Organizer/Organization" | ||
And the response contains the field "Road closures - Length of road closures (in meters)" | ||
Then User "user1" fills in fields of "/form.odt" with values as "pdf" | ||
| ContentControls.ByIndex.19 | 100 | | ||
And the resulting file is a "application/pdf" |
Oops, something went wrong.