1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-16 11:37:36 +02:00
ferret/e2e/tests/dynamic/doc/cookies/set.fql

14 lines
229 B
Plaintext
Raw Normal View History

LET url = @dynamic
LET doc = DOCUMENT(@dynamic, {
driver: "cdp"
})
COOKIE_SET(doc, {
name: "x-e2e",
value: "test"
})
LET cookie = COOKIE_GET(doc, "x-e2e")
LET expected = "test"
RETURN EXPECT(expected, cookie.value)