-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Labels
Description
I can not use within
query because it throw an exception as see bellow:
1) SyntaxError: missing ) after argument list Browser: Firefox 66.0.0 / Linux 0.0.0 44 | return DomTestingLibrary.${queryName}(document.body, ...arguments); 45 | `)); 46 |}); 47 | 48 |const within = async sel => { > 49 | await (0, _testcafe.ClientFunction)(new Function(` 50 | const elem = document.querySelector("${sel}"); 51 | window.TestCafeTestingLibrary["within_${sel}"] = DomTestingLibrary.within(elem); 52 | 53 | `))(); 54 | const container = {}; at within (/home/user/contact-list/node_modules/testcafe-testing-library/dist/index.js:49:39) at (/home/user/contact-list/tests/testcafe/test.spec.js:47:58) at step (/home/user/contact-list/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30) at (/home/user/contact-list/node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13) at $$testcafe_test_run$$ZaCadmd6U$$ (/home/user/contact-list/node_modules/testcafe/src/api/test-run-tracker.js:76:16) at $$testcafe_test_run$$ZaCadmd6U$$ (/home/user/contact-list/node_modules/testcafe/src/api/test-run-tracker.js:76:16) 1/1 failed (8s)
Reproduce error with this repository: https://github.com/leosuncin/contact-list/tree/testcafe-testing-library_issue-15
Other Info:
testcafe-testing-library: 1.1.1
testcafe: 1.1.4
OS: Manjaro Linux 4.19
Node: 11.14.0
Firefox: 66.0.5
Chrome: 76.0.3783