Microsoft/react-native-windows
Auf GitHub ansehenAdd Functional Tests for Switch Component
Open
#12.463 geöffnet am 29. Nov. 2023
Area: FabricArea: TestsNew ArchitectureWorkstream: Test Coverageenhancementgood first issue
Repository-Metriken
- Stars
- (6.114 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 4T 14h) (45 gemergte PRs in 30 T)
Beschreibung
Test cases should be added to the E2E test app (Fabric) to validate the following functionality scenarios.
### Tasks
- [x] Switch should not toggle when disabled.
- [ ] Switch should fire onChange action when toggled.
- [ ] Switch should fire onValueChange action when toggled.
- [ ] Switch thumbColor should update upon fast refresh.
- [ ] Switch trackColor should change upon fast refresh.
- [ ] Switch trackColor should not change upon hover.
- [x] Switch value should match Switch visuals.
- [x] Switch visuals should change upon toggle (on -> off).
- [x] Switch visuals should change upon toggle (off -> on).