feat(chromium): deprecate --chromium-user-agent property, add userAgent form field

This commit is contained in:
Julien Neuhart
2021-11-21 14:11:39 +01:00
parent 704dfc25e6
commit 4525cb38e4
4 changed files with 25 additions and 3 deletions

View File

@@ -250,6 +250,12 @@ func TestChromium_PDF(t *testing.T) {
denyList: regexp.MustCompile("file:///tests/*"),
expectErr: true,
},
{
URL: "file:///tests/test/testdata/chromium/html/sample4/index.html",
options: Options{
UserAgent: "foo",
},
},
{
URL: "file:///tests/test/testdata/chromium/html/sample4/index.html",
options: Options{