commit 2b30dfce67d3df294650f576659f573a27cce023
parent 70fabf376de0fcbeb649c2822069753e4cf82413
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 19 May 2018 17:50:53 +0200
Make e2e tests succeed
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/e2e/app.e2e-spec.ts b/e2e/app.e2e-spec.ts
@@ -7,8 +7,8 @@ describe('social-networks-news-web2 App', () => {
page = new AppPage();
});
- it('should display welcome message', () => {
+ it('should have a menu', () => {
page.navigateTo();
- expect(page.getParagraphText()).toEqual('Welcome to app!');
+ expect(page.getMenu()).toBeDefined();
});
});
diff --git a/e2e/app.po.ts b/e2e/app.po.ts
@@ -5,7 +5,7 @@ export class AppPage {
return browser.get('/');
}
- getParagraphText() {
- return element(by.css('app-root h1')).getText();
+ getMenu() {
+ return element(by.css('app-navbar')).getText();
}
}