Skip to content
This repository has been archived by the owner on Dec 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #21 from liujoey/master
Browse files Browse the repository at this point in the history
fix e2e test code
  • Loading branch information
vesparny committed Jan 19, 2015
2 parents e727742 + 6b1e02c commit c0480ec
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions client/test/e2e/01.home.scenario.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
(function() {
var utils = require('../utils');
describe('app', function() {
var ptor;
beforeEach(function() {
ptor = protractor.getInstance();
console.info('\nrunning:', jasmine.getEnv().currentSpec.description);
});

Expand All @@ -17,13 +15,13 @@
});

it('should load the homepage', function() {
ptor.get('/');
expect(ptor.isElementPresent(by.css('body'))).toBe(true);
browser.get('/');
expect(browser.isElementPresent(by.css('body'))).toBe(true);
});

it('should navigate to the docs page when clicking', function() {
element(by.css('a[ui-sref="root.getting-started"]')).click();
expect(ptor.getCurrentUrl()).toMatch(/\/getting-started/);
expect(browser.getCurrentUrl()).toMatch(/\/getting-started/);
});

});
Expand Down

0 comments on commit c0480ec

Please sign in to comment.