mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
15 lines
377 B
Plaintext
15 lines
377 B
Plaintext
|
LET url = @dynamic + "?redirect=/events"
|
||
|
LET doc = DOCUMENT(url, true)
|
||
|
LET selector = "#wait-class-btn"
|
||
|
|
||
|
WAIT_ELEMENT(doc, "#page-events")
|
||
|
|
||
|
LET el = ELEMENT(doc, selector)
|
||
|
LET prev = el.style
|
||
|
|
||
|
ATTR_SET(el, "style", "width: 100%")
|
||
|
WAIT_STYLE(doc, selector, "width", "100%")
|
||
|
|
||
|
LET curr = el.style
|
||
|
|
||
|
RETURN prev.width == NONE && curr.width == "100%" ? "" : "style should be updated"
|