Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 02a3b61

Browse files
committed
tests(getLocationAbsUrl): add tests for browser.getLocationAbsUrl()
1 parent 76c094a commit 02a3b61

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: spec/basic/lib_spec.js

+12
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,16 @@ describe('protractor library', function() {
6666
expect(element(by.menuItem('repeater')).isPresent());
6767
expect(element(by.menuItem('repeater')).getText()).toEqual('repeater');
6868
});
69+
70+
describe('helper functions', function() {
71+
it('should get the absolute URL', function() {
72+
browser.get('index.html');
73+
expect(browser.getLocationAbsUrl()).
74+
toEqual('http://localhost:8000/index.html#/form');
75+
76+
element(by.linkText('repeater')).click();
77+
expect(browser.getLocationAbsUrl()).
78+
toEqual('http://localhost:8000/index.html#/repeater');
79+
});
80+
})
6981
});

0 commit comments

Comments
 (0)