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)', ''))