1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-16 11:37:36 +02:00
ferret/e2e/tests/doc_inner_html_d.fql

10 lines
428 B
Plaintext
Raw Normal View History

2018-11-12 21:53:36 +02:00
LET url = @dynamic
LET doc = DOCUMENT(url, true)
LET selector = '#root > div > main > div'
WAIT_ELEMENT(doc, "#layout")
LET expected = '<div><h1>Welcome to Ferret E2E test page!</h1></div><div><p class="lead">It has several pages for testing different possibilities of the library</p></div>'
LET actual = INNER_HTML(doc, selector)
RETURN EXPECT(REGEXP_REPLACE(expected, '\s', ''), REGEXP_REPLACE(TRIM(actual), '(\n|\s)', ''))