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

16 lines
408 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 = [
'Welcome to Ferret E2E test page!',
'It has several pages for testing different possibilities of the library'
]
LET actual = (
FOR str IN INNER_TEXT_ALL(doc, selector)
RETURN REGEXP_REPLACE(TRIM(str), '\n', '')
)
RETURN EXPECT(expected, actual)