Website Summary Files Commits Branches @commit @diff @stats
path: root / e2e / src / app.po.ts
diff options
context:
space:
mode:
1 files changed, 11 insertions, 0 deletions
-rw-r--r--e2e/src/app.po.ts11
diff --git a/e2e/src/app.po.ts b/e2e/src/app.po.ts
new file mode 100644
index 0000000..c9c85ab
--- /dev/null
+++ b/e2e/src/app.po.ts
@@ -0,0 +1,11 @@
+import { browser, by, element } from 'protractor';
+
+export class AppPage {
+ async navigateTo(): Promise<unknown> {
+ return browser.get(browser.baseUrl);
+ }
+
+ async getTitleText(): Promise<string> {
+ return element(by.css('app-root .content span')).getText();
+ }
+}