mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-14 11:23:02 +02:00
ff8c15eb67
* Added support of getting URL dynamically
20 lines
448 B
Plaintext
20 lines
448 B
Plaintext
LET url = @lab.cdn.static + "/api/ts"
|
|
LET page = DOCUMENT(url, {
|
|
driver: "cdp_headers",
|
|
headers: {
|
|
"single_header": "foo"
|
|
}
|
|
})
|
|
|
|
LET el = ELEMENT(page, "#headers")
|
|
LET actual = JSON_PARSE(el.innerText)
|
|
|
|
LET expected = {
|
|
"Single_header": ["foo"],
|
|
"Multi_set_header":["multi_set_header_value"],
|
|
}
|
|
|
|
RETURN T::EQ({
|
|
"Single_header": actual["Single_header"],
|
|
"Multi_set_header": actual["Multi_set_header"],
|
|
}, expected) |