TwoToc code
[YouAndWeb_TwoToc] / e2e / components / navbar / navbar.po.js
1 /**
2  * This file uses the Page Object pattern to define the main page for tests
3  * https://docs.google.com/presentation/d/1B6manhG0zEXkC-H-tPo2vwU06JhL8w9-XCF9oehXzAQ
4  */
5
6 'use strict';
7
8 var NavbarComponent = function() {
9   this.navbar = element(by.css('.navbar'));
10   this.navbarHeader = this.navbar.element(by.css('.navbar-header'));
11   this.navbarNav = this.navbar.element(by.css('#navbar-main .nav.navbar-nav:not(.navbar-right)'));
12   this.navbarAccount = this.navbar.element(by.css('#navbar-main .nav.navbar-nav.navbar-right'));
13   this.navbarAccountGreeting = this.navbarAccount.element(by.binding('getCurrentUser().name'));
14 };
15
16 module.exports = new NavbarComponent();