github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/element/attrs/remove_style.fql (about) 1 LET url = @lab.cdn.dynamic + "?redirect=/events" 2 LET doc = DOCUMENT(url, true) 3 LET pageSelector = "#page-events" 4 LET elemSelector = "#wait-no-style-content" 5 LET styleName = "color" 6 LET styleValue = "rgb(100, 100, 100)" 7 8 WAIT_ELEMENT(doc, pageSelector) 9 LET el = ELEMENT(doc, elemSelector) 10 11 LET prev = el.style.color 12 13 T::NOT::EQ(prev, styleValue) 14 15 STYLE_SET(el, styleName, styleValue) 16 17 LET curr = el.style.color 18 19 T::EQ(curr, styleValue) 20 21 ATTR_REMOVE(el, "style") 22 23 LET removed = el.style.color 24 25 T::EQ(prev, removed) 26 27 RETURN TRUE