github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/page/headers/default.fqlx (about)

     1  LET url = @lab.cdn.static + "/api/ts"
     2  LET page = DOCUMENT(url, {
     3      driver: "cdp_headers"
     4  })
     5  
     6  LET el = ELEMENT(page, "#headers")
     7  LET actual = JSON_PARSE(el.innerText)
     8  
     9  LET expected = {
    10      "Single_header": ["single_header_value"],
    11      "Multi_set_header":["multi_set_header_value"],
    12  }
    13  
    14  RETURN T::EQ({
    15      "Single_header": actual["Single_header"],
    16      "Multi_set_header": actual["Multi_set_header"],
    17  }, expected)