🚑 hotfix compatibility with new UI

Resolves #56

Issues:

* not backwards compatible with old UI
* in a sound way, E2E tests can only be developed closely connected
  to the Kalamar development (it starts with needed elements having no
  IDs...)

Change-Id: I9bdeeb6f2b2f108031628420a1e667f72c2e19b3
diff --git a/test/korap-ui.js b/test/korap-ui.js
index a71ebf4..68a8778 100644
--- a/test/korap-ui.js
+++ b/test/korap-ui.js
@@ -36,10 +36,12 @@
     before(async () => {
         browser = await puppeteer.launch({
             headless: "new",
+            // headless: false,
+            // args: [`--window-size=1920,1080`],
         })
         page = await browser.newPage()
         await page.setViewport({
-            width: 1280,
+            width: 1980,
             height: 768,
             deviceScaleFactor: 1,
           });
@@ -63,7 +65,8 @@
 
     it('KorAP UI is up and running',
         (async () => {
-            await await page.goto(KORAP_URL);
+            page.goto(KORAP_URL);
+            await page.waitForNavigation({ waitUntil: 'networkidle2' });
             const query_field = await page.$("#q-field")
             assert.isNotNull(query_field, "#q-field not found. Kalamar not running?");
         }))