Microsoft/react-native-windows

Add Functional Tests for TextInput Component

Open

#12.458 geöffnet am 29. Nov. 2023

Auf GitHub ansehen
 (1 Kommentar) (1 Reaktion) (1 zugewiesene Person)C# (544 Forks)batch import
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] TextInput should be editable when editable set to true.
- [ ] TextInput should not be editable when editable set to false.
- [ ] TextInput should take up to max length input when maxLength set.
- [ ] TextInput input should wrap to mulitple lines when multiline set to true.
- [ ] TextInput should trigger action upon onBlur.
- [ ] TextInput should trigger action upon onChange.
- [x] TextInput should trigger action upon onChangeText.
- [ ] TextInput should trigger action upon onPressIn.
- [ ] TextInput should trigger action upon onPressOut.
- [ ] TextInput should trigger action upon onFocus.
- [ ] TextInput should trigger action upon onScroll.
- [ ] TextInput should trigger action upon onSelectionChange.
- [ ] TextInput placeholder text should update upon fast refresh.
- [ ] TextInput placeholder text color should update upon fast refresh.
- [ ] TextInput should not be editable when readOnly set to true.
- [x] TextInput should be editable when readOnly set to false.
- [ ] TextInput textAlign should change upon fast refresh.
- [ ] TextInput style should change upon fast refresh.
- [ ] TextInput should focus upon .focus() call.
- [ ] TextInput should lose focus upon .blur() call.
- [ ] TextInput text should clear upon clear() all.
- [ ] TextInput isFocused() should return true when the TextInput is focused.
- [ ] TextInput isFocused() should return false when the TextInput is not focused.
- [x] TextInput value prop should be the text displayed in the TextInput
- [x] TextInput should autocapitalize characters when autoCapitalize="characters"

Contributor Guide