1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-06 03:03:57 +02:00
ferret/e2e/tests/dynamic/page/headers/default.fqlx
Tim Voronov ff8c15eb67
Feature/#577 spa routing (#584)
* Added support of getting URL dynamically
2021-02-16 09:49:26 -05:00

17 lines
411 B
Plaintext

LET url = @lab.cdn.static + "/api/ts"
LET page = DOCUMENT(url, {
driver: "cdp_headers"
})
LET el = ELEMENT(page, "#headers")
LET actual = JSON_PARSE(el.innerText)
LET expected = {
"Single_header": ["single_header_value"],
"Multi_set_header":["multi_set_header_value"],
}
RETURN T::EQ({
"Single_header": actual["Single_header"],
"Multi_set_header": actual["Multi_set_header"],
}, expected)