Microsoft/react-native-windows

Add Functional Tests for Switch Component

Aberta

#12.463 aberto em 29 de nov. de 2023

 (1 comentário) (0 reação) (0 responsável)C++ (1.134 forks)batch import
Area: FabricArea: TestsNew ArchitectureWorkstream: Test Coverageenhancementgood first issue

Métricas do repositório

Stars
 (16.129 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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

Guia do colaborador