Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix(test): actually test if page.waitFor accepts arguments (#1599)
Joel Einbinder13a6c89deecc
diff --git a/test/waittask.spec.js b/test/waittask.spec.jsindex 83abdfd8f7..9244838e48 100644--- a/test/waittask.spec.js+++ b/test/waittask.spec.js@@ -74,7 +74,7 @@ module.exports.describe = function({testRunner, expect, product, playwright, FFOexpect(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});});});