-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add Functional Tests for FlatList Component #14768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: anupriya13 <54227869+anupriya13@users.noreply.github.com>
@copilot run |
I've run |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
@@ -126,4 +126,66 @@ describe('FlatList Tests', () => { | |||
const dump = await dumpVisualTree('flatlist-nested'); | |||
expect(dump).toMatchSnapshot(); | |||
}); | |||
|
|||
// Functional tests for fast refresh scenarios |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot delete line 130
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 130 deleted as requested in commit e9802a1.
Co-authored-by: chiaramooney <34109996+chiaramooney@users.noreply.github.com>
This PR adds comprehensive functional tests for the FlatList component to validate core functionality that developers typically verify during fast refresh workflows.
Added Tests
The following functional tests have been implemented:
Implementation Details
All tests follow the established E2E testing patterns:
searchBox()
andgoToFlatListExample()
dumpVisualTree()
for snapshot testing to capture UI stateThe tests leverage existing FlatList examples from RNTester including:
Testing Coverage
These tests provide comprehensive coverage of FlatList functionality that would be validated during development with fast refresh, ensuring:
Fixes #12473.