github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/doc/inner_html/get.fql (about) 1 LET url = @lab.cdn.dynamic 2 LET doc = DOCUMENT(url, { driver: "cdp" }) 3 4 LET expected = `<head> 5 <meta charset="utf-8"> 6 <meta http-equiv="x-ua-compatible" content="ie=edge"> 7 <title>Ferret E2E SPA</title> 8 <meta name="description" content=""> 9 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> 10 <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> 11 <link rel="stylesheet" href="index.css"> 12 </head> 13 <body class="text-center"> 14 <div id="root"><div id="layout"><nav class="navbar navbar-expand-md navbar-dark bg-dark mb-4" id="navbar"><a class="navbar-brand active" aria-current="page" href="#/">Ferret</a><button class="navbar-toggler" type="button"><span class="navbar-toggler-icon"></span></button><div class="collapse navbar-collapse"><ul class="navbar-nav mr-auto"><li class="nav-item"><a class="nav-link nav-link-forms" href="#/forms">Forms</a></li><li class="nav-item"><a class="nav-link nav-link-navigation" href="#/navigation">Navigation</a></li><li class="nav-item"><a class="nav-link nav-link-events" href="#/events">Events</a></li><li class="nav-item"><a class="nav-link nav-link-iframe" href="#/iframe">iFrame</a></li></ul></div></nav><main class="container"><div class="jumbotron" data-type="page" id="index"><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></div></main></div></div> 15 <script src="https://unpkg.com/react@16.8.6/umd/react.production.min.js"></script> 16 <script src="https://unpkg.com/react-dom@16.8.6/umd/react-dom.production.min.js"></script> 17 <script src="https://unpkg.com/history@4.9.0/umd/history.min.js"></script> 18 <script src="https://unpkg.com/react-router@4.3.1/umd/react-router.js"></script> 19 <script src="https://unpkg.com/react-router-dom@4.3.1/umd/react-router-dom.js"></script> 20 <script src="https://unpkg.com/react-bootstrap@next/dist/react-bootstrap.min.js" crossorigin=""> </script> 21 <script src="index.js" type="module"></script> 22 </body>` 23 LET actual = INNER_HTML(doc) 24 25 LET r1 = '(\s|\")' 26 LET r2 = '(\n|\s|\")' 27 28 RETURN T::EQ(REGEX_REPLACE(TRIM(actual), r2, ''), REGEX_REPLACE(expected, r1, ''))