Unify creditCosts.ts files (#5952)

Co-authored-by: Anthony Stirling <77850077+Frooodle@users.noreply.github.com>
This commit is contained in:
James Brunton
2026-03-16 22:05:02 +00:00
committed by GitHub
parent dbff05814f
commit 7f9bbebe5b
8 changed files with 48 additions and 140 deletions

View File

@@ -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 |

View File

@@ -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