mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-21 01:21:34 +02:00
12 lines
270 B
Plaintext
12 lines
270 B
Plaintext
|
LET url = @dynamic
|
||
|
LET doc = DOCUMENT(url)
|
||
|
|
||
|
LET el = ELEMENT(doc, "#root")
|
||
|
|
||
|
LET expectedP = TRUE
|
||
|
LET actualP = ELEMENT_EXISTS(el, '.jumbotron')
|
||
|
|
||
|
LET expectedN = FALSE
|
||
|
LET actualN = ELEMENT_EXISTS(el, '.foo-bar')
|
||
|
|
||
|
RETURN EXPECT(expectedP + expectedN, actualP + expectedN)
|