Provide browser DSL with location() to expect the iframe URL parts. Also move navigateTo() under the browser DSL.

This commit is contained in:
Elliott Sprehn
2010-10-29 16:02:57 -07:00
parent 2d61040fb0
commit 6bb2cd6ee2
5 changed files with 165 additions and 48 deletions

View File

@@ -1,7 +1,7 @@
describe('personal log', function() {
beforeEach(function() {
navigateTo('../personalLog.html');
browser().navigateTo('../personalLog.html');
});
@@ -64,8 +64,8 @@ describe('personal log', function() {
element('form input[type="submit"]').click();
expect(repeater('ul li').count()).toEqual(1);
navigateTo('about:blank');
navigateTo('../personalLog.html');
browser().navigateTo('about:blank');
browser().navigateTo('../personalLog.html');
expect(repeater('ul li').column('log.msg')).toEqual('my persistent message');
expect(repeater('ul li').count()).toEqual(1);