- Added waitUrl helper.

This commit is contained in:
Gunther Brunner
2014-08-27 16:34:47 +09:00
parent b1afa8076c
commit 5941030743
5 changed files with 50 additions and 7 deletions

View File

@@ -21,6 +21,19 @@ describe('Control Page', function () {
it('should control an usable device', function () {
deviceListPage.controlAvailableDevice()
browser.waitUrl(/control/)
//browser.debugger();
//console.log('after')
//browser.driver.wait(function () {
// return browser.driver.getCurrentUrl().then(function (url) {
// return /control/.test(url)
// })
//})
browser.getLocationAbsUrl().then(function (newUrl) {
expect(newUrl).toMatch(protractor.getInstance().baseUrl + 'control')
})