From 9c9c0d2917d80327aa6d2072f0bb4dcd9815c627 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 25 Feb 2025 17:52:29 +0100 Subject: [PATCH 1/2] Relax checks for `wait-for-property` commands --- src/commands/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/utils.js b/src/commands/utils.js index f7fcf44b..7b07ffb5 100644 --- a/src/commands/utils.js +++ b/src/commands/utils.js @@ -130,13 +130,13 @@ ${varValue} + '\` (for NEAR check)'); if (checks.length === 0) { if (assertFalse) { checks.push(`\ -if (${storedVar} === ${varValue}) { +if (${storedVar} == ${varValue}) { ${pushTo}.push("assert didn't fail for ${kind} \`" + ${varKey} + "\` (\`" + ${storedVar} + \ "\`)"); }`); } else { checks.push(`\ -if (${storedVar} !== ${varValue}) { +if (${storedVar} != ${varValue}) { ${pushTo}.push("expected \`" + ${varValue} + "\` for ${kind} \`" + ${varKey} + "\`, found \`" \ + ${storedVar} + "\`"); }`); From f86048c9d2e0b798847a65c224ec1141028a8e58 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 25 Feb 2025 17:52:40 +0100 Subject: [PATCH 2/2] Update tests --- tests/api-output/parseAssertAttribute/basic-1.toml | 2 +- tests/api-output/parseAssertAttribute/basic-2.toml | 2 +- tests/api-output/parseAssertAttribute/css-1.toml | 2 +- tests/api-output/parseAssertAttribute/css-all.toml | 2 +- tests/api-output/parseAssertAttribute/css-empty.toml | 2 +- tests/api-output/parseAssertAttribute/css-quote-1.toml | 2 +- tests/api-output/parseAssertAttribute/css-quote-2.toml | 2 +- tests/api-output/parseAssertAttribute/multiline-2.toml | 2 +- tests/api-output/parseAssertAttribute/null-1.toml | 2 +- tests/api-output/parseAssertAttribute/null-2.toml | 2 +- tests/api-output/parseAssertAttribute/pseudo-1.toml | 2 +- tests/api-output/parseAssertAttribute/pseudo-2.toml | 2 +- tests/api-output/parseAssertAttribute/pseudo-3.toml | 2 +- tests/api-output/parseAssertAttribute/pseudo-4.toml | 2 +- tests/api-output/parseAssertAttribute/pseudo-5.toml | 2 +- tests/api-output/parseAssertAttribute/pseudo-6.toml | 2 +- tests/api-output/parseAssertAttribute/xpath-1.toml | 2 +- tests/api-output/parseAssertAttribute/xpath-2.toml | 2 +- tests/api-output/parseAssertAttribute/xpath-3.toml | 2 +- tests/api-output/parseAssertAttributeFalse/basic-1.toml | 2 +- tests/api-output/parseAssertAttributeFalse/basic-2.toml | 2 +- tests/api-output/parseAssertAttributeFalse/css-1.toml | 2 +- tests/api-output/parseAssertAttributeFalse/css-all.toml | 2 +- tests/api-output/parseAssertAttributeFalse/css-empty.toml | 2 +- tests/api-output/parseAssertAttributeFalse/css-quote-1.toml | 2 +- tests/api-output/parseAssertAttributeFalse/css-quote-2.toml | 2 +- tests/api-output/parseAssertAttributeFalse/multiline-2.toml | 2 +- tests/api-output/parseAssertAttributeFalse/null-1.toml | 2 +- tests/api-output/parseAssertAttributeFalse/null-2.toml | 2 +- tests/api-output/parseAssertAttributeFalse/pseudo-1.toml | 2 +- tests/api-output/parseAssertAttributeFalse/pseudo-2.toml | 2 +- tests/api-output/parseAssertAttributeFalse/pseudo-3.toml | 2 +- tests/api-output/parseAssertAttributeFalse/pseudo-4.toml | 2 +- tests/api-output/parseAssertAttributeFalse/pseudo-5.toml | 2 +- tests/api-output/parseAssertAttributeFalse/pseudo-6.toml | 2 +- tests/api-output/parseAssertAttributeFalse/xpath-1.toml | 2 +- tests/api-output/parseAssertAttributeFalse/xpath-2.toml | 2 +- tests/api-output/parseAssertAttributeFalse/xpath-3.toml | 2 +- tests/api-output/parseAssertClipboard/basic-1.toml | 2 +- tests/api-output/parseAssertClipboard/basic-2.toml | 2 +- tests/api-output/parseAssertClipboard/basic-3.toml | 2 +- tests/api-output/parseAssertClipboard/basic-4.toml | 2 +- tests/api-output/parseAssertClipboardFalse/basic-1.toml | 2 +- tests/api-output/parseAssertClipboardFalse/basic-2.toml | 2 +- tests/api-output/parseAssertClipboardFalse/basic-3.toml | 2 +- tests/api-output/parseAssertClipboardFalse/basic-4.toml | 2 +- tests/api-output/parseAssertDocumentProperty/basic-1.toml | 2 +- tests/api-output/parseAssertDocumentProperty/basic-2.toml | 2 +- tests/api-output/parseAssertDocumentProperty/null-2.toml | 2 +- .../parseAssertDocumentProperty/object-path-1.toml | 2 +- .../parseAssertDocumentProperty/object-path-3.toml | 2 +- .../parseAssertDocumentPropertyFalse/basic-1.toml | 2 +- .../parseAssertDocumentPropertyFalse/basic-2.toml | 2 +- .../api-output/parseAssertDocumentPropertyFalse/null-2.toml | 2 +- .../parseAssertDocumentPropertyFalse/object-path-1.toml | 2 +- .../parseAssertDocumentPropertyFalse/object-path-3.toml | 2 +- tests/api-output/parseAssertProperty/basic-1.toml | 2 +- tests/api-output/parseAssertProperty/basic-2.toml | 2 +- tests/api-output/parseAssertProperty/basic-3.toml | 2 +- tests/api-output/parseAssertProperty/multiline-2.toml | 2 +- tests/api-output/parseAssertProperty/object-path-1.toml | 2 +- tests/api-output/parseAssertProperty/object-path-2.toml | 2 +- tests/api-output/parseAssertProperty/pseudo-1.toml | 2 +- tests/api-output/parseAssertProperty/pseudo-2.toml | 2 +- tests/api-output/parseAssertProperty/pseudo-3.toml | 2 +- tests/api-output/parseAssertProperty/pseudo-4.toml | 2 +- tests/api-output/parseAssertProperty/pseudo-5.toml | 2 +- tests/api-output/parseAssertProperty/pseudo-6.toml | 2 +- tests/api-output/parseAssertProperty/undef-1.toml | 2 +- tests/api-output/parseAssertProperty/undef-3.toml | 2 +- tests/api-output/parseAssertProperty/xpath-1.toml | 2 +- tests/api-output/parseAssertProperty/xpath-2.toml | 2 +- tests/api-output/parseAssertProperty/xpath-3.toml | 2 +- tests/api-output/parseAssertPropertyFalse/basic-1.toml | 2 +- tests/api-output/parseAssertPropertyFalse/basic-2.toml | 2 +- tests/api-output/parseAssertPropertyFalse/basic-3.toml | 2 +- tests/api-output/parseAssertPropertyFalse/multiline-2.toml | 2 +- .../api-output/parseAssertPropertyFalse/object-path-1.toml | 2 +- .../api-output/parseAssertPropertyFalse/object-path-2.toml | 2 +- tests/api-output/parseAssertPropertyFalse/pseudo-1.toml | 2 +- tests/api-output/parseAssertPropertyFalse/pseudo-2.toml | 2 +- tests/api-output/parseAssertPropertyFalse/pseudo-3.toml | 2 +- tests/api-output/parseAssertPropertyFalse/pseudo-4.toml | 2 +- tests/api-output/parseAssertPropertyFalse/pseudo-5.toml | 2 +- tests/api-output/parseAssertPropertyFalse/pseudo-6.toml | 2 +- tests/api-output/parseAssertPropertyFalse/undef-1.toml | 2 +- tests/api-output/parseAssertPropertyFalse/undef-3.toml | 2 +- tests/api-output/parseAssertPropertyFalse/xpath-1.toml | 2 +- tests/api-output/parseAssertPropertyFalse/xpath-2.toml | 2 +- tests/api-output/parseAssertPropertyFalse/xpath-3.toml | 2 +- tests/api-output/parseAssertWindowProperty/basic-1.toml | 2 +- tests/api-output/parseAssertWindowProperty/basic-2.toml | 2 +- tests/api-output/parseAssertWindowProperty/null-2.toml | 2 +- .../api-output/parseAssertWindowProperty/object-path-1.toml | 2 +- .../api-output/parseAssertWindowProperty/object-path-3.toml | 2 +- .../api-output/parseAssertWindowPropertyFalse/basic-1.toml | 2 +- .../api-output/parseAssertWindowPropertyFalse/basic-2.toml | 2 +- tests/api-output/parseAssertWindowPropertyFalse/null-2.toml | 2 +- .../parseAssertWindowPropertyFalse/object-path-1.toml | 2 +- .../parseAssertWindowPropertyFalse/object-path-3.toml | 2 +- tests/api-output/parseStoreClipboard/basic-1.toml | 2 +- tests/api-output/parseWaitForAttribute/basic-1.toml | 2 +- tests/api-output/parseWaitForAttribute/basic-2.toml | 2 +- tests/api-output/parseWaitForAttribute/basic-3.toml | 2 +- tests/api-output/parseWaitForAttribute/color-1.toml | 2 +- tests/api-output/parseWaitForAttribute/extra-1.toml | 2 +- tests/api-output/parseWaitForAttribute/null-1.toml | 2 +- tests/api-output/parseWaitForAttribute/pseudo-1.toml | 2 +- tests/api-output/parseWaitForAttribute/xpath-2.toml | 2 +- tests/api-output/parseWaitForAttribute/xpath-3.toml | 2 +- tests/api-output/parseWaitForAttributeFalse/basic-1.toml | 2 +- tests/api-output/parseWaitForAttributeFalse/basic-2.toml | 2 +- tests/api-output/parseWaitForAttributeFalse/basic-3.toml | 2 +- tests/api-output/parseWaitForAttributeFalse/color-1.toml | 2 +- tests/api-output/parseWaitForAttributeFalse/extra-1.toml | 2 +- tests/api-output/parseWaitForAttributeFalse/null-1.toml | 2 +- tests/api-output/parseWaitForAttributeFalse/pseudo-1.toml | 2 +- tests/api-output/parseWaitForAttributeFalse/xpath-2.toml | 2 +- tests/api-output/parseWaitForAttributeFalse/xpath-3.toml | 2 +- tests/api-output/parseWaitForClipboard/basic-1.toml | 2 +- tests/api-output/parseWaitForClipboard/basic-2.toml | 2 +- tests/api-output/parseWaitForClipboard/basic-3.toml | 2 +- tests/api-output/parseWaitForClipboard/basic-4.toml | 2 +- tests/api-output/parseWaitForClipboardFalse/basic-1.toml | 4 ++-- tests/api-output/parseWaitForClipboardFalse/basic-2.toml | 4 ++-- tests/api-output/parseWaitForClipboardFalse/basic-3.toml | 4 ++-- tests/api-output/parseWaitForClipboardFalse/basic-4.toml | 4 ++-- tests/api-output/parseWaitForDocumentProperty/basic-3.toml | 2 +- tests/api-output/parseWaitForDocumentProperty/basic-4.toml | 2 +- tests/api-output/parseWaitForDocumentProperty/basic-6.toml | 2 +- tests/api-output/parseWaitForDocumentProperty/basic-7.toml | 2 +- .../parseWaitForDocumentProperty/object-path-1.toml | 2 +- .../parseWaitForDocumentProperty/object-path-2.toml | 2 +- .../parseWaitForDocumentPropertyFalse/basic-3.toml | 2 +- .../parseWaitForDocumentPropertyFalse/basic-4.toml | 2 +- .../parseWaitForDocumentPropertyFalse/basic-6.toml | 2 +- .../parseWaitForDocumentPropertyFalse/basic-7.toml | 2 +- .../parseWaitForDocumentPropertyFalse/object-path-1.toml | 2 +- .../parseWaitForDocumentPropertyFalse/object-path-2.toml | 2 +- tests/api-output/parseWaitForProperty/basic-1.toml | 2 +- tests/api-output/parseWaitForProperty/basic-2.toml | 2 +- tests/api-output/parseWaitForProperty/basic-3.toml | 2 +- tests/api-output/parseWaitForProperty/color-1.toml | 2 +- tests/api-output/parseWaitForProperty/extra-1.toml | 2 +- tests/api-output/parseWaitForProperty/object-path-1.toml | 2 +- tests/api-output/parseWaitForProperty/object-path-2.toml | 2 +- tests/api-output/parseWaitForProperty/pseudo-1.toml | 2 +- tests/api-output/parseWaitForProperty/xpath-2.toml | 2 +- tests/api-output/parseWaitForProperty/xpath-3.toml | 2 +- tests/api-output/parseWaitForPropertyFalse/basic-1.toml | 2 +- tests/api-output/parseWaitForPropertyFalse/basic-2.toml | 2 +- tests/api-output/parseWaitForPropertyFalse/basic-3.toml | 2 +- tests/api-output/parseWaitForPropertyFalse/color-1.toml | 2 +- tests/api-output/parseWaitForPropertyFalse/extra-1.toml | 2 +- .../api-output/parseWaitForPropertyFalse/object-path-1.toml | 2 +- .../api-output/parseWaitForPropertyFalse/object-path-2.toml | 2 +- tests/api-output/parseWaitForPropertyFalse/pseudo-1.toml | 2 +- tests/api-output/parseWaitForPropertyFalse/xpath-2.toml | 2 +- tests/api-output/parseWaitForPropertyFalse/xpath-3.toml | 2 +- tests/api-output/parseWaitForWindowProperty/basic-3.toml | 2 +- tests/api-output/parseWaitForWindowProperty/basic-4.toml | 2 +- tests/api-output/parseWaitForWindowProperty/basic-6.toml | 2 +- tests/api-output/parseWaitForWindowProperty/basic-7.toml | 2 +- .../parseWaitForWindowProperty/object-path-1.toml | 2 +- .../parseWaitForWindowProperty/object-path-2.toml | 2 +- .../api-output/parseWaitForWindowPropertyFalse/basic-3.toml | 2 +- .../api-output/parseWaitForWindowPropertyFalse/basic-4.toml | 2 +- .../api-output/parseWaitForWindowPropertyFalse/basic-6.toml | 2 +- .../api-output/parseWaitForWindowPropertyFalse/basic-7.toml | 2 +- .../parseWaitForWindowPropertyFalse/object-path-1.toml | 2 +- .../parseWaitForWindowPropertyFalse/object-path-2.toml | 2 +- tests/ui/wait-for-property-3.goml | 2 +- tests/ui/wait-for-property-3.output | 2 +- tests/ui/wait-for-property.goml | 6 ------ tests/ui/wait-for-property.output | 2 +- 175 files changed, 178 insertions(+), 184 deletions(-) diff --git a/tests/api-output/parseAssertAttribute/basic-1.toml b/tests/api-output/parseAssertAttribute/basic-1.toml index 2acf565e..4674a185 100644 --- a/tests/api-output/parseAssertAttribute/basic-1.toml +++ b/tests/api-output/parseAssertAttribute/basic-1.toml @@ -17,7 +17,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr !== parseAssertElemAttrValue) { + if (attr != parseAssertElemAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseAssertElemAttrValue + \"` for attribute `\" + parseAssertElemAttrAttribute + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseAssertAttribute/basic-2.toml b/tests/api-output/parseAssertAttribute/basic-2.toml index 5883b47f..9264e10a 100644 --- a/tests/api-output/parseAssertAttribute/basic-2.toml +++ b/tests/api-output/parseAssertAttribute/basic-2.toml @@ -18,7 +18,7 @@ for (let i = 0, len = parseAssertElemAttr.length; i < len; ++i) { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr !== parseAssertElemAttrValue) { + if (attr != parseAssertElemAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseAssertElemAttrValue + \"` for attribute `\" + parseAssertElemAttrAttribute + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseAssertAttribute/css-1.toml b/tests/api-output/parseAssertAttribute/css-1.toml index a818126e..f3f545b4 100644 --- a/tests/api-output/parseAssertAttribute/css-1.toml +++ b/tests/api-output/parseAssertAttribute/css-1.toml @@ -17,7 +17,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr !== parseAssertElemAttrValue) { + if (attr != parseAssertElemAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseAssertElemAttrValue + \"` for attribute `\" + parseAssertElemAttrAttribute + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseAssertAttribute/css-all.toml b/tests/api-output/parseAssertAttribute/css-all.toml index 5c1a6081..fef409f5 100644 --- a/tests/api-output/parseAssertAttribute/css-all.toml +++ b/tests/api-output/parseAssertAttribute/css-all.toml @@ -18,7 +18,7 @@ for (let i = 0, len = parseAssertElemAttr.length; i < len; ++i) { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr !== parseAssertElemAttrValue) { + if (attr != parseAssertElemAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseAssertElemAttrValue + \"` for attribute `\" + parseAssertElemAttrAttribute + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseAssertAttribute/css-empty.toml b/tests/api-output/parseAssertAttribute/css-empty.toml index 43b7923c..353456b3 100644 --- a/tests/api-output/parseAssertAttribute/css-empty.toml +++ b/tests/api-output/parseAssertAttribute/css-empty.toml @@ -17,7 +17,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr !== parseAssertElemAttrValue) { + if (attr != parseAssertElemAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseAssertElemAttrValue + \"` for attribute `\" + parseAssertElemAttrAttribute + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseAssertAttribute/css-quote-1.toml b/tests/api-output/parseAssertAttribute/css-quote-1.toml index 34656453..04cfad5b 100644 --- a/tests/api-output/parseAssertAttribute/css-quote-1.toml +++ b/tests/api-output/parseAssertAttribute/css-quote-1.toml @@ -17,7 +17,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr !== parseAssertElemAttrValue) { + if (attr != parseAssertElemAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseAssertElemAttrValue + \"` for attribute `\" + parseAssertElemAttrAttribute + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseAssertAttribute/css-quote-2.toml b/tests/api-output/parseAssertAttribute/css-quote-2.toml index 904b8489..e2e9f357 100644 --- a/tests/api-output/parseAssertAttribute/css-quote-2.toml +++ b/tests/api-output/parseAssertAttribute/css-quote-2.toml @@ -18,7 +18,7 @@ for (let i = 0, len = parseAssertElemAttr.length; i < len; ++i) { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr !== parseAssertElemAttrValue) { + if (attr != parseAssertElemAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseAssertElemAttrValue + \"` for attribute `\" + parseAssertElemAttrAttribute + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseAssertAttribute/multiline-2.toml b/tests/api-output/parseAssertAttribute/multiline-2.toml index 1b7d49a0..c8bb9970 100644 --- a/tests/api-output/parseAssertAttribute/multiline-2.toml +++ b/tests/api-output/parseAssertAttribute/multiline-2.toml @@ -18,7 +18,7 @@ for (let i = 0, len = parseAssertElemAttr.length; i < len; ++i) { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr !== parseAssertElemAttrValue) { + if (attr != parseAssertElemAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseAssertElemAttrValue + \"` for attribute `\" + parseAssertElemAttrAttribute + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseAssertAttribute/null-1.toml b/tests/api-output/parseAssertAttribute/null-1.toml index 03ac737d..f916ef1c 100644 --- a/tests/api-output/parseAssertAttribute/null-1.toml +++ b/tests/api-output/parseAssertAttribute/null-1.toml @@ -17,7 +17,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr !== parseAssertElemAttrValue) { + if (attr != parseAssertElemAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseAssertElemAttrValue + \"` for attribute `\" + parseAssertElemAttrAttribute + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseAssertAttribute/null-2.toml b/tests/api-output/parseAssertAttribute/null-2.toml index ac895ded..00207686 100644 --- a/tests/api-output/parseAssertAttribute/null-2.toml +++ b/tests/api-output/parseAssertAttribute/null-2.toml @@ -18,7 +18,7 @@ for (let i = 0, len = parseAssertElemAttr.length; i < len; ++i) { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr !== parseAssertElemAttrValue) { + if (attr != parseAssertElemAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseAssertElemAttrValue + \"` for attribute `\" + parseAssertElemAttrAttribute + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseAssertAttribute/pseudo-1.toml b/tests/api-output/parseAssertAttribute/pseudo-1.toml index f7112cbb..b81e2de2 100644 --- a/tests/api-output/parseAssertAttribute/pseudo-1.toml +++ b/tests/api-output/parseAssertAttribute/pseudo-1.toml @@ -17,7 +17,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr !== parseAssertElemAttrValue) { + if (attr != parseAssertElemAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseAssertElemAttrValue + \"` for attribute `\" + parseAssertElemAttrAttribute + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseAssertAttribute/pseudo-2.toml b/tests/api-output/parseAssertAttribute/pseudo-2.toml index b3a68f44..72ba22a9 100644 --- a/tests/api-output/parseAssertAttribute/pseudo-2.toml +++ b/tests/api-output/parseAssertAttribute/pseudo-2.toml @@ -18,7 +18,7 @@ for (let i = 0, len = parseAssertElemAttr.length; i < len; ++i) { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr !== parseAssertElemAttrValue) { + if (attr != parseAssertElemAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseAssertElemAttrValue + \"` for attribute `\" + parseAssertElemAttrAttribute + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseAssertAttribute/pseudo-3.toml b/tests/api-output/parseAssertAttribute/pseudo-3.toml index 5554420d..291f84d5 100644 --- a/tests/api-output/parseAssertAttribute/pseudo-3.toml +++ b/tests/api-output/parseAssertAttribute/pseudo-3.toml @@ -17,7 +17,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr !== parseAssertElemAttrValue) { + if (attr != parseAssertElemAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseAssertElemAttrValue + \"` for attribute `\" + parseAssertElemAttrAttribute + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseAssertAttribute/pseudo-4.toml b/tests/api-output/parseAssertAttribute/pseudo-4.toml index bf393c8b..3ffda5e9 100644 --- a/tests/api-output/parseAssertAttribute/pseudo-4.toml +++ b/tests/api-output/parseAssertAttribute/pseudo-4.toml @@ -18,7 +18,7 @@ for (let i = 0, len = parseAssertElemAttr.length; i < len; ++i) { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr !== parseAssertElemAttrValue) { + if (attr != parseAssertElemAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseAssertElemAttrValue + \"` for attribute `\" + parseAssertElemAttrAttribute + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseAssertAttribute/pseudo-5.toml b/tests/api-output/parseAssertAttribute/pseudo-5.toml index bb418f88..e7f1a4fc 100644 --- a/tests/api-output/parseAssertAttribute/pseudo-5.toml +++ b/tests/api-output/parseAssertAttribute/pseudo-5.toml @@ -17,7 +17,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr !== parseAssertElemAttrValue) { + if (attr != parseAssertElemAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseAssertElemAttrValue + \"` for attribute `\" + parseAssertElemAttrAttribute + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseAssertAttribute/pseudo-6.toml b/tests/api-output/parseAssertAttribute/pseudo-6.toml index f7b07458..b2a67d53 100644 --- a/tests/api-output/parseAssertAttribute/pseudo-6.toml +++ b/tests/api-output/parseAssertAttribute/pseudo-6.toml @@ -18,7 +18,7 @@ for (let i = 0, len = parseAssertElemAttr.length; i < len; ++i) { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr !== parseAssertElemAttrValue) { + if (attr != parseAssertElemAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseAssertElemAttrValue + \"` for attribute `\" + parseAssertElemAttrAttribute + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseAssertAttribute/xpath-1.toml b/tests/api-output/parseAssertAttribute/xpath-1.toml index 83928c92..0db7e654 100644 --- a/tests/api-output/parseAssertAttribute/xpath-1.toml +++ b/tests/api-output/parseAssertAttribute/xpath-1.toml @@ -17,7 +17,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr !== parseAssertElemAttrValue) { + if (attr != parseAssertElemAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseAssertElemAttrValue + \"` for attribute `\" + parseAssertElemAttrAttribute + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseAssertAttribute/xpath-2.toml b/tests/api-output/parseAssertAttribute/xpath-2.toml index 205883cf..a83ac40e 100644 --- a/tests/api-output/parseAssertAttribute/xpath-2.toml +++ b/tests/api-output/parseAssertAttribute/xpath-2.toml @@ -17,7 +17,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr !== parseAssertElemAttrValue) { + if (attr != parseAssertElemAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseAssertElemAttrValue + \"` for attribute `\" + parseAssertElemAttrAttribute + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseAssertAttribute/xpath-3.toml b/tests/api-output/parseAssertAttribute/xpath-3.toml index 1b7d49a0..c8bb9970 100644 --- a/tests/api-output/parseAssertAttribute/xpath-3.toml +++ b/tests/api-output/parseAssertAttribute/xpath-3.toml @@ -18,7 +18,7 @@ for (let i = 0, len = parseAssertElemAttr.length; i < len; ++i) { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr !== parseAssertElemAttrValue) { + if (attr != parseAssertElemAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseAssertElemAttrValue + \"` for attribute `\" + parseAssertElemAttrAttribute + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseAssertAttributeFalse/basic-1.toml b/tests/api-output/parseAssertAttributeFalse/basic-1.toml index 64eb16a6..254106a6 100644 --- a/tests/api-output/parseAssertAttributeFalse/basic-1.toml +++ b/tests/api-output/parseAssertAttributeFalse/basic-1.toml @@ -16,7 +16,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr === parseAssertElemAttrValue) { + if (attr == parseAssertElemAttrValue) { nonMatchingAttrs.push(\"assert didn't fail for attribute `\" + parseAssertElemAttrAttribute + \"` (`\" + attr + \"`)\"); } } diff --git a/tests/api-output/parseAssertAttributeFalse/basic-2.toml b/tests/api-output/parseAssertAttributeFalse/basic-2.toml index 9798faa6..ea0a0c26 100644 --- a/tests/api-output/parseAssertAttributeFalse/basic-2.toml +++ b/tests/api-output/parseAssertAttributeFalse/basic-2.toml @@ -17,7 +17,7 @@ for (let i = 0, len = parseAssertElemAttr.length; i < len; ++i) { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr === parseAssertElemAttrValue) { + if (attr == parseAssertElemAttrValue) { nonMatchingAttrs.push(\"assert didn't fail for attribute `\" + parseAssertElemAttrAttribute + \"` (`\" + attr + \"`)\"); } } diff --git a/tests/api-output/parseAssertAttributeFalse/css-1.toml b/tests/api-output/parseAssertAttributeFalse/css-1.toml index eba61fed..137ff8b1 100644 --- a/tests/api-output/parseAssertAttributeFalse/css-1.toml +++ b/tests/api-output/parseAssertAttributeFalse/css-1.toml @@ -16,7 +16,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr === parseAssertElemAttrValue) { + if (attr == parseAssertElemAttrValue) { nonMatchingAttrs.push(\"assert didn't fail for attribute `\" + parseAssertElemAttrAttribute + \"` (`\" + attr + \"`)\"); } } diff --git a/tests/api-output/parseAssertAttributeFalse/css-all.toml b/tests/api-output/parseAssertAttributeFalse/css-all.toml index bfe69803..37271c41 100644 --- a/tests/api-output/parseAssertAttributeFalse/css-all.toml +++ b/tests/api-output/parseAssertAttributeFalse/css-all.toml @@ -17,7 +17,7 @@ for (let i = 0, len = parseAssertElemAttr.length; i < len; ++i) { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr === parseAssertElemAttrValue) { + if (attr == parseAssertElemAttrValue) { nonMatchingAttrs.push(\"assert didn't fail for attribute `\" + parseAssertElemAttrAttribute + \"` (`\" + attr + \"`)\"); } } diff --git a/tests/api-output/parseAssertAttributeFalse/css-empty.toml b/tests/api-output/parseAssertAttributeFalse/css-empty.toml index ac6b9336..510dbce3 100644 --- a/tests/api-output/parseAssertAttributeFalse/css-empty.toml +++ b/tests/api-output/parseAssertAttributeFalse/css-empty.toml @@ -16,7 +16,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr === parseAssertElemAttrValue) { + if (attr == parseAssertElemAttrValue) { nonMatchingAttrs.push(\"assert didn't fail for attribute `\" + parseAssertElemAttrAttribute + \"` (`\" + attr + \"`)\"); } } diff --git a/tests/api-output/parseAssertAttributeFalse/css-quote-1.toml b/tests/api-output/parseAssertAttributeFalse/css-quote-1.toml index 8d21e86c..713d2ff6 100644 --- a/tests/api-output/parseAssertAttributeFalse/css-quote-1.toml +++ b/tests/api-output/parseAssertAttributeFalse/css-quote-1.toml @@ -16,7 +16,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr === parseAssertElemAttrValue) { + if (attr == parseAssertElemAttrValue) { nonMatchingAttrs.push(\"assert didn't fail for attribute `\" + parseAssertElemAttrAttribute + \"` (`\" + attr + \"`)\"); } } diff --git a/tests/api-output/parseAssertAttributeFalse/css-quote-2.toml b/tests/api-output/parseAssertAttributeFalse/css-quote-2.toml index 41d7de01..daf31c82 100644 --- a/tests/api-output/parseAssertAttributeFalse/css-quote-2.toml +++ b/tests/api-output/parseAssertAttributeFalse/css-quote-2.toml @@ -17,7 +17,7 @@ for (let i = 0, len = parseAssertElemAttr.length; i < len; ++i) { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr === parseAssertElemAttrValue) { + if (attr == parseAssertElemAttrValue) { nonMatchingAttrs.push(\"assert didn't fail for attribute `\" + parseAssertElemAttrAttribute + \"` (`\" + attr + \"`)\"); } } diff --git a/tests/api-output/parseAssertAttributeFalse/multiline-2.toml b/tests/api-output/parseAssertAttributeFalse/multiline-2.toml index c0f8a4ba..edf50690 100644 --- a/tests/api-output/parseAssertAttributeFalse/multiline-2.toml +++ b/tests/api-output/parseAssertAttributeFalse/multiline-2.toml @@ -17,7 +17,7 @@ for (let i = 0, len = parseAssertElemAttr.length; i < len; ++i) { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr === parseAssertElemAttrValue) { + if (attr == parseAssertElemAttrValue) { nonMatchingAttrs.push(\"assert didn't fail for attribute `\" + parseAssertElemAttrAttribute + \"` (`\" + attr + \"`)\"); } } diff --git a/tests/api-output/parseAssertAttributeFalse/null-1.toml b/tests/api-output/parseAssertAttributeFalse/null-1.toml index b9008784..140189c5 100644 --- a/tests/api-output/parseAssertAttributeFalse/null-1.toml +++ b/tests/api-output/parseAssertAttributeFalse/null-1.toml @@ -16,7 +16,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr === parseAssertElemAttrValue) { + if (attr == parseAssertElemAttrValue) { nonMatchingAttrs.push(\"assert didn't fail for attribute `\" + parseAssertElemAttrAttribute + \"` (`\" + attr + \"`)\"); } } diff --git a/tests/api-output/parseAssertAttributeFalse/null-2.toml b/tests/api-output/parseAssertAttributeFalse/null-2.toml index a7fd45d5..ecf98593 100644 --- a/tests/api-output/parseAssertAttributeFalse/null-2.toml +++ b/tests/api-output/parseAssertAttributeFalse/null-2.toml @@ -17,7 +17,7 @@ for (let i = 0, len = parseAssertElemAttr.length; i < len; ++i) { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr === parseAssertElemAttrValue) { + if (attr == parseAssertElemAttrValue) { nonMatchingAttrs.push(\"assert didn't fail for attribute `\" + parseAssertElemAttrAttribute + \"` (`\" + attr + \"`)\"); } } diff --git a/tests/api-output/parseAssertAttributeFalse/pseudo-1.toml b/tests/api-output/parseAssertAttributeFalse/pseudo-1.toml index 42210895..b07433c5 100644 --- a/tests/api-output/parseAssertAttributeFalse/pseudo-1.toml +++ b/tests/api-output/parseAssertAttributeFalse/pseudo-1.toml @@ -16,7 +16,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr === parseAssertElemAttrValue) { + if (attr == parseAssertElemAttrValue) { nonMatchingAttrs.push(\"assert didn't fail for attribute `\" + parseAssertElemAttrAttribute + \"` (`\" + attr + \"`)\"); } } diff --git a/tests/api-output/parseAssertAttributeFalse/pseudo-2.toml b/tests/api-output/parseAssertAttributeFalse/pseudo-2.toml index 1f829e6a..605664d3 100644 --- a/tests/api-output/parseAssertAttributeFalse/pseudo-2.toml +++ b/tests/api-output/parseAssertAttributeFalse/pseudo-2.toml @@ -17,7 +17,7 @@ for (let i = 0, len = parseAssertElemAttr.length; i < len; ++i) { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr === parseAssertElemAttrValue) { + if (attr == parseAssertElemAttrValue) { nonMatchingAttrs.push(\"assert didn't fail for attribute `\" + parseAssertElemAttrAttribute + \"` (`\" + attr + \"`)\"); } } diff --git a/tests/api-output/parseAssertAttributeFalse/pseudo-3.toml b/tests/api-output/parseAssertAttributeFalse/pseudo-3.toml index 2afbd0ad..8d496861 100644 --- a/tests/api-output/parseAssertAttributeFalse/pseudo-3.toml +++ b/tests/api-output/parseAssertAttributeFalse/pseudo-3.toml @@ -16,7 +16,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr === parseAssertElemAttrValue) { + if (attr == parseAssertElemAttrValue) { nonMatchingAttrs.push(\"assert didn't fail for attribute `\" + parseAssertElemAttrAttribute + \"` (`\" + attr + \"`)\"); } } diff --git a/tests/api-output/parseAssertAttributeFalse/pseudo-4.toml b/tests/api-output/parseAssertAttributeFalse/pseudo-4.toml index 8a6fea21..095c51f8 100644 --- a/tests/api-output/parseAssertAttributeFalse/pseudo-4.toml +++ b/tests/api-output/parseAssertAttributeFalse/pseudo-4.toml @@ -17,7 +17,7 @@ for (let i = 0, len = parseAssertElemAttr.length; i < len; ++i) { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr === parseAssertElemAttrValue) { + if (attr == parseAssertElemAttrValue) { nonMatchingAttrs.push(\"assert didn't fail for attribute `\" + parseAssertElemAttrAttribute + \"` (`\" + attr + \"`)\"); } } diff --git a/tests/api-output/parseAssertAttributeFalse/pseudo-5.toml b/tests/api-output/parseAssertAttributeFalse/pseudo-5.toml index 113f8315..eae27f59 100644 --- a/tests/api-output/parseAssertAttributeFalse/pseudo-5.toml +++ b/tests/api-output/parseAssertAttributeFalse/pseudo-5.toml @@ -16,7 +16,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr === parseAssertElemAttrValue) { + if (attr == parseAssertElemAttrValue) { nonMatchingAttrs.push(\"assert didn't fail for attribute `\" + parseAssertElemAttrAttribute + \"` (`\" + attr + \"`)\"); } } diff --git a/tests/api-output/parseAssertAttributeFalse/pseudo-6.toml b/tests/api-output/parseAssertAttributeFalse/pseudo-6.toml index c8628ee7..5af923c2 100644 --- a/tests/api-output/parseAssertAttributeFalse/pseudo-6.toml +++ b/tests/api-output/parseAssertAttributeFalse/pseudo-6.toml @@ -17,7 +17,7 @@ for (let i = 0, len = parseAssertElemAttr.length; i < len; ++i) { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr === parseAssertElemAttrValue) { + if (attr == parseAssertElemAttrValue) { nonMatchingAttrs.push(\"assert didn't fail for attribute `\" + parseAssertElemAttrAttribute + \"` (`\" + attr + \"`)\"); } } diff --git a/tests/api-output/parseAssertAttributeFalse/xpath-1.toml b/tests/api-output/parseAssertAttributeFalse/xpath-1.toml index d7e6d627..ff876829 100644 --- a/tests/api-output/parseAssertAttributeFalse/xpath-1.toml +++ b/tests/api-output/parseAssertAttributeFalse/xpath-1.toml @@ -16,7 +16,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr === parseAssertElemAttrValue) { + if (attr == parseAssertElemAttrValue) { nonMatchingAttrs.push(\"assert didn't fail for attribute `\" + parseAssertElemAttrAttribute + \"` (`\" + attr + \"`)\"); } } diff --git a/tests/api-output/parseAssertAttributeFalse/xpath-2.toml b/tests/api-output/parseAssertAttributeFalse/xpath-2.toml index 4e90b889..ddb6ecff 100644 --- a/tests/api-output/parseAssertAttributeFalse/xpath-2.toml +++ b/tests/api-output/parseAssertAttributeFalse/xpath-2.toml @@ -16,7 +16,7 @@ await page.evaluate(e => { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr === parseAssertElemAttrValue) { + if (attr == parseAssertElemAttrValue) { nonMatchingAttrs.push(\"assert didn't fail for attribute `\" + parseAssertElemAttrAttribute + \"` (`\" + attr + \"`)\"); } } diff --git a/tests/api-output/parseAssertAttributeFalse/xpath-3.toml b/tests/api-output/parseAssertAttributeFalse/xpath-3.toml index c0f8a4ba..edf50690 100644 --- a/tests/api-output/parseAssertAttributeFalse/xpath-3.toml +++ b/tests/api-output/parseAssertAttributeFalse/xpath-3.toml @@ -17,7 +17,7 @@ for (let i = 0, len = parseAssertElemAttr.length; i < len; ++i) { continue; } const attr = e.getAttribute(parseAssertElemAttrAttribute); - if (attr === parseAssertElemAttrValue) { + if (attr == parseAssertElemAttrValue) { nonMatchingAttrs.push(\"assert didn't fail for attribute `\" + parseAssertElemAttrAttribute + \"` (`\" + attr + \"`)\"); } } diff --git a/tests/api-output/parseAssertClipboard/basic-1.toml b/tests/api-output/parseAssertClipboard/basic-1.toml index 2b2fb0db..b1d651a6 100644 --- a/tests/api-output/parseAssertClipboard/basic-1.toml +++ b/tests/api-output/parseAssertClipboard/basic-1.toml @@ -6,7 +6,7 @@ instructions = [ } const tmp = document.createElement(\"div\"); tmp.id = \"created-by-browser-ui-test-to-get-clipboard-content-in-all-contexts\"; - tmp.style = \"height:2px;width:2px;position:static;\"; + tmp.style = \"height:2px;width:2px;position:static;z-index:1000000;left:0;top:0;\"; tmp.onclick = () => { tmp.clipboardContent = navigator.clipboard.readText(); }; diff --git a/tests/api-output/parseAssertClipboard/basic-2.toml b/tests/api-output/parseAssertClipboard/basic-2.toml index 2b2fb0db..b1d651a6 100644 --- a/tests/api-output/parseAssertClipboard/basic-2.toml +++ b/tests/api-output/parseAssertClipboard/basic-2.toml @@ -6,7 +6,7 @@ instructions = [ } const tmp = document.createElement(\"div\"); tmp.id = \"created-by-browser-ui-test-to-get-clipboard-content-in-all-contexts\"; - tmp.style = \"height:2px;width:2px;position:static;\"; + tmp.style = \"height:2px;width:2px;position:static;z-index:1000000;left:0;top:0;\"; tmp.onclick = () => { tmp.clipboardContent = navigator.clipboard.readText(); }; diff --git a/tests/api-output/parseAssertClipboard/basic-3.toml b/tests/api-output/parseAssertClipboard/basic-3.toml index c8667ad9..046d499d 100644 --- a/tests/api-output/parseAssertClipboard/basic-3.toml +++ b/tests/api-output/parseAssertClipboard/basic-3.toml @@ -6,7 +6,7 @@ instructions = [ } const tmp = document.createElement(\"div\"); tmp.id = \"created-by-browser-ui-test-to-get-clipboard-content-in-all-contexts\"; - tmp.style = \"height:2px;width:2px;position:static;\"; + tmp.style = \"height:2px;width:2px;position:static;z-index:1000000;left:0;top:0;\"; tmp.onclick = () => { tmp.clipboardContent = navigator.clipboard.readText(); }; diff --git a/tests/api-output/parseAssertClipboard/basic-4.toml b/tests/api-output/parseAssertClipboard/basic-4.toml index c8667ad9..046d499d 100644 --- a/tests/api-output/parseAssertClipboard/basic-4.toml +++ b/tests/api-output/parseAssertClipboard/basic-4.toml @@ -6,7 +6,7 @@ instructions = [ } const tmp = document.createElement(\"div\"); tmp.id = \"created-by-browser-ui-test-to-get-clipboard-content-in-all-contexts\"; - tmp.style = \"height:2px;width:2px;position:static;\"; + tmp.style = \"height:2px;width:2px;position:static;z-index:1000000;left:0;top:0;\"; tmp.onclick = () => { tmp.clipboardContent = navigator.clipboard.readText(); }; diff --git a/tests/api-output/parseAssertClipboardFalse/basic-1.toml b/tests/api-output/parseAssertClipboardFalse/basic-1.toml index 5a0c2652..63cda849 100644 --- a/tests/api-output/parseAssertClipboardFalse/basic-1.toml +++ b/tests/api-output/parseAssertClipboardFalse/basic-1.toml @@ -6,7 +6,7 @@ instructions = [ } const tmp = document.createElement(\"div\"); tmp.id = \"created-by-browser-ui-test-to-get-clipboard-content-in-all-contexts\"; - tmp.style = \"height:2px;width:2px;position:static;\"; + tmp.style = \"height:2px;width:2px;position:static;z-index:1000000;left:0;top:0;\"; tmp.onclick = () => { tmp.clipboardContent = navigator.clipboard.readText(); }; diff --git a/tests/api-output/parseAssertClipboardFalse/basic-2.toml b/tests/api-output/parseAssertClipboardFalse/basic-2.toml index 5a0c2652..63cda849 100644 --- a/tests/api-output/parseAssertClipboardFalse/basic-2.toml +++ b/tests/api-output/parseAssertClipboardFalse/basic-2.toml @@ -6,7 +6,7 @@ instructions = [ } const tmp = document.createElement(\"div\"); tmp.id = \"created-by-browser-ui-test-to-get-clipboard-content-in-all-contexts\"; - tmp.style = \"height:2px;width:2px;position:static;\"; + tmp.style = \"height:2px;width:2px;position:static;z-index:1000000;left:0;top:0;\"; tmp.onclick = () => { tmp.clipboardContent = navigator.clipboard.readText(); }; diff --git a/tests/api-output/parseAssertClipboardFalse/basic-3.toml b/tests/api-output/parseAssertClipboardFalse/basic-3.toml index efc0fa86..ec7161f9 100644 --- a/tests/api-output/parseAssertClipboardFalse/basic-3.toml +++ b/tests/api-output/parseAssertClipboardFalse/basic-3.toml @@ -6,7 +6,7 @@ instructions = [ } const tmp = document.createElement(\"div\"); tmp.id = \"created-by-browser-ui-test-to-get-clipboard-content-in-all-contexts\"; - tmp.style = \"height:2px;width:2px;position:static;\"; + tmp.style = \"height:2px;width:2px;position:static;z-index:1000000;left:0;top:0;\"; tmp.onclick = () => { tmp.clipboardContent = navigator.clipboard.readText(); }; diff --git a/tests/api-output/parseAssertClipboardFalse/basic-4.toml b/tests/api-output/parseAssertClipboardFalse/basic-4.toml index efc0fa86..ec7161f9 100644 --- a/tests/api-output/parseAssertClipboardFalse/basic-4.toml +++ b/tests/api-output/parseAssertClipboardFalse/basic-4.toml @@ -6,7 +6,7 @@ instructions = [ } const tmp = document.createElement(\"div\"); tmp.id = \"created-by-browser-ui-test-to-get-clipboard-content-in-all-contexts\"; - tmp.style = \"height:2px;width:2px;position:static;\"; + tmp.style = \"height:2px;width:2px;position:static;z-index:1000000;left:0;top:0;\"; tmp.onclick = () => { tmp.clipboardContent = navigator.clipboard.readText(); }; diff --git a/tests/api-output/parseAssertDocumentProperty/basic-1.toml b/tests/api-output/parseAssertDocumentProperty/basic-1.toml index fb4ad3c0..20566bdf 100644 --- a/tests/api-output/parseAssertDocumentProperty/basic-1.toml +++ b/tests/api-output/parseAssertDocumentProperty/basic-1.toml @@ -35,7 +35,7 @@ instructions = [ return; } const prop = String(val); - if (prop !== parseAssertObjValue) { + if (prop != parseAssertObjValue) { nonMatchingProps.push(\"expected `\" + parseAssertObjValue + \"` for document property `\" + parseAssertObjKey + \"`, found `\" + prop + \"`\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseAssertDocumentProperty/basic-2.toml b/tests/api-output/parseAssertDocumentProperty/basic-2.toml index fb4ad3c0..20566bdf 100644 --- a/tests/api-output/parseAssertDocumentProperty/basic-2.toml +++ b/tests/api-output/parseAssertDocumentProperty/basic-2.toml @@ -35,7 +35,7 @@ instructions = [ return; } const prop = String(val); - if (prop !== parseAssertObjValue) { + if (prop != parseAssertObjValue) { nonMatchingProps.push(\"expected `\" + parseAssertObjValue + \"` for document property `\" + parseAssertObjKey + \"`, found `\" + prop + \"`\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseAssertDocumentProperty/null-2.toml b/tests/api-output/parseAssertDocumentProperty/null-2.toml index 2a757491..b69ed527 100644 --- a/tests/api-output/parseAssertDocumentProperty/null-2.toml +++ b/tests/api-output/parseAssertDocumentProperty/null-2.toml @@ -35,7 +35,7 @@ instructions = [ return; } const prop = String(val); - if (prop !== parseAssertObjValue) { + if (prop != parseAssertObjValue) { nonMatchingProps.push(\"expected `\" + parseAssertObjValue + \"` for document property `\" + parseAssertObjKey + \"`, found `\" + prop + \"`\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseAssertDocumentProperty/object-path-1.toml b/tests/api-output/parseAssertDocumentProperty/object-path-1.toml index 6c59a94b..38338eec 100644 --- a/tests/api-output/parseAssertDocumentProperty/object-path-1.toml +++ b/tests/api-output/parseAssertDocumentProperty/object-path-1.toml @@ -35,7 +35,7 @@ instructions = [ return; } const prop = String(val); - if (prop !== parseAssertObjValue) { + if (prop != parseAssertObjValue) { nonMatchingProps.push(\"expected `\" + parseAssertObjValue + \"` for document property `\" + parseAssertObjKey + \"`, found `\" + prop + \"`\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseAssertDocumentProperty/object-path-3.toml b/tests/api-output/parseAssertDocumentProperty/object-path-3.toml index 45de301a..808e9e4f 100644 --- a/tests/api-output/parseAssertDocumentProperty/object-path-3.toml +++ b/tests/api-output/parseAssertDocumentProperty/object-path-3.toml @@ -35,7 +35,7 @@ instructions = [ return; } const prop = String(val); - if (prop !== parseAssertObjValue) { + if (prop != parseAssertObjValue) { nonMatchingProps.push(\"expected `\" + parseAssertObjValue + \"` for document property `\" + parseAssertObjKey + \"`, found `\" + prop + \"`\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseAssertDocumentPropertyFalse/basic-1.toml b/tests/api-output/parseAssertDocumentPropertyFalse/basic-1.toml index 9ce80975..fd2801a5 100644 --- a/tests/api-output/parseAssertDocumentPropertyFalse/basic-1.toml +++ b/tests/api-output/parseAssertDocumentPropertyFalse/basic-1.toml @@ -36,7 +36,7 @@ instructions = [ return; } const prop = String(val); - if (prop === parseAssertObjValue) { + if (prop == parseAssertObjValue) { nonMatchingProps.push(\"assert didn't fail for document property `\" + parseAssertObjKey + \"` (`\" + prop + \"`)\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseAssertDocumentPropertyFalse/basic-2.toml b/tests/api-output/parseAssertDocumentPropertyFalse/basic-2.toml index 9ce80975..fd2801a5 100644 --- a/tests/api-output/parseAssertDocumentPropertyFalse/basic-2.toml +++ b/tests/api-output/parseAssertDocumentPropertyFalse/basic-2.toml @@ -36,7 +36,7 @@ instructions = [ return; } const prop = String(val); - if (prop === parseAssertObjValue) { + if (prop == parseAssertObjValue) { nonMatchingProps.push(\"assert didn't fail for document property `\" + parseAssertObjKey + \"` (`\" + prop + \"`)\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseAssertDocumentPropertyFalse/null-2.toml b/tests/api-output/parseAssertDocumentPropertyFalse/null-2.toml index 0ea452b3..8736e448 100644 --- a/tests/api-output/parseAssertDocumentPropertyFalse/null-2.toml +++ b/tests/api-output/parseAssertDocumentPropertyFalse/null-2.toml @@ -36,7 +36,7 @@ instructions = [ return; } const prop = String(val); - if (prop === parseAssertObjValue) { + if (prop == parseAssertObjValue) { nonMatchingProps.push(\"assert didn't fail for document property `\" + parseAssertObjKey + \"` (`\" + prop + \"`)\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseAssertDocumentPropertyFalse/object-path-1.toml b/tests/api-output/parseAssertDocumentPropertyFalse/object-path-1.toml index 064653e3..0c7f8322 100644 --- a/tests/api-output/parseAssertDocumentPropertyFalse/object-path-1.toml +++ b/tests/api-output/parseAssertDocumentPropertyFalse/object-path-1.toml @@ -36,7 +36,7 @@ instructions = [ return; } const prop = String(val); - if (prop === parseAssertObjValue) { + if (prop == parseAssertObjValue) { nonMatchingProps.push(\"assert didn't fail for document property `\" + parseAssertObjKey + \"` (`\" + prop + \"`)\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseAssertDocumentPropertyFalse/object-path-3.toml b/tests/api-output/parseAssertDocumentPropertyFalse/object-path-3.toml index a7c36c78..a63514b2 100644 --- a/tests/api-output/parseAssertDocumentPropertyFalse/object-path-3.toml +++ b/tests/api-output/parseAssertDocumentPropertyFalse/object-path-3.toml @@ -36,7 +36,7 @@ instructions = [ return; } const prop = String(val); - if (prop === parseAssertObjValue) { + if (prop == parseAssertObjValue) { nonMatchingProps.push(\"assert didn't fail for document property `\" + parseAssertObjKey + \"` (`\" + prop + \"`)\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseAssertProperty/basic-1.toml b/tests/api-output/parseAssertProperty/basic-1.toml index f1178dd4..0f12d354 100644 --- a/tests/api-output/parseAssertProperty/basic-1.toml +++ b/tests/api-output/parseAssertProperty/basic-1.toml @@ -37,7 +37,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop !== parseAssertElemPropValue) { + if (prop != parseAssertElemPropValue) { nonMatchingProps.push(\"expected `\" + parseAssertElemPropValue + \"` for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"`, found `\" + prop + \"`\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertProperty/basic-2.toml b/tests/api-output/parseAssertProperty/basic-2.toml index f52cbc3b..601c0d42 100644 --- a/tests/api-output/parseAssertProperty/basic-2.toml +++ b/tests/api-output/parseAssertProperty/basic-2.toml @@ -37,7 +37,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop !== parseAssertElemPropValue) { + if (prop != parseAssertElemPropValue) { nonMatchingProps.push(\"expected `\" + parseAssertElemPropValue + \"` for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"`, found `\" + prop + \"`\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertProperty/basic-3.toml b/tests/api-output/parseAssertProperty/basic-3.toml index 75234e90..62e24cd1 100644 --- a/tests/api-output/parseAssertProperty/basic-3.toml +++ b/tests/api-output/parseAssertProperty/basic-3.toml @@ -38,7 +38,7 @@ for (let i = 0, len = parseAssertElemProp.length; i < len; ++i) { return; } const prop = String(val); - if (prop !== parseAssertElemPropValue) { + if (prop != parseAssertElemPropValue) { nonMatchingProps.push(\"expected `\" + parseAssertElemPropValue + \"` for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"`, found `\" + prop + \"`\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertProperty/multiline-2.toml b/tests/api-output/parseAssertProperty/multiline-2.toml index 7ed29f8b..9ccd0a60 100644 --- a/tests/api-output/parseAssertProperty/multiline-2.toml +++ b/tests/api-output/parseAssertProperty/multiline-2.toml @@ -38,7 +38,7 @@ for (let i = 0, len = parseAssertElemProp.length; i < len; ++i) { return; } const prop = String(val); - if (prop !== parseAssertElemPropValue) { + if (prop != parseAssertElemPropValue) { nonMatchingProps.push(\"expected `\" + parseAssertElemPropValue + \"` for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"`, found `\" + prop + \"`\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertProperty/object-path-1.toml b/tests/api-output/parseAssertProperty/object-path-1.toml index 97e3e70f..1c22acd4 100644 --- a/tests/api-output/parseAssertProperty/object-path-1.toml +++ b/tests/api-output/parseAssertProperty/object-path-1.toml @@ -37,7 +37,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop !== parseAssertElemPropValue) { + if (prop != parseAssertElemPropValue) { nonMatchingProps.push(\"expected `\" + parseAssertElemPropValue + \"` for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"`, found `\" + prop + \"`\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertProperty/object-path-2.toml b/tests/api-output/parseAssertProperty/object-path-2.toml index 6b965bde..f997763b 100644 --- a/tests/api-output/parseAssertProperty/object-path-2.toml +++ b/tests/api-output/parseAssertProperty/object-path-2.toml @@ -38,7 +38,7 @@ for (let i = 0, len = parseAssertElemProp.length; i < len; ++i) { return; } const prop = String(val); - if (prop !== parseAssertElemPropValue) { + if (prop != parseAssertElemPropValue) { nonMatchingProps.push(\"expected `\" + parseAssertElemPropValue + \"` for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"`, found `\" + prop + \"`\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertProperty/pseudo-1.toml b/tests/api-output/parseAssertProperty/pseudo-1.toml index 093a2ce2..1bcdc9fb 100644 --- a/tests/api-output/parseAssertProperty/pseudo-1.toml +++ b/tests/api-output/parseAssertProperty/pseudo-1.toml @@ -37,7 +37,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop !== parseAssertElemPropValue) { + if (prop != parseAssertElemPropValue) { nonMatchingProps.push(\"expected `\" + parseAssertElemPropValue + \"` for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"`, found `\" + prop + \"`\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertProperty/pseudo-2.toml b/tests/api-output/parseAssertProperty/pseudo-2.toml index 6145ee0b..df24c597 100644 --- a/tests/api-output/parseAssertProperty/pseudo-2.toml +++ b/tests/api-output/parseAssertProperty/pseudo-2.toml @@ -38,7 +38,7 @@ for (let i = 0, len = parseAssertElemProp.length; i < len; ++i) { return; } const prop = String(val); - if (prop !== parseAssertElemPropValue) { + if (prop != parseAssertElemPropValue) { nonMatchingProps.push(\"expected `\" + parseAssertElemPropValue + \"` for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"`, found `\" + prop + \"`\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertProperty/pseudo-3.toml b/tests/api-output/parseAssertProperty/pseudo-3.toml index cd41badd..07da9886 100644 --- a/tests/api-output/parseAssertProperty/pseudo-3.toml +++ b/tests/api-output/parseAssertProperty/pseudo-3.toml @@ -37,7 +37,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop !== parseAssertElemPropValue) { + if (prop != parseAssertElemPropValue) { nonMatchingProps.push(\"expected `\" + parseAssertElemPropValue + \"` for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"`, found `\" + prop + \"`\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertProperty/pseudo-4.toml b/tests/api-output/parseAssertProperty/pseudo-4.toml index 3d1b5114..4b44aa08 100644 --- a/tests/api-output/parseAssertProperty/pseudo-4.toml +++ b/tests/api-output/parseAssertProperty/pseudo-4.toml @@ -38,7 +38,7 @@ for (let i = 0, len = parseAssertElemProp.length; i < len; ++i) { return; } const prop = String(val); - if (prop !== parseAssertElemPropValue) { + if (prop != parseAssertElemPropValue) { nonMatchingProps.push(\"expected `\" + parseAssertElemPropValue + \"` for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"`, found `\" + prop + \"`\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertProperty/pseudo-5.toml b/tests/api-output/parseAssertProperty/pseudo-5.toml index c93a21c2..3c6cc90b 100644 --- a/tests/api-output/parseAssertProperty/pseudo-5.toml +++ b/tests/api-output/parseAssertProperty/pseudo-5.toml @@ -37,7 +37,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop !== parseAssertElemPropValue) { + if (prop != parseAssertElemPropValue) { nonMatchingProps.push(\"expected `\" + parseAssertElemPropValue + \"` for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"`, found `\" + prop + \"`\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertProperty/pseudo-6.toml b/tests/api-output/parseAssertProperty/pseudo-6.toml index 1cfa1b6d..093fc91c 100644 --- a/tests/api-output/parseAssertProperty/pseudo-6.toml +++ b/tests/api-output/parseAssertProperty/pseudo-6.toml @@ -38,7 +38,7 @@ for (let i = 0, len = parseAssertElemProp.length; i < len; ++i) { return; } const prop = String(val); - if (prop !== parseAssertElemPropValue) { + if (prop != parseAssertElemPropValue) { nonMatchingProps.push(\"expected `\" + parseAssertElemPropValue + \"` for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"`, found `\" + prop + \"`\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertProperty/undef-1.toml b/tests/api-output/parseAssertProperty/undef-1.toml index 22752742..5ced460e 100644 --- a/tests/api-output/parseAssertProperty/undef-1.toml +++ b/tests/api-output/parseAssertProperty/undef-1.toml @@ -37,7 +37,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop !== parseAssertElemPropValue) { + if (prop != parseAssertElemPropValue) { nonMatchingProps.push(\"expected `\" + parseAssertElemPropValue + \"` for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"`, found `\" + prop + \"`\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertProperty/undef-3.toml b/tests/api-output/parseAssertProperty/undef-3.toml index f30e1fe3..07a84eaa 100644 --- a/tests/api-output/parseAssertProperty/undef-3.toml +++ b/tests/api-output/parseAssertProperty/undef-3.toml @@ -37,7 +37,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop !== parseAssertElemPropValue) { + if (prop != parseAssertElemPropValue) { nonMatchingProps.push(\"expected `\" + parseAssertElemPropValue + \"` for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"`, found `\" + prop + \"`\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertProperty/xpath-1.toml b/tests/api-output/parseAssertProperty/xpath-1.toml index 5046303b..f1ba8d6f 100644 --- a/tests/api-output/parseAssertProperty/xpath-1.toml +++ b/tests/api-output/parseAssertProperty/xpath-1.toml @@ -37,7 +37,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop !== parseAssertElemPropValue) { + if (prop != parseAssertElemPropValue) { nonMatchingProps.push(\"expected `\" + parseAssertElemPropValue + \"` for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"`, found `\" + prop + \"`\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertProperty/xpath-2.toml b/tests/api-output/parseAssertProperty/xpath-2.toml index 9b63bc93..82473bb7 100644 --- a/tests/api-output/parseAssertProperty/xpath-2.toml +++ b/tests/api-output/parseAssertProperty/xpath-2.toml @@ -37,7 +37,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop !== parseAssertElemPropValue) { + if (prop != parseAssertElemPropValue) { nonMatchingProps.push(\"expected `\" + parseAssertElemPropValue + \"` for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"`, found `\" + prop + \"`\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertProperty/xpath-3.toml b/tests/api-output/parseAssertProperty/xpath-3.toml index 7ed29f8b..9ccd0a60 100644 --- a/tests/api-output/parseAssertProperty/xpath-3.toml +++ b/tests/api-output/parseAssertProperty/xpath-3.toml @@ -38,7 +38,7 @@ for (let i = 0, len = parseAssertElemProp.length; i < len; ++i) { return; } const prop = String(val); - if (prop !== parseAssertElemPropValue) { + if (prop != parseAssertElemPropValue) { nonMatchingProps.push(\"expected `\" + parseAssertElemPropValue + \"` for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"`, found `\" + prop + \"`\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertPropertyFalse/basic-1.toml b/tests/api-output/parseAssertPropertyFalse/basic-1.toml index 137a096c..0e27e7d5 100644 --- a/tests/api-output/parseAssertPropertyFalse/basic-1.toml +++ b/tests/api-output/parseAssertPropertyFalse/basic-1.toml @@ -38,7 +38,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop === parseAssertElemPropValue) { + if (prop == parseAssertElemPropValue) { nonMatchingProps.push(\"assert didn't fail for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"` (`\" + prop + \"`)\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertPropertyFalse/basic-2.toml b/tests/api-output/parseAssertPropertyFalse/basic-2.toml index 1ddd46df..4ca143bb 100644 --- a/tests/api-output/parseAssertPropertyFalse/basic-2.toml +++ b/tests/api-output/parseAssertPropertyFalse/basic-2.toml @@ -38,7 +38,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop === parseAssertElemPropValue) { + if (prop == parseAssertElemPropValue) { nonMatchingProps.push(\"assert didn't fail for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"` (`\" + prop + \"`)\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertPropertyFalse/basic-3.toml b/tests/api-output/parseAssertPropertyFalse/basic-3.toml index f7bf85dc..fcc7fd1c 100644 --- a/tests/api-output/parseAssertPropertyFalse/basic-3.toml +++ b/tests/api-output/parseAssertPropertyFalse/basic-3.toml @@ -39,7 +39,7 @@ for (let i = 0, len = parseAssertElemProp.length; i < len; ++i) { return; } const prop = String(val); - if (prop === parseAssertElemPropValue) { + if (prop == parseAssertElemPropValue) { nonMatchingProps.push(\"assert didn't fail for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"` (`\" + prop + \"`)\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertPropertyFalse/multiline-2.toml b/tests/api-output/parseAssertPropertyFalse/multiline-2.toml index c9f2e597..cdbdf760 100644 --- a/tests/api-output/parseAssertPropertyFalse/multiline-2.toml +++ b/tests/api-output/parseAssertPropertyFalse/multiline-2.toml @@ -39,7 +39,7 @@ for (let i = 0, len = parseAssertElemProp.length; i < len; ++i) { return; } const prop = String(val); - if (prop === parseAssertElemPropValue) { + if (prop == parseAssertElemPropValue) { nonMatchingProps.push(\"assert didn't fail for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"` (`\" + prop + \"`)\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertPropertyFalse/object-path-1.toml b/tests/api-output/parseAssertPropertyFalse/object-path-1.toml index 3a1dd32d..0afd9e45 100644 --- a/tests/api-output/parseAssertPropertyFalse/object-path-1.toml +++ b/tests/api-output/parseAssertPropertyFalse/object-path-1.toml @@ -38,7 +38,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop === parseAssertElemPropValue) { + if (prop == parseAssertElemPropValue) { nonMatchingProps.push(\"assert didn't fail for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"` (`\" + prop + \"`)\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertPropertyFalse/object-path-2.toml b/tests/api-output/parseAssertPropertyFalse/object-path-2.toml index 4258b510..1d9be1f7 100644 --- a/tests/api-output/parseAssertPropertyFalse/object-path-2.toml +++ b/tests/api-output/parseAssertPropertyFalse/object-path-2.toml @@ -39,7 +39,7 @@ for (let i = 0, len = parseAssertElemProp.length; i < len; ++i) { return; } const prop = String(val); - if (prop === parseAssertElemPropValue) { + if (prop == parseAssertElemPropValue) { nonMatchingProps.push(\"assert didn't fail for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"` (`\" + prop + \"`)\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertPropertyFalse/pseudo-1.toml b/tests/api-output/parseAssertPropertyFalse/pseudo-1.toml index a7084275..d5553a3a 100644 --- a/tests/api-output/parseAssertPropertyFalse/pseudo-1.toml +++ b/tests/api-output/parseAssertPropertyFalse/pseudo-1.toml @@ -38,7 +38,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop === parseAssertElemPropValue) { + if (prop == parseAssertElemPropValue) { nonMatchingProps.push(\"assert didn't fail for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"` (`\" + prop + \"`)\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertPropertyFalse/pseudo-2.toml b/tests/api-output/parseAssertPropertyFalse/pseudo-2.toml index d6467518..9f21f7da 100644 --- a/tests/api-output/parseAssertPropertyFalse/pseudo-2.toml +++ b/tests/api-output/parseAssertPropertyFalse/pseudo-2.toml @@ -39,7 +39,7 @@ for (let i = 0, len = parseAssertElemProp.length; i < len; ++i) { return; } const prop = String(val); - if (prop === parseAssertElemPropValue) { + if (prop == parseAssertElemPropValue) { nonMatchingProps.push(\"assert didn't fail for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"` (`\" + prop + \"`)\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertPropertyFalse/pseudo-3.toml b/tests/api-output/parseAssertPropertyFalse/pseudo-3.toml index 116ae002..7f389f59 100644 --- a/tests/api-output/parseAssertPropertyFalse/pseudo-3.toml +++ b/tests/api-output/parseAssertPropertyFalse/pseudo-3.toml @@ -38,7 +38,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop === parseAssertElemPropValue) { + if (prop == parseAssertElemPropValue) { nonMatchingProps.push(\"assert didn't fail for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"` (`\" + prop + \"`)\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertPropertyFalse/pseudo-4.toml b/tests/api-output/parseAssertPropertyFalse/pseudo-4.toml index c669a2de..e14b1d0c 100644 --- a/tests/api-output/parseAssertPropertyFalse/pseudo-4.toml +++ b/tests/api-output/parseAssertPropertyFalse/pseudo-4.toml @@ -39,7 +39,7 @@ for (let i = 0, len = parseAssertElemProp.length; i < len; ++i) { return; } const prop = String(val); - if (prop === parseAssertElemPropValue) { + if (prop == parseAssertElemPropValue) { nonMatchingProps.push(\"assert didn't fail for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"` (`\" + prop + \"`)\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertPropertyFalse/pseudo-5.toml b/tests/api-output/parseAssertPropertyFalse/pseudo-5.toml index 79946ae5..11834ca8 100644 --- a/tests/api-output/parseAssertPropertyFalse/pseudo-5.toml +++ b/tests/api-output/parseAssertPropertyFalse/pseudo-5.toml @@ -38,7 +38,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop === parseAssertElemPropValue) { + if (prop == parseAssertElemPropValue) { nonMatchingProps.push(\"assert didn't fail for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"` (`\" + prop + \"`)\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertPropertyFalse/pseudo-6.toml b/tests/api-output/parseAssertPropertyFalse/pseudo-6.toml index 4e63c7b1..d68322db 100644 --- a/tests/api-output/parseAssertPropertyFalse/pseudo-6.toml +++ b/tests/api-output/parseAssertPropertyFalse/pseudo-6.toml @@ -39,7 +39,7 @@ for (let i = 0, len = parseAssertElemProp.length; i < len; ++i) { return; } const prop = String(val); - if (prop === parseAssertElemPropValue) { + if (prop == parseAssertElemPropValue) { nonMatchingProps.push(\"assert didn't fail for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"` (`\" + prop + \"`)\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertPropertyFalse/undef-1.toml b/tests/api-output/parseAssertPropertyFalse/undef-1.toml index 23ed9dcd..08386640 100644 --- a/tests/api-output/parseAssertPropertyFalse/undef-1.toml +++ b/tests/api-output/parseAssertPropertyFalse/undef-1.toml @@ -38,7 +38,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop === parseAssertElemPropValue) { + if (prop == parseAssertElemPropValue) { nonMatchingProps.push(\"assert didn't fail for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"` (`\" + prop + \"`)\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertPropertyFalse/undef-3.toml b/tests/api-output/parseAssertPropertyFalse/undef-3.toml index ad9b99ee..8e2e37b7 100644 --- a/tests/api-output/parseAssertPropertyFalse/undef-3.toml +++ b/tests/api-output/parseAssertPropertyFalse/undef-3.toml @@ -38,7 +38,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop === parseAssertElemPropValue) { + if (prop == parseAssertElemPropValue) { nonMatchingProps.push(\"assert didn't fail for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"` (`\" + prop + \"`)\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertPropertyFalse/xpath-1.toml b/tests/api-output/parseAssertPropertyFalse/xpath-1.toml index fb640c10..0b7a450f 100644 --- a/tests/api-output/parseAssertPropertyFalse/xpath-1.toml +++ b/tests/api-output/parseAssertPropertyFalse/xpath-1.toml @@ -38,7 +38,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop === parseAssertElemPropValue) { + if (prop == parseAssertElemPropValue) { nonMatchingProps.push(\"assert didn't fail for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"` (`\" + prop + \"`)\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertPropertyFalse/xpath-2.toml b/tests/api-output/parseAssertPropertyFalse/xpath-2.toml index b122c307..271e0dfb 100644 --- a/tests/api-output/parseAssertPropertyFalse/xpath-2.toml +++ b/tests/api-output/parseAssertPropertyFalse/xpath-2.toml @@ -38,7 +38,7 @@ await page.evaluate(e => { return; } const prop = String(val); - if (prop === parseAssertElemPropValue) { + if (prop == parseAssertElemPropValue) { nonMatchingProps.push(\"assert didn't fail for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"` (`\" + prop + \"`)\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertPropertyFalse/xpath-3.toml b/tests/api-output/parseAssertPropertyFalse/xpath-3.toml index c9f2e597..cdbdf760 100644 --- a/tests/api-output/parseAssertPropertyFalse/xpath-3.toml +++ b/tests/api-output/parseAssertPropertyFalse/xpath-3.toml @@ -39,7 +39,7 @@ for (let i = 0, len = parseAssertElemProp.length; i < len; ++i) { return; } const prop = String(val); - if (prop === parseAssertElemPropValue) { + if (prop == parseAssertElemPropValue) { nonMatchingProps.push(\"assert didn't fail for property `\" + parseAssertElemPropKey.map(p => `\"${p}\"`).join('.') + \"` (`\" + prop + \"`)\"); } }, parseAssertElemPropKey => { diff --git a/tests/api-output/parseAssertWindowProperty/basic-1.toml b/tests/api-output/parseAssertWindowProperty/basic-1.toml index 11ca29e8..10f4669d 100644 --- a/tests/api-output/parseAssertWindowProperty/basic-1.toml +++ b/tests/api-output/parseAssertWindowProperty/basic-1.toml @@ -35,7 +35,7 @@ instructions = [ return; } const prop = String(val); - if (prop !== parseAssertObjValue) { + if (prop != parseAssertObjValue) { nonMatchingProps.push(\"expected `\" + parseAssertObjValue + \"` for window property `\" + parseAssertObjKey + \"`, found `\" + prop + \"`\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseAssertWindowProperty/basic-2.toml b/tests/api-output/parseAssertWindowProperty/basic-2.toml index 11ca29e8..10f4669d 100644 --- a/tests/api-output/parseAssertWindowProperty/basic-2.toml +++ b/tests/api-output/parseAssertWindowProperty/basic-2.toml @@ -35,7 +35,7 @@ instructions = [ return; } const prop = String(val); - if (prop !== parseAssertObjValue) { + if (prop != parseAssertObjValue) { nonMatchingProps.push(\"expected `\" + parseAssertObjValue + \"` for window property `\" + parseAssertObjKey + \"`, found `\" + prop + \"`\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseAssertWindowProperty/null-2.toml b/tests/api-output/parseAssertWindowProperty/null-2.toml index 475b47da..d29167ae 100644 --- a/tests/api-output/parseAssertWindowProperty/null-2.toml +++ b/tests/api-output/parseAssertWindowProperty/null-2.toml @@ -35,7 +35,7 @@ instructions = [ return; } const prop = String(val); - if (prop !== parseAssertObjValue) { + if (prop != parseAssertObjValue) { nonMatchingProps.push(\"expected `\" + parseAssertObjValue + \"` for window property `\" + parseAssertObjKey + \"`, found `\" + prop + \"`\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseAssertWindowProperty/object-path-1.toml b/tests/api-output/parseAssertWindowProperty/object-path-1.toml index 04006cec..d19f5e78 100644 --- a/tests/api-output/parseAssertWindowProperty/object-path-1.toml +++ b/tests/api-output/parseAssertWindowProperty/object-path-1.toml @@ -35,7 +35,7 @@ instructions = [ return; } const prop = String(val); - if (prop !== parseAssertObjValue) { + if (prop != parseAssertObjValue) { nonMatchingProps.push(\"expected `\" + parseAssertObjValue + \"` for window property `\" + parseAssertObjKey + \"`, found `\" + prop + \"`\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseAssertWindowProperty/object-path-3.toml b/tests/api-output/parseAssertWindowProperty/object-path-3.toml index de0ed966..ba065ea3 100644 --- a/tests/api-output/parseAssertWindowProperty/object-path-3.toml +++ b/tests/api-output/parseAssertWindowProperty/object-path-3.toml @@ -35,7 +35,7 @@ instructions = [ return; } const prop = String(val); - if (prop !== parseAssertObjValue) { + if (prop != parseAssertObjValue) { nonMatchingProps.push(\"expected `\" + parseAssertObjValue + \"` for window property `\" + parseAssertObjKey + \"`, found `\" + prop + \"`\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseAssertWindowPropertyFalse/basic-1.toml b/tests/api-output/parseAssertWindowPropertyFalse/basic-1.toml index 20ae845f..7b19e042 100644 --- a/tests/api-output/parseAssertWindowPropertyFalse/basic-1.toml +++ b/tests/api-output/parseAssertWindowPropertyFalse/basic-1.toml @@ -36,7 +36,7 @@ instructions = [ return; } const prop = String(val); - if (prop === parseAssertObjValue) { + if (prop == parseAssertObjValue) { nonMatchingProps.push(\"assert didn't fail for window property `\" + parseAssertObjKey + \"` (`\" + prop + \"`)\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseAssertWindowPropertyFalse/basic-2.toml b/tests/api-output/parseAssertWindowPropertyFalse/basic-2.toml index 20ae845f..7b19e042 100644 --- a/tests/api-output/parseAssertWindowPropertyFalse/basic-2.toml +++ b/tests/api-output/parseAssertWindowPropertyFalse/basic-2.toml @@ -36,7 +36,7 @@ instructions = [ return; } const prop = String(val); - if (prop === parseAssertObjValue) { + if (prop == parseAssertObjValue) { nonMatchingProps.push(\"assert didn't fail for window property `\" + parseAssertObjKey + \"` (`\" + prop + \"`)\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseAssertWindowPropertyFalse/null-2.toml b/tests/api-output/parseAssertWindowPropertyFalse/null-2.toml index 10ae0987..15a247ad 100644 --- a/tests/api-output/parseAssertWindowPropertyFalse/null-2.toml +++ b/tests/api-output/parseAssertWindowPropertyFalse/null-2.toml @@ -36,7 +36,7 @@ instructions = [ return; } const prop = String(val); - if (prop === parseAssertObjValue) { + if (prop == parseAssertObjValue) { nonMatchingProps.push(\"assert didn't fail for window property `\" + parseAssertObjKey + \"` (`\" + prop + \"`)\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseAssertWindowPropertyFalse/object-path-1.toml b/tests/api-output/parseAssertWindowPropertyFalse/object-path-1.toml index 18a753e1..d00f263e 100644 --- a/tests/api-output/parseAssertWindowPropertyFalse/object-path-1.toml +++ b/tests/api-output/parseAssertWindowPropertyFalse/object-path-1.toml @@ -36,7 +36,7 @@ instructions = [ return; } const prop = String(val); - if (prop === parseAssertObjValue) { + if (prop == parseAssertObjValue) { nonMatchingProps.push(\"assert didn't fail for window property `\" + parseAssertObjKey + \"` (`\" + prop + \"`)\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseAssertWindowPropertyFalse/object-path-3.toml b/tests/api-output/parseAssertWindowPropertyFalse/object-path-3.toml index 5f94c5f5..751bbd34 100644 --- a/tests/api-output/parseAssertWindowPropertyFalse/object-path-3.toml +++ b/tests/api-output/parseAssertWindowPropertyFalse/object-path-3.toml @@ -36,7 +36,7 @@ instructions = [ return; } const prop = String(val); - if (prop === parseAssertObjValue) { + if (prop == parseAssertObjValue) { nonMatchingProps.push(\"assert didn't fail for window property `\" + parseAssertObjKey + \"` (`\" + prop + \"`)\"); } }, parseAssertObjKey => { diff --git a/tests/api-output/parseStoreClipboard/basic-1.toml b/tests/api-output/parseStoreClipboard/basic-1.toml index 5c9cf66a..3030b86d 100644 --- a/tests/api-output/parseStoreClipboard/basic-1.toml +++ b/tests/api-output/parseStoreClipboard/basic-1.toml @@ -6,7 +6,7 @@ instructions = [ } const tmp = document.createElement(\"div\"); tmp.id = \"created-by-browser-ui-test-to-get-clipboard-content-in-all-contexts\"; - tmp.style = \"height:2px;width:2px;position:static;\"; + tmp.style = \"height:2px;width:2px;position:static;z-index:1000000;left:0;top:0;\"; tmp.onclick = () => { tmp.clipboardContent = navigator.clipboard.readText(); }; diff --git a/tests/api-output/parseWaitForAttribute/basic-1.toml b/tests/api-output/parseWaitForAttribute/basic-1.toml index ed11b3e8..be47fdf8 100644 --- a/tests/api-output/parseWaitForAttribute/basic-1.toml +++ b/tests/api-output/parseWaitForAttribute/basic-1.toml @@ -17,7 +17,7 @@ instructions = [ continue; } const attr = e.getAttribute(parseWaitForAttrKey); - if (attr !== parseWaitForAttrValue) { + if (attr != parseWaitForAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseWaitForAttrValue + \"` for attribute `\" + parseWaitForAttrKey + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseWaitForAttribute/basic-2.toml b/tests/api-output/parseWaitForAttribute/basic-2.toml index fdf525e5..f8e28e6d 100644 --- a/tests/api-output/parseWaitForAttribute/basic-2.toml +++ b/tests/api-output/parseWaitForAttribute/basic-2.toml @@ -17,7 +17,7 @@ instructions = [ continue; } const attr = e.getAttribute(parseWaitForAttrKey); - if (attr !== parseWaitForAttrValue) { + if (attr != parseWaitForAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseWaitForAttrValue + \"` for attribute `\" + parseWaitForAttrKey + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseWaitForAttribute/basic-3.toml b/tests/api-output/parseWaitForAttribute/basic-3.toml index 73d19142..46eea038 100644 --- a/tests/api-output/parseWaitForAttribute/basic-3.toml +++ b/tests/api-output/parseWaitForAttribute/basic-3.toml @@ -17,7 +17,7 @@ instructions = [ continue; } const attr = e.getAttribute(parseWaitForAttrKey); - if (attr !== parseWaitForAttrValue) { + if (attr != parseWaitForAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseWaitForAttrValue + \"` for attribute `\" + parseWaitForAttrKey + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseWaitForAttribute/color-1.toml b/tests/api-output/parseWaitForAttribute/color-1.toml index b8f15779..ed8461c0 100644 --- a/tests/api-output/parseWaitForAttribute/color-1.toml +++ b/tests/api-output/parseWaitForAttribute/color-1.toml @@ -17,7 +17,7 @@ instructions = [ continue; } const attr = e.getAttribute(parseWaitForAttrKey); - if (attr !== parseWaitForAttrValue) { + if (attr != parseWaitForAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseWaitForAttrValue + \"` for attribute `\" + parseWaitForAttrKey + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseWaitForAttribute/extra-1.toml b/tests/api-output/parseWaitForAttribute/extra-1.toml index 7af705b5..9b2a7e35 100644 --- a/tests/api-output/parseWaitForAttribute/extra-1.toml +++ b/tests/api-output/parseWaitForAttribute/extra-1.toml @@ -17,7 +17,7 @@ instructions = [ continue; } const attr = e.getAttribute(parseWaitForAttrKey); - if (attr !== parseWaitForAttrValue) { + if (attr != parseWaitForAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseWaitForAttrValue + \"` for attribute `\" + parseWaitForAttrKey + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseWaitForAttribute/null-1.toml b/tests/api-output/parseWaitForAttribute/null-1.toml index 398871ac..0c50505e 100644 --- a/tests/api-output/parseWaitForAttribute/null-1.toml +++ b/tests/api-output/parseWaitForAttribute/null-1.toml @@ -17,7 +17,7 @@ instructions = [ continue; } const attr = e.getAttribute(parseWaitForAttrKey); - if (attr !== parseWaitForAttrValue) { + if (attr != parseWaitForAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseWaitForAttrValue + \"` for attribute `\" + parseWaitForAttrKey + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseWaitForAttribute/pseudo-1.toml b/tests/api-output/parseWaitForAttribute/pseudo-1.toml index 7a967674..7268777c 100644 --- a/tests/api-output/parseWaitForAttribute/pseudo-1.toml +++ b/tests/api-output/parseWaitForAttribute/pseudo-1.toml @@ -17,7 +17,7 @@ instructions = [ continue; } const attr = e.getAttribute(parseWaitForAttrKey); - if (attr !== parseWaitForAttrValue) { + if (attr != parseWaitForAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseWaitForAttrValue + \"` for attribute `\" + parseWaitForAttrKey + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseWaitForAttribute/xpath-2.toml b/tests/api-output/parseWaitForAttribute/xpath-2.toml index 2d4fb10f..847e08f8 100644 --- a/tests/api-output/parseWaitForAttribute/xpath-2.toml +++ b/tests/api-output/parseWaitForAttribute/xpath-2.toml @@ -17,7 +17,7 @@ instructions = [ continue; } const attr = e.getAttribute(parseWaitForAttrKey); - if (attr !== parseWaitForAttrValue) { + if (attr != parseWaitForAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseWaitForAttrValue + \"` for attribute `\" + parseWaitForAttrKey + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseWaitForAttribute/xpath-3.toml b/tests/api-output/parseWaitForAttribute/xpath-3.toml index ec770860..cd01f2a6 100644 --- a/tests/api-output/parseWaitForAttribute/xpath-3.toml +++ b/tests/api-output/parseWaitForAttribute/xpath-3.toml @@ -17,7 +17,7 @@ instructions = [ continue; } const attr = e.getAttribute(parseWaitForAttrKey); - if (attr !== parseWaitForAttrValue) { + if (attr != parseWaitForAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseWaitForAttrValue + \"` for attribute `\" + parseWaitForAttrKey + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseWaitForAttributeFalse/basic-1.toml b/tests/api-output/parseWaitForAttributeFalse/basic-1.toml index 22726fd4..9817338b 100644 --- a/tests/api-output/parseWaitForAttributeFalse/basic-1.toml +++ b/tests/api-output/parseWaitForAttributeFalse/basic-1.toml @@ -17,7 +17,7 @@ instructions = [ continue; } const attr = e.getAttribute(parseWaitForAttrKey); - if (attr !== parseWaitForAttrValue) { + if (attr != parseWaitForAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseWaitForAttrValue + \"` for attribute `\" + parseWaitForAttrKey + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseWaitForAttributeFalse/basic-2.toml b/tests/api-output/parseWaitForAttributeFalse/basic-2.toml index 95781c30..f9477052 100644 --- a/tests/api-output/parseWaitForAttributeFalse/basic-2.toml +++ b/tests/api-output/parseWaitForAttributeFalse/basic-2.toml @@ -17,7 +17,7 @@ instructions = [ continue; } const attr = e.getAttribute(parseWaitForAttrKey); - if (attr !== parseWaitForAttrValue) { + if (attr != parseWaitForAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseWaitForAttrValue + \"` for attribute `\" + parseWaitForAttrKey + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseWaitForAttributeFalse/basic-3.toml b/tests/api-output/parseWaitForAttributeFalse/basic-3.toml index cb5d4800..e1f4addd 100644 --- a/tests/api-output/parseWaitForAttributeFalse/basic-3.toml +++ b/tests/api-output/parseWaitForAttributeFalse/basic-3.toml @@ -17,7 +17,7 @@ instructions = [ continue; } const attr = e.getAttribute(parseWaitForAttrKey); - if (attr !== parseWaitForAttrValue) { + if (attr != parseWaitForAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseWaitForAttrValue + \"` for attribute `\" + parseWaitForAttrKey + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseWaitForAttributeFalse/color-1.toml b/tests/api-output/parseWaitForAttributeFalse/color-1.toml index 90232a60..f7199574 100644 --- a/tests/api-output/parseWaitForAttributeFalse/color-1.toml +++ b/tests/api-output/parseWaitForAttributeFalse/color-1.toml @@ -17,7 +17,7 @@ instructions = [ continue; } const attr = e.getAttribute(parseWaitForAttrKey); - if (attr !== parseWaitForAttrValue) { + if (attr != parseWaitForAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseWaitForAttrValue + \"` for attribute `\" + parseWaitForAttrKey + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseWaitForAttributeFalse/extra-1.toml b/tests/api-output/parseWaitForAttributeFalse/extra-1.toml index a089a662..425d888a 100644 --- a/tests/api-output/parseWaitForAttributeFalse/extra-1.toml +++ b/tests/api-output/parseWaitForAttributeFalse/extra-1.toml @@ -17,7 +17,7 @@ instructions = [ continue; } const attr = e.getAttribute(parseWaitForAttrKey); - if (attr !== parseWaitForAttrValue) { + if (attr != parseWaitForAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseWaitForAttrValue + \"` for attribute `\" + parseWaitForAttrKey + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseWaitForAttributeFalse/null-1.toml b/tests/api-output/parseWaitForAttributeFalse/null-1.toml index d3b39b74..73beefa8 100644 --- a/tests/api-output/parseWaitForAttributeFalse/null-1.toml +++ b/tests/api-output/parseWaitForAttributeFalse/null-1.toml @@ -17,7 +17,7 @@ instructions = [ continue; } const attr = e.getAttribute(parseWaitForAttrKey); - if (attr !== parseWaitForAttrValue) { + if (attr != parseWaitForAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseWaitForAttrValue + \"` for attribute `\" + parseWaitForAttrKey + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseWaitForAttributeFalse/pseudo-1.toml b/tests/api-output/parseWaitForAttributeFalse/pseudo-1.toml index c89b3053..fae654e0 100644 --- a/tests/api-output/parseWaitForAttributeFalse/pseudo-1.toml +++ b/tests/api-output/parseWaitForAttributeFalse/pseudo-1.toml @@ -17,7 +17,7 @@ instructions = [ continue; } const attr = e.getAttribute(parseWaitForAttrKey); - if (attr !== parseWaitForAttrValue) { + if (attr != parseWaitForAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseWaitForAttrValue + \"` for attribute `\" + parseWaitForAttrKey + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseWaitForAttributeFalse/xpath-2.toml b/tests/api-output/parseWaitForAttributeFalse/xpath-2.toml index 305f5356..1f270432 100644 --- a/tests/api-output/parseWaitForAttributeFalse/xpath-2.toml +++ b/tests/api-output/parseWaitForAttributeFalse/xpath-2.toml @@ -17,7 +17,7 @@ instructions = [ continue; } const attr = e.getAttribute(parseWaitForAttrKey); - if (attr !== parseWaitForAttrValue) { + if (attr != parseWaitForAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseWaitForAttrValue + \"` for attribute `\" + parseWaitForAttrKey + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseWaitForAttributeFalse/xpath-3.toml b/tests/api-output/parseWaitForAttributeFalse/xpath-3.toml index acc06d9a..271e63c8 100644 --- a/tests/api-output/parseWaitForAttributeFalse/xpath-3.toml +++ b/tests/api-output/parseWaitForAttributeFalse/xpath-3.toml @@ -17,7 +17,7 @@ instructions = [ continue; } const attr = e.getAttribute(parseWaitForAttrKey); - if (attr !== parseWaitForAttrValue) { + if (attr != parseWaitForAttrValue) { nonMatchingAttrs.push(\"expected `\" + parseWaitForAttrValue + \"` for attribute `\" + parseWaitForAttrKey + \"`, found `\" + attr + \"`\"); } } diff --git a/tests/api-output/parseWaitForClipboard/basic-1.toml b/tests/api-output/parseWaitForClipboard/basic-1.toml index 4d1a7c39..5610bbea 100644 --- a/tests/api-output/parseWaitForClipboard/basic-1.toml +++ b/tests/api-output/parseWaitForClipboard/basic-1.toml @@ -6,7 +6,7 @@ instructions = [ } const tmp = document.createElement(\"div\"); tmp.id = \"created-by-browser-ui-test-to-get-clipboard-content-in-all-contexts\"; - tmp.style = \"height:2px;width:2px;position:static;\"; + tmp.style = \"height:2px;width:2px;position:static;z-index:1000000;left:0;top:0;\"; tmp.onclick = () => { tmp.clipboardContent = navigator.clipboard.readText(); }; diff --git a/tests/api-output/parseWaitForClipboard/basic-2.toml b/tests/api-output/parseWaitForClipboard/basic-2.toml index 4d1a7c39..5610bbea 100644 --- a/tests/api-output/parseWaitForClipboard/basic-2.toml +++ b/tests/api-output/parseWaitForClipboard/basic-2.toml @@ -6,7 +6,7 @@ instructions = [ } const tmp = document.createElement(\"div\"); tmp.id = \"created-by-browser-ui-test-to-get-clipboard-content-in-all-contexts\"; - tmp.style = \"height:2px;width:2px;position:static;\"; + tmp.style = \"height:2px;width:2px;position:static;z-index:1000000;left:0;top:0;\"; tmp.onclick = () => { tmp.clipboardContent = navigator.clipboard.readText(); }; diff --git a/tests/api-output/parseWaitForClipboard/basic-3.toml b/tests/api-output/parseWaitForClipboard/basic-3.toml index ab62f157..a48e8dda 100644 --- a/tests/api-output/parseWaitForClipboard/basic-3.toml +++ b/tests/api-output/parseWaitForClipboard/basic-3.toml @@ -6,7 +6,7 @@ instructions = [ } const tmp = document.createElement(\"div\"); tmp.id = \"created-by-browser-ui-test-to-get-clipboard-content-in-all-contexts\"; - tmp.style = \"height:2px;width:2px;position:static;\"; + tmp.style = \"height:2px;width:2px;position:static;z-index:1000000;left:0;top:0;\"; tmp.onclick = () => { tmp.clipboardContent = navigator.clipboard.readText(); }; diff --git a/tests/api-output/parseWaitForClipboard/basic-4.toml b/tests/api-output/parseWaitForClipboard/basic-4.toml index ab62f157..a48e8dda 100644 --- a/tests/api-output/parseWaitForClipboard/basic-4.toml +++ b/tests/api-output/parseWaitForClipboard/basic-4.toml @@ -6,7 +6,7 @@ instructions = [ } const tmp = document.createElement(\"div\"); tmp.id = \"created-by-browser-ui-test-to-get-clipboard-content-in-all-contexts\"; - tmp.style = \"height:2px;width:2px;position:static;\"; + tmp.style = \"height:2px;width:2px;position:static;z-index:1000000;left:0;top:0;\"; tmp.onclick = () => { tmp.clipboardContent = navigator.clipboard.readText(); }; diff --git a/tests/api-output/parseWaitForClipboardFalse/basic-1.toml b/tests/api-output/parseWaitForClipboardFalse/basic-1.toml index e276380a..7be6b387 100644 --- a/tests/api-output/parseWaitForClipboardFalse/basic-1.toml +++ b/tests/api-output/parseWaitForClipboardFalse/basic-1.toml @@ -6,7 +6,7 @@ instructions = [ } const tmp = document.createElement(\"div\"); tmp.id = \"created-by-browser-ui-test-to-get-clipboard-content-in-all-contexts\"; - tmp.style = \"height:2px;width:2px;position:static;\"; + tmp.style = \"height:2px;width:2px;position:static;z-index:1000000;left:0;top:0;\"; tmp.onclick = () => { tmp.clipboardContent = navigator.clipboard.readText(); }; @@ -25,7 +25,7 @@ while (true) { if (elemText === value) { errors.push(\"`\" + elemText + \"` is equal to `\" + value + \"`\"); } - if (errors.length !== 0) { + if (errors.length === 0) { break; } const err = errors.join(\", \"); diff --git a/tests/api-output/parseWaitForClipboardFalse/basic-2.toml b/tests/api-output/parseWaitForClipboardFalse/basic-2.toml index e276380a..7be6b387 100644 --- a/tests/api-output/parseWaitForClipboardFalse/basic-2.toml +++ b/tests/api-output/parseWaitForClipboardFalse/basic-2.toml @@ -6,7 +6,7 @@ instructions = [ } const tmp = document.createElement(\"div\"); tmp.id = \"created-by-browser-ui-test-to-get-clipboard-content-in-all-contexts\"; - tmp.style = \"height:2px;width:2px;position:static;\"; + tmp.style = \"height:2px;width:2px;position:static;z-index:1000000;left:0;top:0;\"; tmp.onclick = () => { tmp.clipboardContent = navigator.clipboard.readText(); }; @@ -25,7 +25,7 @@ while (true) { if (elemText === value) { errors.push(\"`\" + elemText + \"` is equal to `\" + value + \"`\"); } - if (errors.length !== 0) { + if (errors.length === 0) { break; } const err = errors.join(\", \"); diff --git a/tests/api-output/parseWaitForClipboardFalse/basic-3.toml b/tests/api-output/parseWaitForClipboardFalse/basic-3.toml index 877478cd..2fda307b 100644 --- a/tests/api-output/parseWaitForClipboardFalse/basic-3.toml +++ b/tests/api-output/parseWaitForClipboardFalse/basic-3.toml @@ -6,7 +6,7 @@ instructions = [ } const tmp = document.createElement(\"div\"); tmp.id = \"created-by-browser-ui-test-to-get-clipboard-content-in-all-contexts\"; - tmp.style = \"height:2px;width:2px;position:static;\"; + tmp.style = \"height:2px;width:2px;position:static;z-index:1000000;left:0;top:0;\"; tmp.onclick = () => { tmp.clipboardContent = navigator.clipboard.readText(); }; @@ -25,7 +25,7 @@ while (true) { if (elemText.includes(value)) { errors.push(\"`\" + elemText + \"` contains `\" + value + \"` (for CONTAINS check)\"); } - if (errors.length !== 0) { + if (errors.length === 0) { break; } const err = errors.join(\", \"); diff --git a/tests/api-output/parseWaitForClipboardFalse/basic-4.toml b/tests/api-output/parseWaitForClipboardFalse/basic-4.toml index 877478cd..2fda307b 100644 --- a/tests/api-output/parseWaitForClipboardFalse/basic-4.toml +++ b/tests/api-output/parseWaitForClipboardFalse/basic-4.toml @@ -6,7 +6,7 @@ instructions = [ } const tmp = document.createElement(\"div\"); tmp.id = \"created-by-browser-ui-test-to-get-clipboard-content-in-all-contexts\"; - tmp.style = \"height:2px;width:2px;position:static;\"; + tmp.style = \"height:2px;width:2px;position:static;z-index:1000000;left:0;top:0;\"; tmp.onclick = () => { tmp.clipboardContent = navigator.clipboard.readText(); }; @@ -25,7 +25,7 @@ while (true) { if (elemText.includes(value)) { errors.push(\"`\" + elemText + \"` contains `\" + value + \"` (for CONTAINS check)\"); } - if (errors.length !== 0) { + if (errors.length === 0) { break; } const err = errors.join(\", \"); diff --git a/tests/api-output/parseWaitForDocumentProperty/basic-3.toml b/tests/api-output/parseWaitForDocumentProperty/basic-3.toml index 5011c42f..58d47146 100644 --- a/tests/api-output/parseWaitForDocumentProperty/basic-3.toml +++ b/tests/api-output/parseWaitForDocumentProperty/basic-3.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for document property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForDocumentProperty/basic-4.toml b/tests/api-output/parseWaitForDocumentProperty/basic-4.toml index 5011c42f..58d47146 100644 --- a/tests/api-output/parseWaitForDocumentProperty/basic-4.toml +++ b/tests/api-output/parseWaitForDocumentProperty/basic-4.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for document property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForDocumentProperty/basic-6.toml b/tests/api-output/parseWaitForDocumentProperty/basic-6.toml index 88038b08..f1fe5d51 100644 --- a/tests/api-output/parseWaitForDocumentProperty/basic-6.toml +++ b/tests/api-output/parseWaitForDocumentProperty/basic-6.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for document property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForDocumentProperty/basic-7.toml b/tests/api-output/parseWaitForDocumentProperty/basic-7.toml index 6c8279e6..41ea894b 100644 --- a/tests/api-output/parseWaitForDocumentProperty/basic-7.toml +++ b/tests/api-output/parseWaitForDocumentProperty/basic-7.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for document property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForDocumentProperty/object-path-1.toml b/tests/api-output/parseWaitForDocumentProperty/object-path-1.toml index faaad845..1256992a 100644 --- a/tests/api-output/parseWaitForDocumentProperty/object-path-1.toml +++ b/tests/api-output/parseWaitForDocumentProperty/object-path-1.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for document property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForDocumentProperty/object-path-2.toml b/tests/api-output/parseWaitForDocumentProperty/object-path-2.toml index 708af85c..b857c2c5 100644 --- a/tests/api-output/parseWaitForDocumentProperty/object-path-2.toml +++ b/tests/api-output/parseWaitForDocumentProperty/object-path-2.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for document property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForDocumentPropertyFalse/basic-3.toml b/tests/api-output/parseWaitForDocumentPropertyFalse/basic-3.toml index 43793aec..a1ea7e13 100644 --- a/tests/api-output/parseWaitForDocumentPropertyFalse/basic-3.toml +++ b/tests/api-output/parseWaitForDocumentPropertyFalse/basic-3.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for document property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForDocumentPropertyFalse/basic-4.toml b/tests/api-output/parseWaitForDocumentPropertyFalse/basic-4.toml index 43793aec..a1ea7e13 100644 --- a/tests/api-output/parseWaitForDocumentPropertyFalse/basic-4.toml +++ b/tests/api-output/parseWaitForDocumentPropertyFalse/basic-4.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for document property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForDocumentPropertyFalse/basic-6.toml b/tests/api-output/parseWaitForDocumentPropertyFalse/basic-6.toml index 42a4c960..02159af7 100644 --- a/tests/api-output/parseWaitForDocumentPropertyFalse/basic-6.toml +++ b/tests/api-output/parseWaitForDocumentPropertyFalse/basic-6.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for document property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForDocumentPropertyFalse/basic-7.toml b/tests/api-output/parseWaitForDocumentPropertyFalse/basic-7.toml index ad06cca7..b16347b0 100644 --- a/tests/api-output/parseWaitForDocumentPropertyFalse/basic-7.toml +++ b/tests/api-output/parseWaitForDocumentPropertyFalse/basic-7.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for document property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForDocumentPropertyFalse/object-path-1.toml b/tests/api-output/parseWaitForDocumentPropertyFalse/object-path-1.toml index 12db00b5..0fa8dde3 100644 --- a/tests/api-output/parseWaitForDocumentPropertyFalse/object-path-1.toml +++ b/tests/api-output/parseWaitForDocumentPropertyFalse/object-path-1.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for document property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForDocumentPropertyFalse/object-path-2.toml b/tests/api-output/parseWaitForDocumentPropertyFalse/object-path-2.toml index 715c1eeb..3f4c91b6 100644 --- a/tests/api-output/parseWaitForDocumentPropertyFalse/object-path-2.toml +++ b/tests/api-output/parseWaitForDocumentPropertyFalse/object-path-2.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for document property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForProperty/basic-1.toml b/tests/api-output/parseWaitForProperty/basic-1.toml index 55458164..e8553ad8 100644 --- a/tests/api-output/parseWaitForProperty/basic-1.toml +++ b/tests/api-output/parseWaitForProperty/basic-1.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForProperty/basic-2.toml b/tests/api-output/parseWaitForProperty/basic-2.toml index 6c36d2f5..907df8c5 100644 --- a/tests/api-output/parseWaitForProperty/basic-2.toml +++ b/tests/api-output/parseWaitForProperty/basic-2.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForProperty/basic-3.toml b/tests/api-output/parseWaitForProperty/basic-3.toml index d2659ced..ee0f5145 100644 --- a/tests/api-output/parseWaitForProperty/basic-3.toml +++ b/tests/api-output/parseWaitForProperty/basic-3.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForProperty/color-1.toml b/tests/api-output/parseWaitForProperty/color-1.toml index 5634105e..4f8aa57c 100644 --- a/tests/api-output/parseWaitForProperty/color-1.toml +++ b/tests/api-output/parseWaitForProperty/color-1.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForProperty/extra-1.toml b/tests/api-output/parseWaitForProperty/extra-1.toml index 324bb79f..60e6987a 100644 --- a/tests/api-output/parseWaitForProperty/extra-1.toml +++ b/tests/api-output/parseWaitForProperty/extra-1.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForProperty/object-path-1.toml b/tests/api-output/parseWaitForProperty/object-path-1.toml index d12e51f5..ec3082eb 100644 --- a/tests/api-output/parseWaitForProperty/object-path-1.toml +++ b/tests/api-output/parseWaitForProperty/object-path-1.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForProperty/object-path-2.toml b/tests/api-output/parseWaitForProperty/object-path-2.toml index 3b52d082..af4982c5 100644 --- a/tests/api-output/parseWaitForProperty/object-path-2.toml +++ b/tests/api-output/parseWaitForProperty/object-path-2.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForProperty/pseudo-1.toml b/tests/api-output/parseWaitForProperty/pseudo-1.toml index a57a82db..70b652b5 100644 --- a/tests/api-output/parseWaitForProperty/pseudo-1.toml +++ b/tests/api-output/parseWaitForProperty/pseudo-1.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForProperty/xpath-2.toml b/tests/api-output/parseWaitForProperty/xpath-2.toml index d0aa794f..54544f32 100644 --- a/tests/api-output/parseWaitForProperty/xpath-2.toml +++ b/tests/api-output/parseWaitForProperty/xpath-2.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForProperty/xpath-3.toml b/tests/api-output/parseWaitForProperty/xpath-3.toml index 72c67e60..f9a15376 100644 --- a/tests/api-output/parseWaitForProperty/xpath-3.toml +++ b/tests/api-output/parseWaitForProperty/xpath-3.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForPropertyFalse/basic-1.toml b/tests/api-output/parseWaitForPropertyFalse/basic-1.toml index 702eaa61..4c51df92 100644 --- a/tests/api-output/parseWaitForPropertyFalse/basic-1.toml +++ b/tests/api-output/parseWaitForPropertyFalse/basic-1.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForPropertyFalse/basic-2.toml b/tests/api-output/parseWaitForPropertyFalse/basic-2.toml index 586b6ac4..7e40c574 100644 --- a/tests/api-output/parseWaitForPropertyFalse/basic-2.toml +++ b/tests/api-output/parseWaitForPropertyFalse/basic-2.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForPropertyFalse/basic-3.toml b/tests/api-output/parseWaitForPropertyFalse/basic-3.toml index fee11822..78d6e45a 100644 --- a/tests/api-output/parseWaitForPropertyFalse/basic-3.toml +++ b/tests/api-output/parseWaitForPropertyFalse/basic-3.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForPropertyFalse/color-1.toml b/tests/api-output/parseWaitForPropertyFalse/color-1.toml index cdc468c4..b3e8aa5d 100644 --- a/tests/api-output/parseWaitForPropertyFalse/color-1.toml +++ b/tests/api-output/parseWaitForPropertyFalse/color-1.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForPropertyFalse/extra-1.toml b/tests/api-output/parseWaitForPropertyFalse/extra-1.toml index 19669d8b..65a9afe4 100644 --- a/tests/api-output/parseWaitForPropertyFalse/extra-1.toml +++ b/tests/api-output/parseWaitForPropertyFalse/extra-1.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForPropertyFalse/object-path-1.toml b/tests/api-output/parseWaitForPropertyFalse/object-path-1.toml index c1a8640e..30d58659 100644 --- a/tests/api-output/parseWaitForPropertyFalse/object-path-1.toml +++ b/tests/api-output/parseWaitForPropertyFalse/object-path-1.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForPropertyFalse/object-path-2.toml b/tests/api-output/parseWaitForPropertyFalse/object-path-2.toml index 7c1dab12..a6b60073 100644 --- a/tests/api-output/parseWaitForPropertyFalse/object-path-2.toml +++ b/tests/api-output/parseWaitForPropertyFalse/object-path-2.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForPropertyFalse/pseudo-1.toml b/tests/api-output/parseWaitForPropertyFalse/pseudo-1.toml index 3dcdc82d..6613f699 100644 --- a/tests/api-output/parseWaitForPropertyFalse/pseudo-1.toml +++ b/tests/api-output/parseWaitForPropertyFalse/pseudo-1.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForPropertyFalse/xpath-2.toml b/tests/api-output/parseWaitForPropertyFalse/xpath-2.toml index 1d5c70a4..4db902e5 100644 --- a/tests/api-output/parseWaitForPropertyFalse/xpath-2.toml +++ b/tests/api-output/parseWaitForPropertyFalse/xpath-2.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForPropertyFalse/xpath-3.toml b/tests/api-output/parseWaitForPropertyFalse/xpath-3.toml index 116de696..e28132db 100644 --- a/tests/api-output/parseWaitForPropertyFalse/xpath-3.toml +++ b/tests/api-output/parseWaitForPropertyFalse/xpath-3.toml @@ -35,7 +35,7 @@ instructions = [ nonMatchingProps.push(\"Property `\" + p + \"` doesn't exist\"); return; } - if (val !== parseWaitForPropValue) { + if (val != parseWaitForPropValue) { nonMatchingProps.push(\"expected `\" + parseWaitForPropValue + \"` for property `\" + parseWaitForPropKey + \"`, found `\" + val + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForWindowProperty/basic-3.toml b/tests/api-output/parseWaitForWindowProperty/basic-3.toml index 5e04bb05..97262862 100644 --- a/tests/api-output/parseWaitForWindowProperty/basic-3.toml +++ b/tests/api-output/parseWaitForWindowProperty/basic-3.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for window property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForWindowProperty/basic-4.toml b/tests/api-output/parseWaitForWindowProperty/basic-4.toml index 5e04bb05..97262862 100644 --- a/tests/api-output/parseWaitForWindowProperty/basic-4.toml +++ b/tests/api-output/parseWaitForWindowProperty/basic-4.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for window property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForWindowProperty/basic-6.toml b/tests/api-output/parseWaitForWindowProperty/basic-6.toml index c5b5d6d2..4df66949 100644 --- a/tests/api-output/parseWaitForWindowProperty/basic-6.toml +++ b/tests/api-output/parseWaitForWindowProperty/basic-6.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for window property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForWindowProperty/basic-7.toml b/tests/api-output/parseWaitForWindowProperty/basic-7.toml index 345ffc25..3def2246 100644 --- a/tests/api-output/parseWaitForWindowProperty/basic-7.toml +++ b/tests/api-output/parseWaitForWindowProperty/basic-7.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for window property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForWindowProperty/object-path-1.toml b/tests/api-output/parseWaitForWindowProperty/object-path-1.toml index ecfc1b5b..02664804 100644 --- a/tests/api-output/parseWaitForWindowProperty/object-path-1.toml +++ b/tests/api-output/parseWaitForWindowProperty/object-path-1.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for window property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForWindowProperty/object-path-2.toml b/tests/api-output/parseWaitForWindowProperty/object-path-2.toml index d34a13cc..611bf615 100644 --- a/tests/api-output/parseWaitForWindowProperty/object-path-2.toml +++ b/tests/api-output/parseWaitForWindowProperty/object-path-2.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for window property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForWindowPropertyFalse/basic-3.toml b/tests/api-output/parseWaitForWindowPropertyFalse/basic-3.toml index 9345c549..de22091b 100644 --- a/tests/api-output/parseWaitForWindowPropertyFalse/basic-3.toml +++ b/tests/api-output/parseWaitForWindowPropertyFalse/basic-3.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for window property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForWindowPropertyFalse/basic-4.toml b/tests/api-output/parseWaitForWindowPropertyFalse/basic-4.toml index 9345c549..de22091b 100644 --- a/tests/api-output/parseWaitForWindowPropertyFalse/basic-4.toml +++ b/tests/api-output/parseWaitForWindowPropertyFalse/basic-4.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for window property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForWindowPropertyFalse/basic-6.toml b/tests/api-output/parseWaitForWindowPropertyFalse/basic-6.toml index a22d9652..3d95a89a 100644 --- a/tests/api-output/parseWaitForWindowPropertyFalse/basic-6.toml +++ b/tests/api-output/parseWaitForWindowPropertyFalse/basic-6.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for window property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForWindowPropertyFalse/basic-7.toml b/tests/api-output/parseWaitForWindowPropertyFalse/basic-7.toml index e1dda8b3..6e2c673a 100644 --- a/tests/api-output/parseWaitForWindowPropertyFalse/basic-7.toml +++ b/tests/api-output/parseWaitForWindowPropertyFalse/basic-7.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for window property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForWindowPropertyFalse/object-path-1.toml b/tests/api-output/parseWaitForWindowPropertyFalse/object-path-1.toml index 050a8ce4..0a8326d1 100644 --- a/tests/api-output/parseWaitForWindowPropertyFalse/object-path-1.toml +++ b/tests/api-output/parseWaitForWindowPropertyFalse/object-path-1.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for window property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/api-output/parseWaitForWindowPropertyFalse/object-path-2.toml b/tests/api-output/parseWaitForWindowPropertyFalse/object-path-2.toml index a3b8d974..7b1f5b93 100644 --- a/tests/api-output/parseWaitForWindowPropertyFalse/object-path-2.toml +++ b/tests/api-output/parseWaitForWindowPropertyFalse/object-path-2.toml @@ -38,7 +38,7 @@ while (true) { return; } const property = String(val); - if (property !== propertyValue) { + if (property != propertyValue) { errors.push(\"expected `\" + propertyValue + \"` for window property `\" + propertyKey + \"`, found `\" + property + \"`\"); } }, _notFound => { diff --git a/tests/ui/wait-for-property-3.goml b/tests/ui/wait-for-property-3.goml index 1dce2dc8..10f93405 100644 --- a/tests/ui/wait-for-property-3.goml +++ b/tests/ui/wait-for-property-3.goml @@ -3,4 +3,4 @@ go-to: "file://" + |CURRENT_DIR| + "/" + |DOC_PATH| + "/elements.html" set-timeout: 500 // Try a property with a different type. // This should give a failure, not an internal error. -wait-for-property: ("html", {"offsetLeft": "0"}) +wait-for-property: ("html", {"offsetLeft": "a"}) diff --git a/tests/ui/wait-for-property-3.output b/tests/ui/wait-for-property-3.output index b35a8073..22200ffd 100644 --- a/tests/ui/wait-for-property-3.output +++ b/tests/ui/wait-for-property-3.output @@ -1,7 +1,7 @@ => Starting doc-ui tests... wait-for-property-3... FAILED -[ERROR] `tests/ui/wait-for-property-3.goml` line 6: Error: The following properties still don't match: [expected `0` for property `offsetLeft`, found `0`]: for command `wait-for-property: ("html", {"offsetLeft": "0"})` +[ERROR] `tests/ui/wait-for-property-3.goml` line 6: Error: The following properties still don't match: [expected `a` for property `offsetLeft`, found `0`]: for command `wait-for-property: ("html", {"offsetLeft": "a"})` <= doc-ui tests done: 0 succeeded, 1 failed \ No newline at end of file diff --git a/tests/ui/wait-for-property.goml b/tests/ui/wait-for-property.goml index c187117f..7e099d6d 100644 --- a/tests/ui/wait-for-property.goml +++ b/tests/ui/wait-for-property.goml @@ -21,9 +21,3 @@ wait-for-property: ("#js-wait-prop2", {"toto"."z": 78}) wait-for-property: ("#js-wait-prop", {"data-a": "c"}) // Check that the script won't run anything after the previous command failed. assert-property: ("#js-wait-prop", {"data-a": "c"}) - -// object-path -assert-property: ("#js-wait-prop2", {"toto"."z": null}) -click: "#js-create-elem2" -// Should wait for 100ms here. -wait-for-property: ("#js-wait-prop2", {"toto"."z": 78}) diff --git a/tests/ui/wait-for-property.output b/tests/ui/wait-for-property.output index 18fc2880..cebba30e 100644 --- a/tests/ui/wait-for-property.output +++ b/tests/ui/wait-for-property.output @@ -1,7 +1,7 @@ => Starting doc-ui tests... wait-for-property... FAILED -[ERROR] `tests/ui/wait-for-property.goml` line 18: Error: The following properties still don't match: [expected `78` for property `toto,z`, found `78`]: for command `wait-for-property: ("#js-wait-prop2", {"toto"."z": 78})` +[ERROR] `tests/ui/wait-for-property.goml` line 21: Error: The following properties still don't match: [Property `"data-a"` doesn't exist]: for command `wait-for-property: ("#js-wait-prop", {"data-a": "c"})` <= doc-ui tests done: 0 succeeded, 1 failed \ No newline at end of file