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

21 lines
437 B
Plaintext
Raw Normal View History

LET url = @lab.cdn.dynamic + "?redirect=/events"
LET doc = DOCUMENT(url, true)
WAIT_ELEMENT(doc, "#page-events")
LET el = ELEMENT(doc, "#wait-class-content")
ATTR_SET(el, "style", "color: black")
WAIT_STYLE(el, "color", "rgb(0, 0, 0)")
LET prev = el.style
ATTR_SET(el, "style", "color: red")
WAIT_NO_STYLE(el, "color", "black")
LET curr = el.style
T::EQ(prev.color, "rgb(0, 0, 0)")
T::EQ(curr.color, "rgb(255, 0, 0)")
RETURN NONE