mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-10-14 08:13:18 +01:00
test(chromium): wait for network idle in resource status code scenarios
This commit is contained in:
@@ -609,6 +609,7 @@ Feature: /forms/chromium/convert/html
|
||||
When I make a "POST" request to Gotenberg at the "/forms/chromium/convert/html" endpoint with the following form data and header(s):
|
||||
| files | testdata/feature-rich-html/index.html | file |
|
||||
| failOnResourceHttpStatusCodes | [499,599] | field |
|
||||
| skipNetworkIdleEvent | false | field |
|
||||
Then the response status code should be 409
|
||||
Then the response header "Content-Type" should be "text/plain; charset=UTF-8"
|
||||
Then the response body should match string:
|
||||
|
||||
@@ -400,6 +400,7 @@ Feature: /forms/chromium/convert/markdown
|
||||
| files | testdata/feature-rich-markdown/index.html | file |
|
||||
| files | testdata/feature-rich-markdown/table.md | file |
|
||||
| failOnResourceHttpStatusCodes | [499,599] | field |
|
||||
| skipNetworkIdleEvent | false | field |
|
||||
Then the response status code should be 409
|
||||
Then the response header "Content-Type" should be "text/plain; charset=UTF-8"
|
||||
Then the response body should match string:
|
||||
|
||||
@@ -649,6 +649,7 @@ Feature: /forms/chromium/convert/url
|
||||
When I make a "POST" request to Gotenberg at the "/forms/chromium/convert/url" endpoint with the following form data and header(s):
|
||||
| url | http://host.docker.internal:%d/html/testdata/feature-rich-html-remote/index.html | field |
|
||||
| failOnResourceHttpStatusCodes | [499,599] | field |
|
||||
| skipNetworkIdleEvent | false | field |
|
||||
Then the response status code should be 409
|
||||
Then the response header "Content-Type" should be "text/plain; charset=UTF-8"
|
||||
Then the response body should contain string:
|
||||
|
||||
Reference in New Issue
Block a user