fix(chromium): better native errors handling

This commit is contained in:
Julien Neuhart
2025-11-15 15:10:09 +01:00
parent 4a788ce9d8
commit b2c3187690
6 changed files with 71 additions and 7 deletions

View File

@@ -524,7 +524,17 @@ Feature: /forms/chromium/convert/markdown
Then the response header "Content-Type" should be "text/plain; charset=UTF-8"
Then the response body should match string:
"""
Chromium does not handle the page ranges 'foo' (nativePageRanges)
Chromium does not handle the page ranges 'foo' (nativePageRanges) syntax
"""
When I make a "POST" request to Gotenberg at the "/forms/chromium/convert/markdown" endpoint with the following form data and header(s):
| files | testdata/page-1-markdown/index.html | file |
| files | testdata/page-1-markdown/page_1.md | file |
| nativePageRanges | 2-3 | field |
Then the response status code should be 400
Then the response header "Content-Type" should be "text/plain; charset=UTF-8"
Then the response body should match string:
"""
The page ranges '2-3' (nativePageRanges) exceeds the page count
"""
When I make a "POST" request to Gotenberg at the "/forms/chromium/convert/markdown" endpoint with the following form data and header(s):
| files | testdata/page-1-markdown/index.html | file |