test(chromium): wait for network idle in resource status code scenarios

This commit is contained in:
Julien Neuhart
2026-10-13 18:31:27 +02:00
parent dd76e79443
commit 887727b40e
3 changed files with 3 additions and 0 deletions

View File

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

View File

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

View File

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