Comments (6)
@vanGalilea similar issue has been already solved. See issue #1540 for details and PR #1543 for fix (released in v12.4.2)
from react-native-testing-library.
Note, we might need to update the doc you linked to.
from react-native-testing-library.
@mdjastrzebski let me know how this can be fixed and I'd raise a PR, I wanna start somewhere 😅
from react-native-testing-library.
Note, we might need to update the doc you linked to.
I'll raise a PR to update the docs 👍🏻
from react-native-testing-library.
@mdjastrzebski I see that you removed the Flatlist
examples in this commit I've raised this pr #1551 for the time being.
Though I still haven't find a way testing whether onEndReached
is being called after simulating a scroll to bottom.
from react-native-testing-library.
@vanGalilea you can try calling fireEvent(element, 'endReached')
. It should raise onEndReached
event on a FlatList
. You might need to experiment with proper event payload though.
from react-native-testing-library.
Related Issues (20)
- *ByText cannot find text in React fragments when passed into the rendered element as a child component HOT 4
- [renderHook] Passing rerender props to the wrapper HOT 9
- Test fails due to Redux Persist migrate Option HOT 1
- DOC: Improving use cases with best practice approaches HOT 3
- Update ByRole queries to only accept roles HOT 8
- Formik, React Native, undefined events, and timeouts awaiting async act. HOT 5
- Typescript fails in `extend-expect.d.ts` HOT 9
- `fireEvent.scroll` doesn't update the FlatList's render window on React Native 0.73 HOT 7
- [Docs] Update page about host elements after v12 release HOT 1
- [react native 0.73] - require does not work HOT 4
- How to verify that element has no children (alternatively, render result is `null`'ish) HOT 15
- snapshot name not applied to the snap file
- Unexpected token 'export' HOT 11
- Invariant Violation: __fbBatchedBridgeConfig is not set, cannot invoke native modules HOT 5
- TypeError: expect(...).toHaveDisplayValue is not a function HOT 4
- GetByLabel and aria-labelledby HOT 2
- Unexpected element not found when adding accessibilityElementsHidden or importantForAccessibility HOT 3
- Incorrect automatic cleanup order HOT 2
- Why are accessibilty elements only text, textInput, and switch? HOT 13
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 react-native-testing-library.