Skip to content

Commit

Permalink
- waitForQuery now uses waitForEvent function
Browse files Browse the repository at this point in the history
🪿
  • Loading branch information
maZahaca committed Mar 16, 2019
1 parent bb7204d commit bd0a71e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/actions/ActionWaitForQuery.js
Expand Up @@ -5,10 +5,16 @@
*/

const Action = require('./Action');
const { waitForEvent } = require('../tools/wait');

class ActionWaitForQuery extends Action {
async perform() {
return this._env.waitForQuery(this._options.uri, this._options.timeout);
return waitForEvent(
this._env,
{ type: 'request', urlPattern: this._options.uri },
this._options.breaker,
this._options.timeout
);
}
}

Expand Down

0 comments on commit bd0a71e

Please sign in to comment.