github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/element/wait/style.fql (about) 1 LET url = @lab.cdn.dynamic + "?redirect=/events" 2 LET doc = DOCUMENT(url, true) 3 4 WAIT_ELEMENT(doc, "#page-events") 5 6 LET el = ELEMENT(doc, "#wait-class-content") 7 LET original = el.style.color 8 9 ATTR_SET(el, "style", "color: black") 10 WAIT_STYLE(el, "color", "rgb(0, 0, 0)") 11 12 LET prev = el.style 13 14 ATTR_REMOVE(el, "style") 15 WAIT_STYLE(el, "color", original) 16 17 LET curr = el.style 18 19 T::EQ(prev.color, "rgb(0, 0, 0)") 20 T::EQ(curr.color, original, "style should be returned to original") 21 22 RETURN NONE