mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-31 01:53:36 +02:00
10 lines
309 B
Plaintext
10 lines
309 B
Plaintext
LET url = @dynamic
|
|
LET doc = DOCUMENT(url, true)
|
|
LET selector = '#root > div > main > div h1'
|
|
|
|
WAIT_ELEMENT(doc, "#layout")
|
|
|
|
LET expected = 'Welcome to Ferret E2E test page!'
|
|
LET actual = INNER_TEXT(doc, selector)
|
|
|
|
RETURN EXPECT(REGEXP_REPLACE(expected, '\s', ''), REGEXP_REPLACE(TRIM(actual), '(\n|\s)', '')) |