Microsoft/react-native-windows

Add Functional Tests for Pressable Component

開放

#12,461 建立於 2023年11月29日

 (1 則留言) (1 個反應) (1 位負責人)C++ (1,134 個分叉)batch import
Area: FabricArea: PressableArea: TestsNew ArchitectureWorkstream: Test Coverageenhancementgood first issue

倉庫指標

星標
 (16,129 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Test cases should be added to the E2E test app (Fabric) to validate the following functionality scenarios.

### Tasks
- [ ] Pressable should update border styling upon fast refresh.
- [ ] Pressable should update children upon fast refresh.
- [ ] Pressable should update disabled styling upon fast refresh.
- [x] Pressable should update applicable styling upon hover.
- [x] Pressable should update applicable styling upon press.
- [x] Pressable should perform action upon press.
- [x] Pressable should be able to track number of clicks.
- [x] Pressable should perform action upon onPressIn.
- [x] Pressable should perform action upon onPressOut.
- [ ] Pressable should perform action upon onLongPress.
- [x] Pressable should not perform action upon press when disabled.
- [ ] Pressable behavior should change upon delayLongPress adjustment.
- [ ] Pressable should register onPress action when hit within hitSlop range.

貢獻者指南