A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/microsoft/react-native-windows/issues/11422 below:

E2E testing for Fabric · Issue #11422 · microsoft/react-native-windows · GitHub

E2E Testing for Fabric Architecture

(last updated December 2023)
This is the meta issue capturing the effort of adding E2E testing for the new Fabric architecture.

Current Testing Status

Number of Automated Tests for Fabric: 280

Current Test Coverage Progress

Here are links to the issues we have created to track our progress of adding tests. To see the components, props, and app scenarios that currently have automated tests, click on the links below. Visual Tests describe the set of tests which capture how components are being rendered on the screen. Functional Tests describe the set of tests which capture component/app behavior such as press events, focus changes, etc. Accessibility Tests describe the set of tests which capture accessibility behavior such as narrator and keyboard navigation as well as validate a component's UIA tree.
Visuals Test Coverage: #11343
Functional Test Coverage: #12031
Accessibility Test Coverage: need to add link

Test Progress by Component: Priority Component Tests Available Test Coverage (includes Visual, Functional, and Accessibility) Links 0 Button ✅ 74% (17/23) Functional Test Coverage: #12459 Visual Test Coverage: #11198 0 FlatList ✅ 31% (26/84) Functional Test Coverage: #12473 Visual Test Coverage: #11277 0 Pressable ✅ 54% (51/94) Functional Test Coverage: #12461 Visual Test Coverage: #11295 0 View ✅ 51% (37/73) Functional Test Coverage: #12468 Visual Test Coverage: #11313 0 Text ✅ 54% (50/93) Functional Test Coverage: #12464 Visual Test Coverage: #11299 0 TouchableHighlight ✅ 31% (27/86) Functional Test Coverage: #12465 Visual Test Coverage: #11310 0 TouchableOpacity ✅ 31% (25/80) Functional Test Coverage: #12466 Visual Test Coverage: #11311 0 TouchableWithoutFeedback ✅ 29% (23/80) Functional Test Coverage: #12467 Visual Test Coverage: #11312 0 Image ✅ 97% (77/79) Visual Test Coverage: #11281 0 TextInput ✅ 47% (46/97) Functional Test Coverage: #12458 Visual Test Coverage: #11309 1 ScrollView ✅ 17% (21/126) Functional Test Coverage: #12462 Visual Test Coverage: #11297 1 Modal 🟥 0% (0/0) Can't add tests. Need more infrastructure to support handling multiple windows. 1 Switch ✅ 47% (21/45) Functional Test Coverage: #12463, Visual Test Coverage: #11298 2 ActivityIndicator ✅ 21% (15/71) Visual Test Coverage #12914 2 RefreshControl 🟥 0% (0/0) Supported Types of Testing

Here is the list of types of testing that we plan to support in the E2E test app on Fabric. Test types marked with the green checkmark (✅) currently have infrastructure support and samples available in main.

For more information on how to add tests to E2E test app for Fabric, take a look at our documentation (insert documentation once created)

Priority Test Type Infrastructure Available 0 Dump Composition tree for a control. (Current properties tracked include size, offset, opacity, testid, and brush color) ✅ 0 Dump UIA (Accessibility) tree for a control. (Current properties tracked include AutomationId, ControlType, HelpText, IsEnabled, IsKeyboardFocusable, LocalizedControlType, and Name) ✅ 0 Collect Jest Snapshot tests for a component or page. ✅ 0 Functional tests which use WebDriver IO's setValue/getValue(). ✅ 0 Functional tests which use WebDriver IO's click(). ✅ 1 Functional tests which run fast refresh scenarios. 🟥 1 Functional tests which run onHover scenarios. ✅ 1 Functional tests which test 'pressed' state for controls. 🟥 1 Screenshot comparison tests. 🟥 Testing Milestones

Below are descriptions for the testing milestones that we have identified for the new architecture. We are currently working on the TM3 milestone.

TM0 - "Base Setup" ✅ TM1 - "Bast Testing Infrastructure" ✅ TM2 - "Test Infrastructure Parity" ✅ TM3 - "Bonus Infrastructure" (Current Milestone In Progress) TM4 - "Testing Parity" TM5 - "100% Coverage" Testing Tasklist Milstone Category Description Status TM0 E2E Testing Determine project structure for E2E testing for Fabric (i.e. separate app or reuse existing, directory structure). Completed TM0 E2E Testing Create RNW app using Fabric architecture to be used as E2E test app for Fabric. #11407 TM0 E2E Testing Fill contents of E2E test app with RNTester. #11407 TM0 E2E Testing Add Jest configuration to E2E test app. Ensure control test can run successfully. #11944 TM0 E2E Testing Add Jest Snapshot Testing for RNTester Sample Pages #11944 TM0 Linting Ensure Fabric code is passing through linting checks. TM1 E2ETesting Add support for enabling the AutomationClient. #12037 TM1 E2E Testing Implement findElementbyId logic. Test correctness by toggling between Component and API tabs. #12052 TM1 E2E Testing Implement search for a particular component page logic. Test correctness by navigating to the Button page. #12052 TM1 E2E Testing Implement which visits all pages. #12052 TM1 Native Build Testing Add native build tests to CI. #12037 TM2 E2E Testing Implement Composition tree dump logic. Test correctness using app home page. #12322 TM2 CLI Testing Add CLI tests to CI. #12183 TM2 E2E Testing Implement test which dumps contents of each component page and matches page to stored snapshot. #11944 TM2 E2E Testing Implement mouse click tests. TM2 E2E Testing Implement Legacy tests. #12845 TM3 E2E Testing Implement functional testing of components (More granular tasks to come). #12031 TM3 Template Testing Add template tests to CI. #12376 TM4 E2E Testing Implement accessibility testing of components (More granular tasks to come). #12031 TM4 Community Module Testing Create a build of React Native Gallery on Fabric. Decide if both copies should exist and be published separately, or if migrating from one to the other is preferred.
### Tasks
- [x] Determine project structure for E2E testing for Fabric (i.e. separate app or reuse existing, directory structure).
- [ ] #11407
- [ ] https://github.com/microsoft/react-native-windows/pull/11944
- [ ] Ensure Fabric code is passing through linting checks.
- [ ] #12037
- [ ] #12052
- [x] Implement Composition tree dump logic. Test correctness using app home page.
- [x] Add CLI tests to CI
- [x] Implement test which dumps contents of each component page and matches page to stored snapshot.
- [ ] Implement mouse click tests.
- [ ] #12031
- [x] Add template tests to CI.
- [ ] Implement accessibility testing of components (More granular tasks to come).
- [ ] Create a build of React Native Gallery on Fabric. Decide if both copies should exist and be published separately, or if migrating from one to the other is preferred.
- [ ] https://github.com/microsoft/react-native-windows/issues/8609
- [ ] https://github.com/microsoft/react-native-windows/issues/13235
- [ ] https://github.com/microsoft/react-native-windows/issues/13236
- [ ] https://github.com/microsoft/react-native-windows/issues/13237
- [ ] https://github.com/microsoft/react-native-windows/issues/13238
- [ ] https://github.com/microsoft/react-native-windows/issues/11102

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4