Comments (10)
@rssfrncsrenishaw I have released a new version (3.0.0) that should support your issue. The breaking changes are that addTestcafeTestingLibrary has been removed in favor of clientScripts which is now supported in testcafe 1.4.x.
To test this, you will need to update to testcafe 1.4.x (if you haven't already) and then do npm i -D @testing-library/testcafe@next
see the docs here: https://testing-library.com/docs/testcafe-testing-library/intro#for-v3x-requires-testcafe-140-or-greater
from testcafe-testing-library.
Interestingly if I manually add after the reload it works...
await t.eval(() => location.reload(true));
await addTestcafeTestingLibrary(t)
await t
.expect(getAllByTestId("foo")).ok()
This is not ideal.
from testcafe-testing-library.
Thanks for reporting! I will look into this
from testcafe-testing-library.
I posted it on stackoverflow and was told to look into https://devexpress.github.io/testcafe/documentation/using-testcafe/common-concepts/inject-scripts-into-tested-pages.html
from testcafe-testing-library.
Yes they just added that feature. The fix will probably involve that
from testcafe-testing-library.
@rssfrncsrenishaw feel free to give this issue a 👍 as it will help fix your problem cleanly. :)
from testcafe-testing-library.
nice work!
from testcafe-testing-library.
Does that mean it works for you? 🙂
from testcafe-testing-library.
Unable to upgrade to 1.4.X at the moment so can't test it...
from testcafe-testing-library.
ok, well I added a test for your use case and the new client script injection should fix this, so closing for now, but if you do run into issues again feel free to reopen.
Fixed in https://github.com/testing-library/testcafe-testing-library/releases/tag/v3.0.0%40next
from testcafe-testing-library.
Related Issues (20)
- Does testcafe-testing-library support IE11 HOT 3
- add theinterned HOT 2
- testcafe useRoles are broken on 4.0.1 and 4.1.0 HOT 8
- testcafe-testing-library breaks TestCafe's testController.navigateTo function. HOT 5
- Error: TypeScript compilation failed. HOT 4
- TypeError: Cannot read property 'destUrl' of null HOT 7
- Type Error: Argument of type '{ name: string; }' is not assignable to parameter of type 'MatcherOptions'. HOT 5
- findBy/findByAll not working with within HOT 6
- Error: Cannot call method 'getByPlaceholderText' of undefined HOT 3
- Wait function not working as expected after testing-library-dom update HOT 1
- Allow configurable debug print size with DEBUG_PRINT_LIMIT env var HOT 3
- Property 'exists' does not exist on type 'NodeSnapshot'. HOT 1
- Support ClientFunctions for findByRole's name option HOT 1
- Unable to use any of the selectors from @testing-library/testcafe in testcafe tests HOT 1
- Error: Cannot call method 'queryByRole' of undefined(experimentalProxyless: true)
- FindAll, getAll, queryAll do not return arrays when used on table elements
- Text is not normalized according to testing-library's normalization documentation
- The automated release is failing 🚨
- Unpredictable assertion behaviour in highly async application HOT 6
- findByTestId doesn't work HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testcafe-testing-library.