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