1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-06 03:03:57 +02:00
ferret/e2e/tests/dynamic/element/inner_text/set.fql

13 lines
302 B
Plaintext
Raw Normal View History

2018-11-22 05:45:00 +02:00
LET url = @dynamic
LET doc = DOCUMENT(url, true)
LET el = ELEMENT(doc, ".jumbotron")
LET expected = `Foobar`
INNER_TEXT_SET(el, expected)
WAIT(100)
2018-11-22 05:45:00 +02:00
LET actual = INNER_TEXT(el)
LET r1 = '(\n|\s)'
LET r2 = '(\n|\s)'
RETURN EXPECT(REGEXP_REPLACE(expected, r1, ''), REGEXP_REPLACE(TRIM(actual), r2, ''))