github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/element/wait/no_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  
     8  ATTR_SET(el, "style", "color: black")
     9  WAIT_STYLE(el, "color", "rgb(0, 0, 0)")
    10  
    11  LET prev = el.style
    12  
    13  ATTR_SET(el, "style", "color: red")
    14  WAIT_NO_STYLE(el, "color", "black")
    15  
    16  LET curr = el.style
    17  
    18  T::EQ(prev.color, "rgb(0, 0, 0)")
    19  T::EQ(curr.color, "rgb(255, 0, 0)")
    20  
    21  RETURN NONE