Skip to content

Commit

Permalink
[functional tests] waitUntilUrlFound -> waitUntilUrlIncludes
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed Apr 10, 2017
1 parent f0bf2c7 commit 09616e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/support/page_objects/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default class Common {
}
}

waitUntilUrlFound(path) {
waitUntilUrlIncludes(path) {
return this.tryForTime(defaultFindTimeout, async () => {
const url = await this.remote.getCurrentUrl();
if (!url.includes(path)) throw new Error('Url not found');
Expand Down
2 changes: 1 addition & 1 deletion test/support/page_objects/discover_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export default class DiscoverPage {
await PageObjects.common.clickTestSubject('showFilterActions');
await PageObjects.common.clickTestSubject('removeAllFilters');
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.common.waitUntilUrlFound('filters:!()');
await PageObjects.common.waitUntilUrlIncludes('filters:!()');
}


Expand Down

0 comments on commit 09616e7

Please sign in to comment.