/* eslint-env jest */
/* globals jasmine */

import driverUtils from '../utils/driver-utils'
import { getDriver, getAppBaseUrl } from '../utils/driver-mgr'

let driver
afterEach(() => {
  return driver.quit()
})

jasmine.DEFAULT_TIMEOUT_INTERVAL = 35e3

// Sanity checking that the app deployed and loads correctly
describe('Basic integration tests', () => {
  it('should load the auth page', async () => {
    driver = getDriver('Basic integration tests: should load auth page')
    await driverUtils(driver).navigateTo(getAppBaseUrl())
    await driverUtils(driver).waitForElementExistsByTestId('authentication-page')
  }, 30e3)
})

@@ -247,16 +247,105 @@
 = 35e3%0A%0A
+const getAbsoluteUrl = (relativeUrl) =%3E %7B%0A  return %60$%7BgetAppBaseUrl()%7D$%7BrelativeUrl%7D%60%0A%7D%0A%0A
 // Sanit
@@ -607,26 +607,37 @@
 eTo(getA
-ppBaseUrl(
+bsoluteUrl('/newtab/'
 ))%0A    a

Fix test URL