eliot-portal
[eliot.git] / blueprints / common / eliot-ui / frontend-src / e2e / src / app.po.ts
diff --git a/blueprints/common/eliot-ui/frontend-src/e2e/src/app.po.ts b/blueprints/common/eliot-ui/frontend-src/e2e/src/app.po.ts
new file mode 100644 (file)
index 0000000..5776aa9
--- /dev/null
@@ -0,0 +1,11 @@
+import { browser, by, element } from 'protractor';
+
+export class AppPage {
+  navigateTo() {
+    return browser.get(browser.baseUrl) as Promise<any>;
+  }
+
+  getTitleText() {
+    return element(by.css('app-root h1')).getText() as Promise<string>;
+  }
+}