1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-16 11:37:36 +02:00
ferret/e2e/tests/dynamic/page/cookies/load_with.fqlx
Tim Voronov ff8c15eb67
Feature/#577 spa routing (#584)
* Added support of getting URL dynamically
2021-02-16 09:49:26 -05:00

14 lines
323 B
Plaintext

LET url = @lab.cdn.dynamic
LET doc = DOCUMENT(url, {
driver: "cdp",
cookies: [{
name: "x-e2e",
value: "test"
}]
})
LET cookiesPath = LENGTH(doc.cookies) > 0 ? "ok" : "false"
LET cookie = COOKIE_GET(doc, "x-e2e")
LET expected = "ok test"
RETURN T::EQ(cookiesPath + " " + cookie.value, expected)