Add comment

This commit is contained in:
Yury Semikhatsky 2024-04-16 15:32:20 -07:00
parent cdc2e34c0e
commit aab520c539

View file

@ -285,6 +285,8 @@ class ExpectMetaInfoProxyHandler implements ProxyHandler<any> {
try {
const callback = () => matcher.call(target, ...args);
// toPass and poll matchers can contain other steps, expects and API calls,
// so they behave like a retriable step.
const result = (matcherName === 'toPass' || this._info.isPoll) ?
zones.run('stepZone', step, callback) :
zones.run<ExpectZone, any>('expectZone', { title, wallTime }, callback);