1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-23 01:24:30 +02:00
ferret/e2e/tests/doc_inner_html.fql
2018-11-12 14:53:36 -05:00

7 lines
448 B
Plaintext

LET url = @static + '/overview.html'
LET doc = DOCUMENT(url)
LET expected = '<li class="toc-entry toc-h2"><a href="#containers">Containers</a></li><li class="toc-entry toc-h2"><a href="#responsive-breakpoints">Responsive breakpoints</a></li><li class="toc-entry toc-h2"><a href="#z-index">Z-index</a></li>'
LET actual = INNER_HTML(doc, '.section-nav')
RETURN EXPECT(REGEXP_REPLACE(expected, '\s', ''), REGEXP_REPLACE(TRIM(actual), '(\n|\s)', ''))