mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
10 lines
428 B
Plaintext
10 lines
428 B
Plaintext
|
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)', ''))
|