aboutsummaryrefslogtreecommitdiff
path: root/ui/e2e/src/app.po.ts
blob: b68475e0fc0ce9d312147f19f0867a7aed41bcbc (plain)
1
2
3
4
5
6
7
8
9
10
11
import { browser, by, element } from 'protractor';

export class AppPage {
  navigateTo(): Promise<unknown> {
    return browser.get(browser.baseUrl) as Promise<unknown>;
  }

  getTitleText(): Promise<string> {
    return element(by.css('app-root .content span')).getText() as Promise<string>;
  }
}
bgstack15