Skip to content

Commit

Permalink
Merge pull request #6976 from RocketChat/fix-tests
Browse files Browse the repository at this point in the history
fix the crashing tests
  • Loading branch information
engelgabriel committed May 15, 2017
2 parents 019f030 + 935e4d8 commit ec0683d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/pageobjects/side-nav.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class SideNav extends Page {
browser.click(`.rooms-list > .wrapper > ul [title="${ channelName }"]`);
this.messageInput.waitForExist(5000);
browser.waitUntil(function() {
browser.waitForVisible('.room-title', 5000);
return browser.getText('.room-title') === channelName;
}, 5000);
}
Expand All @@ -54,6 +55,7 @@ class SideNav extends Page {
browser.waitForVisible(`.room-title=${ channelName }`, 10000);
browser.click(`.room-title=${ channelName }`);
browser.waitUntil(function() {
browser.waitForVisible('.room-title', 5000);
return browser.getText('.room-title') === channelName;
}, 5000);
}
Expand Down

0 comments on commit ec0683d

Please sign in to comment.