Skip to content

Commit 13a6c89

Browse files
fix(test): actually test if page.waitFor accepts arguments (#1599)
1 parent a2e1d4c commit 13a6c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/waittask.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ module.exports.describe = function({testRunner, expect, product, playwright, FFO
7474
expect(error.message).toContain('Unsupported target type');
7575
});
7676
it('should wait for predicate with arguments', async({page, server}) => {
77-
await page.waitFor((arg1, arg2) => arg1 !== arg2, {}, 1, 2);
77+
await page.waitFor(({arg1, arg2}) => arg1 + arg2 === 3, {}, { arg1: 1, arg2: 2});
7878
});
7979
});
8080

0 commit comments

Comments
 (0)