forked from 99x/protractor-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsample.spec.ts
More file actions
21 lines (17 loc) · 701 Bytes
/
sample.spec.ts
File metadata and controls
21 lines (17 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import {browser, element, by, By} from 'protractor';
describe('Protractor-TypeScript Starter', () => {
beforeEach(() => {
browser.get('http://amasik.com/demo/angularjs/angular-app/');
});
it('Should navigate to the demo website',() => {
expect(browser.getTitle()).toEqual('AngularJS POC');
});
it('Should Login to the dashboard page', () => {
element(by.buttonText('Sign In')).click();
expect(browser.getLocationAbsUrl()).toContain('dashboard');
});
xit('Should logout from the application', () => {
element.all(by.className('dropdown-toggle')).get(1).click();
element(by.linkText('Logout')).click();
});
});