mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
9b762d32ee
* Added default headers and cookies * wip * Added tests * Added default headers and cookies to HTTP driver * Removed unused struct prop
17 lines
404 B
Plaintext
17 lines
404 B
Plaintext
LET url = @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 EXPECT(expected, {
|
|
"Single_header": actual["Single_header"],
|
|
"Multi_set_header": actual["Multi_set_header"],
|
|
}) |