mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-03-28 02:31:17 +01:00
Unify creditCosts.ts files (#5952)
Co-authored-by: Anthony Stirling <77850077+Frooodle@users.noreply.github.com>
This commit is contained in:
@@ -70,21 +70,21 @@ Feature: API Validation
|
||||
| 1 | 10 | 2 | 10 |
|
||||
|
||||
|
||||
@extract-images
|
||||
Scenario Outline: Extract Image Scans duplicates
|
||||
Given I use an example file at "exampleFiles/images.pdf" as parameter "fileInput"
|
||||
And the request data includes
|
||||
| parameter | value |
|
||||
| format | <format> |
|
||||
When I send the API request to the endpoint "/api/v1/misc/extract-images"
|
||||
Then the response content type should be "application/octet-stream"
|
||||
And the response file should have extension ".zip"
|
||||
And the response ZIP should contain 2 files
|
||||
And the response file should have size greater than 0
|
||||
And the response status code should be 200
|
||||
|
||||
Examples:
|
||||
| format |
|
||||
| png |
|
||||
| gif |
|
||||
| jpeg |
|
||||
# @extract-images
|
||||
# Scenario Outline: Extract Image Scans duplicates
|
||||
# Given I use an example file at "exampleFiles/images.pdf" as parameter "fileInput"
|
||||
# And the request data includes
|
||||
# | parameter | value |
|
||||
# | format | <format> |
|
||||
# When I send the API request to the endpoint "/api/v1/misc/extract-images"
|
||||
# Then the response content type should be "application/octet-stream"
|
||||
# And the response file should have extension ".zip"
|
||||
# And the response ZIP should contain 2 files
|
||||
# And the response file should have size greater than 0
|
||||
# And the response status code should be 200
|
||||
#
|
||||
# Examples:
|
||||
# | format |
|
||||
# | png |
|
||||
# | gif |
|
||||
# | jpeg |
|
||||
|
||||
@@ -231,21 +231,21 @@ Feature: General PDF Operations API Validation
|
||||
And the response file should have size greater than 200
|
||||
|
||||
|
||||
@remove-image-pdf @positive
|
||||
Scenario: remove-image-pdf strips images from a PDF containing images
|
||||
Given I generate a PDF file as "fileInput"
|
||||
And the pdf contains 3 images of size 100x100 on 2 pages
|
||||
When I send the API request to the endpoint "/api/v1/general/remove-image-pdf"
|
||||
Then the response content type should be "application/pdf"
|
||||
And the response status code should be 200
|
||||
And the response file should have size greater than 0
|
||||
|
||||
|
||||
@remove-image-pdf @positive
|
||||
Scenario: remove-image-pdf on a plain text PDF returns a PDF
|
||||
Given I generate a PDF file as "fileInput"
|
||||
And the pdf contains 3 pages with random text
|
||||
When I send the API request to the endpoint "/api/v1/general/remove-image-pdf"
|
||||
Then the response content type should be "application/pdf"
|
||||
And the response status code should be 200
|
||||
And the response file should have size greater than 0
|
||||
# @remove-image-pdf @positive
|
||||
# Scenario: remove-image-pdf strips images from a PDF containing images
|
||||
# Given I generate a PDF file as "fileInput"
|
||||
# And the pdf contains 3 images of size 100x100 on 2 pages
|
||||
# When I send the API request to the endpoint "/api/v1/general/remove-image-pdf"
|
||||
# Then the response content type should be "application/pdf"
|
||||
# And the response status code should be 200
|
||||
# And the response file should have size greater than 0
|
||||
#
|
||||
#
|
||||
# @remove-image-pdf @positive
|
||||
# Scenario: remove-image-pdf on a plain text PDF returns a PDF
|
||||
# Given I generate a PDF file as "fileInput"
|
||||
# And the pdf contains 3 pages with random text
|
||||
# When I send the API request to the endpoint "/api/v1/general/remove-image-pdf"
|
||||
# Then the response content type should be "application/pdf"
|
||||
# And the response status code should be 200
|
||||
# And the response file should have size greater than 0
|
||||
|
||||
Reference in New Issue
Block a user