Microsoft/react-native-windows

Add Functional Tests for Switch Component

Open

#12.463 aperta il 29 nov 2023

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)C# (544 fork)batch import
Area: FabricArea: TestsNew ArchitectureWorkstream: Test Coverageenhancementgood first issue

Metriche repository

Star
 (6114 star)
Metriche merge PR
 (Merge medio 4g 14h) (45 PR mergiate in 30 g)

Descrizione

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).

Guida contributor