fix(test): actually test if page.waitFor accepts arguments (#1599)

This commit is contained in:
Joel Einbinder 2020-03-31 09:13:44 -07:00 committed by GitHub
parent a2e1d4c29d
commit 13a6c89dee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ module.exports.describe = function({testRunner, expect, product, playwright, FFO
expect(error.message).toContain('Unsupported target type');
});
it('should wait for predicate with arguments', async({page, server}) => {
await page.waitFor((arg1, arg2) => arg1 !== arg2, {}, 1, 2);
await page.waitFor(({arg1, arg2}) => arg1 + arg2 === 3, {}, { arg1: 1, arg2: 2});
});
});