aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/e2e/src/po/app.po.ts
blob: 3ed65399ebc6524251f6703dace128b52d49e387 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                                         

                             
                                                

   
import { browser, by, element } from 'protractor'

export class AppPage {

  async closeWelcomeModal () {
    const firstHandle = await browser.getWindowHandle()

    if (await element(by.css('.configure-instance-button')).isPresent() === false) return

    await element(by.css('.configure-instance-button')).click()

    await browser.sleep(5000)

    await browser.switchTo().window(firstHandle)
  }
}