github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/doc/wait/style_by_css.fql (about)

     1  LET url = @lab.cdn.dynamic + "?redirect=/events"
     2  LET doc = DOCUMENT(url, true)
     3  LET selector = "#wait-class-btn"
     4  
     5  WAIT_ELEMENT(doc, "#page-events")
     6  
     7  LET el = ELEMENT(doc, selector)
     8  LET prev = el.style
     9  
    10  ATTR_SET(el, "style", "width: 200px")
    11  WAIT_STYLE(doc, selector, "width", "200px")
    12  
    13  LET curr = el.style
    14  
    15  T::NOT::EQ(prev.width, "200px")
    16  T::EQ(curr.width, "200px")
    17  
    18  RETURN NONE