github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/page/headers/override_default.fqlx (about) 1 LET url = @lab.cdn.static + "/api/ts" 2 LET page = DOCUMENT(url, { 3 driver: "cdp_headers", 4 headers: { 5 "single_header": "foo" 6 } 7 }) 8 9 LET el = ELEMENT(page, "#headers") 10 LET actual = JSON_PARSE(el.innerText) 11 12 LET expected = { 13 "Single_header": ["foo"], 14 "Multi_set_header":["multi_set_header_value"], 15 } 16 17 RETURN T::EQ({ 18 "Single_header": actual["Single_header"], 19 "Multi_set_header": actual["Multi_set_header"], 20 }, expected)