mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-21 01:21:34 +02:00
17 lines
394 B
Plaintext
17 lines
394 B
Plaintext
|
LET url = @dynamic + "?redirect=/events"
|
||
|
LET doc = DOCUMENT(url, true)
|
||
|
LET pageSelector = "#page-events"
|
||
|
LET elemSelector = "#wait-no-style-content"
|
||
|
|
||
|
WAIT_ELEMENT(doc, pageSelector)
|
||
|
LET el = ELEMENT(doc, elemSelector)
|
||
|
|
||
|
LET prev = el.style
|
||
|
|
||
|
STYLE_REMOVE(el, "display")
|
||
|
|
||
|
WAIT(1000)
|
||
|
|
||
|
LET curr = el.style
|
||
|
|
||
|
RETURN prev.display == "block" && curr.display == NONE ? "" : "expected style to be removed"
|