Skip to content

Commit

Permalink
Automated tests fixes
Browse files Browse the repository at this point in the history
Navbar test fix

Resolves brave#7950

Auditors: @bsclifton

Test Plan:
- `npm run test -- --grep="navigationBar tests"`
  • Loading branch information
NejcZdovc committed Apr 3, 2017
1 parent 9bc4c7e commit 2d2956b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/navbar-components/navigationBarTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -865,11 +865,10 @@ describe('navigationBar tests', function () {

it('sets location to new URL', function * () {
const page2 = this.page2
yield this.app.client.keys(this.page2)
yield this.app.client.keys(Brave.keys.ENTER)
yield this.app.client.keys([this.page2, Brave.keys.ENTER])
yield this.app.client
.waitUntil(function () {
return this.windowByUrl(Brave.browserWindowUrl).getValue(urlInput).then((val) => {
return this.getValue(urlInput).then((val) => {
return val === page2
})
})
Expand Down Expand Up @@ -1247,6 +1246,7 @@ describe('navigationBar tests', function () {
.waitForBookmarkDetail(page2Url, 'Page 2')
.waitForEnabled(doneButton)
.click(doneButton)
.activateURLMode()
.waitForExist(navigatorBookmarked)
.waitForElementCount(bookmarksToolbar, 0)
})
Expand Down

0 comments on commit 2d2956b

Please sign in to comment.