1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-14 11:23:02 +02:00
ferret/e2e/tests/el_wait_no_style_d.fql
Tim Voronov e17ce5a3d5
Feature/#250 wait style 2 (#260)
* Added WAIT_STYLE and WAIT_NO_STYLE

* Added WAIT_NO_STYLE and WAIT_NO_STYLE_ALL functions
2019-03-14 22:10:15 -04:00

18 lines
424 B
Plaintext

LET url = @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", "black")
LET prev = el.style
ATTR_SET(el, "style", "color: red")
WAIT_NO_STYLE(el, "color", "black")
LET curr = el.style
RETURN prev.color == "black" && curr.color == "red" ? "" : "style should be changed"