@fluentui-react-native/tester 0.126.11 → 0.126.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/CHANGELOG.json +31 -1
  2. package/CHANGELOG.md +18 -2
  3. package/lib/fluent-tester/src/FluentTester.d.ts.map +1 -1
  4. package/lib/fluent-tester/src/FluentTester.js +8 -9
  5. package/lib/fluent-tester/src/FluentTester.js.map +1 -1
  6. package/lib/fluent-tester/src/TestComponents/Avatar/E2EAvatarTest.d.ts.map +1 -1
  7. package/lib/fluent-tester/src/TestComponents/Avatar/E2EAvatarTest.js +4 -2
  8. package/lib/fluent-tester/src/TestComponents/Avatar/E2EAvatarTest.js.map +1 -1
  9. package/lib/fluent-tester/src/TestComponents/Badge/E2EBadgeTest.d.ts.map +1 -1
  10. package/lib/fluent-tester/src/TestComponents/Badge/E2EBadgeTest.js +8 -2
  11. package/lib/fluent-tester/src/TestComponents/Badge/E2EBadgeTest.js.map +1 -1
  12. package/lib/fluent-tester/src/TestComponents/Button/E2EButtonTest.d.ts.map +1 -1
  13. package/lib/fluent-tester/src/TestComponents/Button/E2EButtonTest.js +10 -7
  14. package/lib/fluent-tester/src/TestComponents/Button/E2EButtonTest.js.map +1 -1
  15. package/lib/fluent-tester/src/TestComponents/Button/deprecated/E2EButtonTest.d.ts.map +1 -1
  16. package/lib/fluent-tester/src/TestComponents/Button/deprecated/E2EButtonTest.js +7 -3
  17. package/lib/fluent-tester/src/TestComponents/Button/deprecated/E2EButtonTest.js.map +1 -1
  18. package/lib/fluent-tester/src/TestComponents/Callout/CalloutE2ETest.d.ts.map +1 -1
  19. package/lib/fluent-tester/src/TestComponents/Callout/CalloutE2ETest.js +3 -2
  20. package/lib/fluent-tester/src/TestComponents/Callout/CalloutE2ETest.js.map +1 -1
  21. package/lib/fluent-tester/src/TestComponents/Checkbox/CheckboxE2ETest.d.ts.map +1 -1
  22. package/lib/fluent-tester/src/TestComponents/Checkbox/CheckboxE2ETest.js +5 -3
  23. package/lib/fluent-tester/src/TestComponents/Checkbox/CheckboxE2ETest.js.map +1 -1
  24. package/lib/fluent-tester/src/TestComponents/CheckboxExperimental/E2ECheckboxExperimentalTest.d.ts.map +1 -1
  25. package/lib/fluent-tester/src/TestComponents/CheckboxExperimental/E2ECheckboxExperimentalTest.js +7 -3
  26. package/lib/fluent-tester/src/TestComponents/CheckboxExperimental/E2ECheckboxExperimentalTest.js.map +1 -1
  27. package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.d.ts.map +1 -1
  28. package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.js +2 -1
  29. package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.js.map +1 -1
  30. package/lib/fluent-tester/src/TestComponents/Common/TestProps.d.ts +19 -0
  31. package/lib/fluent-tester/src/TestComponents/Common/TestProps.d.ts.map +1 -0
  32. package/lib/fluent-tester/src/TestComponents/Common/TestProps.js +23 -0
  33. package/lib/fluent-tester/src/TestComponents/Common/TestProps.js.map +1 -0
  34. package/lib/fluent-tester/src/TestComponents/ContextualMenu/E2EContextualMenuTest.d.ts.map +1 -1
  35. package/lib/fluent-tester/src/TestComponents/ContextualMenu/E2EContextualMenuTest.js +4 -2
  36. package/lib/fluent-tester/src/TestComponents/ContextualMenu/E2EContextualMenuTest.js.map +1 -1
  37. package/lib/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.d.ts.map +1 -1
  38. package/lib/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.js +17 -10
  39. package/lib/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.js.map +1 -1
  40. package/lib/fluent-tester/src/TestComponents/Link/E2ELinkTest.d.ts.map +1 -1
  41. package/lib/fluent-tester/src/TestComponents/Link/E2ELinkTest.js +4 -2
  42. package/lib/fluent-tester/src/TestComponents/Link/E2ELinkTest.js.map +1 -1
  43. package/lib/fluent-tester/src/TestComponents/LinkExperimental/E2ELinkTest.d.ts.map +1 -1
  44. package/lib/fluent-tester/src/TestComponents/LinkExperimental/E2ELinkTest.js +4 -2
  45. package/lib/fluent-tester/src/TestComponents/LinkExperimental/E2ELinkTest.js.map +1 -1
  46. package/lib/fluent-tester/src/TestComponents/Menu/E2EMenuTest.d.ts.map +1 -1
  47. package/lib/fluent-tester/src/TestComponents/Menu/E2EMenuTest.js +19 -9
  48. package/lib/fluent-tester/src/TestComponents/Menu/E2EMenuTest.js.map +1 -1
  49. package/lib/fluent-tester/src/TestComponents/MenuButton/MenuButtonE2ETest.d.ts.map +1 -1
  50. package/lib/fluent-tester/src/TestComponents/MenuButton/MenuButtonE2ETest.js +3 -2
  51. package/lib/fluent-tester/src/TestComponents/MenuButton/MenuButtonE2ETest.js.map +1 -1
  52. package/lib/fluent-tester/src/TestComponents/MenuButtonExperimental/ExperimentalMenuButtonE2ETest.d.ts.map +1 -1
  53. package/lib/fluent-tester/src/TestComponents/MenuButtonExperimental/ExperimentalMenuButtonE2ETest.js +3 -2
  54. package/lib/fluent-tester/src/TestComponents/MenuButtonExperimental/ExperimentalMenuButtonE2ETest.js.map +1 -1
  55. package/lib/fluent-tester/src/TestComponents/RadioGroup/RadioGroupE2ETest.d.ts.map +1 -1
  56. package/lib/fluent-tester/src/TestComponents/RadioGroup/RadioGroupE2ETest.js +8 -6
  57. package/lib/fluent-tester/src/TestComponents/RadioGroup/RadioGroupE2ETest.js.map +1 -1
  58. package/lib/fluent-tester/src/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.d.ts.map +1 -1
  59. package/lib/fluent-tester/src/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.js +9 -7
  60. package/lib/fluent-tester/src/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.js.map +1 -1
  61. package/lib/fluent-tester/src/TestComponents/Shimmer/ShimmerE2ETest.d.ts.map +1 -1
  62. package/lib/fluent-tester/src/TestComponents/Shimmer/ShimmerE2ETest.js +3 -1
  63. package/lib/fluent-tester/src/TestComponents/Shimmer/ShimmerE2ETest.js.map +1 -1
  64. package/lib/fluent-tester/src/TestComponents/Switch/E2ESwitchTest.d.ts.map +1 -1
  65. package/lib/fluent-tester/src/TestComponents/Switch/E2ESwitchTest.js +6 -3
  66. package/lib/fluent-tester/src/TestComponents/Switch/E2ESwitchTest.js.map +1 -1
  67. package/lib/fluent-tester/src/TestComponents/Tabs/TabsE2ETest.d.ts.map +1 -1
  68. package/lib/fluent-tester/src/TestComponents/Tabs/TabsE2ETest.js +16 -8
  69. package/lib/fluent-tester/src/TestComponents/Tabs/TabsE2ETest.js.map +1 -1
  70. package/lib/fluent-tester/src/TestComponents/TabsExperimental/TabsExperimentalE2ETest.d.ts.map +1 -1
  71. package/lib/fluent-tester/src/TestComponents/TabsExperimental/TabsExperimentalE2ETest.js +6 -4
  72. package/lib/fluent-tester/src/TestComponents/TabsExperimental/TabsExperimentalE2ETest.js.map +1 -1
  73. package/lib/fluent-tester/src/TestComponents/Test.d.ts.map +1 -1
  74. package/lib/fluent-tester/src/TestComponents/Test.js +6 -2
  75. package/lib/fluent-tester/src/TestComponents/Test.js.map +1 -1
  76. package/lib/fluent-tester/src/TestComponents/Text/StandardUsage.d.ts.map +1 -1
  77. package/lib/fluent-tester/src/TestComponents/Text/StandardUsage.js +1 -2
  78. package/lib/fluent-tester/src/TestComponents/Text/StandardUsage.js.map +1 -1
  79. package/lib/fluent-tester/src/TestComponents/Text/TextE2ETest.d.ts.map +1 -1
  80. package/lib/fluent-tester/src/TestComponents/Text/TextE2ETest.js +6 -4
  81. package/lib/fluent-tester/src/TestComponents/Text/TextE2ETest.js.map +1 -1
  82. package/lib/fluent-tester/src/TestComponents/Text/TextTest.d.ts.map +1 -1
  83. package/lib/fluent-tester/src/TestComponents/Text/TextTest.js +2 -0
  84. package/lib/fluent-tester/src/TestComponents/Text/TextTest.js.map +1 -1
  85. package/lib/fluent-tester/src/TestComponents/TextExperimental/ExperimentalTextE2ETest.d.ts.map +1 -1
  86. package/lib/fluent-tester/src/TestComponents/TextExperimental/ExperimentalTextE2ETest.js +4 -2
  87. package/lib/fluent-tester/src/TestComponents/TextExperimental/ExperimentalTextE2ETest.js.map +1 -1
  88. package/lib/fluent-tester/src/TestComponents/TextExperimental/StandardUsage.d.ts.map +1 -1
  89. package/lib/fluent-tester/src/TestComponents/TextExperimental/StandardUsage.js +3 -1
  90. package/lib/fluent-tester/src/TestComponents/TextExperimental/StandardUsage.js.map +1 -1
  91. package/lib/fluent-tester/src/TestComponents/Theme/ThemeTest.d.ts.map +1 -1
  92. package/lib/fluent-tester/src/TestComponents/Theme/ThemeTest.js +2 -1
  93. package/lib/fluent-tester/src/TestComponents/Theme/ThemeTest.js.map +1 -1
  94. package/lib/fluent-tester/src/TestComponents/Tokens/TokenTest.d.ts.map +1 -1
  95. package/lib/fluent-tester/src/TestComponents/Tokens/TokenTest.js +3 -1
  96. package/lib/fluent-tester/src/TestComponents/Tokens/TokenTest.js.map +1 -1
  97. package/lib-commonjs/fluent-tester/src/FluentTester.d.ts.map +1 -1
  98. package/lib-commonjs/fluent-tester/src/FluentTester.js +8 -9
  99. package/lib-commonjs/fluent-tester/src/FluentTester.js.map +1 -1
  100. package/lib-commonjs/fluent-tester/src/TestComponents/Avatar/E2EAvatarTest.d.ts.map +1 -1
  101. package/lib-commonjs/fluent-tester/src/TestComponents/Avatar/E2EAvatarTest.js +3 -2
  102. package/lib-commonjs/fluent-tester/src/TestComponents/Avatar/E2EAvatarTest.js.map +1 -1
  103. package/lib-commonjs/fluent-tester/src/TestComponents/Badge/E2EBadgeTest.d.ts.map +1 -1
  104. package/lib-commonjs/fluent-tester/src/TestComponents/Badge/E2EBadgeTest.js +7 -2
  105. package/lib-commonjs/fluent-tester/src/TestComponents/Badge/E2EBadgeTest.js.map +1 -1
  106. package/lib-commonjs/fluent-tester/src/TestComponents/Button/E2EButtonTest.d.ts.map +1 -1
  107. package/lib-commonjs/fluent-tester/src/TestComponents/Button/E2EButtonTest.js +10 -7
  108. package/lib-commonjs/fluent-tester/src/TestComponents/Button/E2EButtonTest.js.map +1 -1
  109. package/lib-commonjs/fluent-tester/src/TestComponents/Button/deprecated/E2EButtonTest.d.ts.map +1 -1
  110. package/lib-commonjs/fluent-tester/src/TestComponents/Button/deprecated/E2EButtonTest.js +6 -3
  111. package/lib-commonjs/fluent-tester/src/TestComponents/Button/deprecated/E2EButtonTest.js.map +1 -1
  112. package/lib-commonjs/fluent-tester/src/TestComponents/Callout/CalloutE2ETest.d.ts.map +1 -1
  113. package/lib-commonjs/fluent-tester/src/TestComponents/Callout/CalloutE2ETest.js +3 -2
  114. package/lib-commonjs/fluent-tester/src/TestComponents/Callout/CalloutE2ETest.js.map +1 -1
  115. package/lib-commonjs/fluent-tester/src/TestComponents/Checkbox/CheckboxE2ETest.d.ts.map +1 -1
  116. package/lib-commonjs/fluent-tester/src/TestComponents/Checkbox/CheckboxE2ETest.js +4 -3
  117. package/lib-commonjs/fluent-tester/src/TestComponents/Checkbox/CheckboxE2ETest.js.map +1 -1
  118. package/lib-commonjs/fluent-tester/src/TestComponents/CheckboxExperimental/E2ECheckboxExperimentalTest.d.ts.map +1 -1
  119. package/lib-commonjs/fluent-tester/src/TestComponents/CheckboxExperimental/E2ECheckboxExperimentalTest.js +6 -3
  120. package/lib-commonjs/fluent-tester/src/TestComponents/CheckboxExperimental/E2ECheckboxExperimentalTest.js.map +1 -1
  121. package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.d.ts.map +1 -1
  122. package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.js +2 -1
  123. package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.js.map +1 -1
  124. package/lib-commonjs/fluent-tester/src/TestComponents/Common/TestProps.d.ts +19 -0
  125. package/lib-commonjs/fluent-tester/src/TestComponents/Common/TestProps.d.ts.map +1 -0
  126. package/lib-commonjs/fluent-tester/src/TestComponents/Common/TestProps.js +27 -0
  127. package/lib-commonjs/fluent-tester/src/TestComponents/Common/TestProps.js.map +1 -0
  128. package/lib-commonjs/fluent-tester/src/TestComponents/ContextualMenu/E2EContextualMenuTest.d.ts.map +1 -1
  129. package/lib-commonjs/fluent-tester/src/TestComponents/ContextualMenu/E2EContextualMenuTest.js +3 -2
  130. package/lib-commonjs/fluent-tester/src/TestComponents/ContextualMenu/E2EContextualMenuTest.js.map +1 -1
  131. package/lib-commonjs/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.d.ts.map +1 -1
  132. package/lib-commonjs/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.js +17 -10
  133. package/lib-commonjs/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.js.map +1 -1
  134. package/lib-commonjs/fluent-tester/src/TestComponents/Link/E2ELinkTest.d.ts.map +1 -1
  135. package/lib-commonjs/fluent-tester/src/TestComponents/Link/E2ELinkTest.js +3 -2
  136. package/lib-commonjs/fluent-tester/src/TestComponents/Link/E2ELinkTest.js.map +1 -1
  137. package/lib-commonjs/fluent-tester/src/TestComponents/LinkExperimental/E2ELinkTest.d.ts.map +1 -1
  138. package/lib-commonjs/fluent-tester/src/TestComponents/LinkExperimental/E2ELinkTest.js +3 -2
  139. package/lib-commonjs/fluent-tester/src/TestComponents/LinkExperimental/E2ELinkTest.js.map +1 -1
  140. package/lib-commonjs/fluent-tester/src/TestComponents/Menu/E2EMenuTest.d.ts.map +1 -1
  141. package/lib-commonjs/fluent-tester/src/TestComponents/Menu/E2EMenuTest.js +18 -9
  142. package/lib-commonjs/fluent-tester/src/TestComponents/Menu/E2EMenuTest.js.map +1 -1
  143. package/lib-commonjs/fluent-tester/src/TestComponents/MenuButton/MenuButtonE2ETest.d.ts.map +1 -1
  144. package/lib-commonjs/fluent-tester/src/TestComponents/MenuButton/MenuButtonE2ETest.js +3 -2
  145. package/lib-commonjs/fluent-tester/src/TestComponents/MenuButton/MenuButtonE2ETest.js.map +1 -1
  146. package/lib-commonjs/fluent-tester/src/TestComponents/MenuButtonExperimental/ExperimentalMenuButtonE2ETest.d.ts.map +1 -1
  147. package/lib-commonjs/fluent-tester/src/TestComponents/MenuButtonExperimental/ExperimentalMenuButtonE2ETest.js +3 -2
  148. package/lib-commonjs/fluent-tester/src/TestComponents/MenuButtonExperimental/ExperimentalMenuButtonE2ETest.js.map +1 -1
  149. package/lib-commonjs/fluent-tester/src/TestComponents/RadioGroup/RadioGroupE2ETest.d.ts.map +1 -1
  150. package/lib-commonjs/fluent-tester/src/TestComponents/RadioGroup/RadioGroupE2ETest.js +7 -6
  151. package/lib-commonjs/fluent-tester/src/TestComponents/RadioGroup/RadioGroupE2ETest.js.map +1 -1
  152. package/lib-commonjs/fluent-tester/src/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.d.ts.map +1 -1
  153. package/lib-commonjs/fluent-tester/src/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.js +8 -7
  154. package/lib-commonjs/fluent-tester/src/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.js.map +1 -1
  155. package/lib-commonjs/fluent-tester/src/TestComponents/Shimmer/ShimmerE2ETest.d.ts.map +1 -1
  156. package/lib-commonjs/fluent-tester/src/TestComponents/Shimmer/ShimmerE2ETest.js +2 -1
  157. package/lib-commonjs/fluent-tester/src/TestComponents/Shimmer/ShimmerE2ETest.js.map +1 -1
  158. package/lib-commonjs/fluent-tester/src/TestComponents/Switch/E2ESwitchTest.d.ts.map +1 -1
  159. package/lib-commonjs/fluent-tester/src/TestComponents/Switch/E2ESwitchTest.js +6 -3
  160. package/lib-commonjs/fluent-tester/src/TestComponents/Switch/E2ESwitchTest.js.map +1 -1
  161. package/lib-commonjs/fluent-tester/src/TestComponents/Tabs/TabsE2ETest.d.ts.map +1 -1
  162. package/lib-commonjs/fluent-tester/src/TestComponents/Tabs/TabsE2ETest.js +15 -8
  163. package/lib-commonjs/fluent-tester/src/TestComponents/Tabs/TabsE2ETest.js.map +1 -1
  164. package/lib-commonjs/fluent-tester/src/TestComponents/TabsExperimental/TabsExperimentalE2ETest.d.ts.map +1 -1
  165. package/lib-commonjs/fluent-tester/src/TestComponents/TabsExperimental/TabsExperimentalE2ETest.js +5 -4
  166. package/lib-commonjs/fluent-tester/src/TestComponents/TabsExperimental/TabsExperimentalE2ETest.js.map +1 -1
  167. package/lib-commonjs/fluent-tester/src/TestComponents/Test.d.ts.map +1 -1
  168. package/lib-commonjs/fluent-tester/src/TestComponents/Test.js +5 -2
  169. package/lib-commonjs/fluent-tester/src/TestComponents/Test.js.map +1 -1
  170. package/lib-commonjs/fluent-tester/src/TestComponents/Text/StandardUsage.d.ts.map +1 -1
  171. package/lib-commonjs/fluent-tester/src/TestComponents/Text/StandardUsage.js +1 -2
  172. package/lib-commonjs/fluent-tester/src/TestComponents/Text/StandardUsage.js.map +1 -1
  173. package/lib-commonjs/fluent-tester/src/TestComponents/Text/TextE2ETest.d.ts.map +1 -1
  174. package/lib-commonjs/fluent-tester/src/TestComponents/Text/TextE2ETest.js +5 -4
  175. package/lib-commonjs/fluent-tester/src/TestComponents/Text/TextE2ETest.js.map +1 -1
  176. package/lib-commonjs/fluent-tester/src/TestComponents/Text/TextTest.d.ts.map +1 -1
  177. package/lib-commonjs/fluent-tester/src/TestComponents/Text/TextTest.js +2 -0
  178. package/lib-commonjs/fluent-tester/src/TestComponents/Text/TextTest.js.map +1 -1
  179. package/lib-commonjs/fluent-tester/src/TestComponents/TextExperimental/ExperimentalTextE2ETest.d.ts.map +1 -1
  180. package/lib-commonjs/fluent-tester/src/TestComponents/TextExperimental/ExperimentalTextE2ETest.js +3 -2
  181. package/lib-commonjs/fluent-tester/src/TestComponents/TextExperimental/ExperimentalTextE2ETest.js.map +1 -1
  182. package/lib-commonjs/fluent-tester/src/TestComponents/TextExperimental/StandardUsage.d.ts.map +1 -1
  183. package/lib-commonjs/fluent-tester/src/TestComponents/TextExperimental/StandardUsage.js +2 -1
  184. package/lib-commonjs/fluent-tester/src/TestComponents/TextExperimental/StandardUsage.js.map +1 -1
  185. package/lib-commonjs/fluent-tester/src/TestComponents/Theme/ThemeTest.d.ts.map +1 -1
  186. package/lib-commonjs/fluent-tester/src/TestComponents/Theme/ThemeTest.js +2 -1
  187. package/lib-commonjs/fluent-tester/src/TestComponents/Theme/ThemeTest.js.map +1 -1
  188. package/lib-commonjs/fluent-tester/src/TestComponents/Tokens/TokenTest.d.ts.map +1 -1
  189. package/lib-commonjs/fluent-tester/src/TestComponents/Tokens/TokenTest.js +2 -1
  190. package/lib-commonjs/fluent-tester/src/TestComponents/Tokens/TokenTest.js.map +1 -1
  191. package/package.json +2 -2
  192. package/src/FluentTester.tsx +23 -8
  193. package/src/TestComponents/Avatar/E2EAvatarTest.tsx +9 -2
  194. package/src/TestComponents/Badge/E2EBadgeTest.tsx +15 -2
  195. package/src/TestComponents/Button/E2EButtonTest.tsx +30 -6
  196. package/src/TestComponents/Button/deprecated/E2EButtonTest.tsx +17 -3
  197. package/src/TestComponents/Callout/CalloutE2ETest.tsx +8 -2
  198. package/src/TestComponents/Checkbox/CheckboxE2ETest.tsx +15 -3
  199. package/src/TestComponents/CheckboxExperimental/E2ECheckboxExperimentalTest.tsx +16 -3
  200. package/src/TestComponents/Common/MenuPicker.tsx +9 -2
  201. package/src/TestComponents/Common/TestProps.tsx +23 -0
  202. package/src/TestComponents/ContextualMenu/E2EContextualMenuTest.tsx +13 -2
  203. package/src/TestComponents/FocusZone/FocusZoneE2ETest.tsx +38 -9
  204. package/src/TestComponents/Link/E2ELinkTest.tsx +10 -2
  205. package/src/TestComponents/LinkExperimental/E2ELinkTest.tsx +8 -2
  206. package/src/TestComponents/Menu/E2EMenuTest.tsx +52 -9
  207. package/src/TestComponents/MenuButton/MenuButtonE2ETest.tsx +5 -2
  208. package/src/TestComponents/MenuButtonExperimental/ExperimentalMenuButtonE2ETest.tsx +5 -2
  209. package/src/TestComponents/RadioGroup/RadioGroupE2ETest.tsx +29 -6
  210. package/src/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.tsx +41 -7
  211. package/src/TestComponents/Shimmer/ShimmerE2ETest.tsx +3 -1
  212. package/src/TestComponents/Switch/E2ESwitchTest.tsx +21 -3
  213. package/src/TestComponents/Tabs/TabsE2ETest.tsx +49 -8
  214. package/src/TestComponents/TabsExperimental/TabsExperimentalE2ETest.tsx +16 -4
  215. package/src/TestComponents/Test.tsx +12 -2
  216. package/src/TestComponents/Text/StandardUsage.tsx +1 -4
  217. package/src/TestComponents/Text/TextE2ETest.tsx +19 -4
  218. package/src/TestComponents/Text/TextTest.tsx +2 -0
  219. package/src/TestComponents/TextExperimental/ExperimentalTextE2ETest.tsx +8 -2
  220. package/src/TestComponents/TextExperimental/StandardUsage.tsx +6 -1
  221. package/src/TestComponents/Theme/ThemeTest.tsx +2 -1
  222. package/src/TestComponents/Tokens/TokenTest.tsx +6 -1
@@ -17,6 +17,7 @@ import {
17
17
  FOCUSZONE_DIRECTION_PICKER,
18
18
  } from '../../../../E2E/src/FocusZone/consts';
19
19
  import { focusZoneTestStyles, GridButton } from './styles';
20
+ import { testProps } from '../Common/TestProps';
20
21
 
21
22
  export const FocusZoneDirections: FocusZoneDirection[] = ['bidirectional', 'horizontal', 'vertical', 'none'];
22
23
 
@@ -28,9 +29,17 @@ export const FocusZoneListWrapper: React.FunctionComponent<FocusZoneListWrapperP
28
29
  const buttonProps: ButtonProps = { children: 'Click to Focus', style: focusZoneTestStyles.listWrapperButton };
29
30
  return (
30
31
  <>
31
- <Button {...buttonProps} testID={beforeID} />
32
+ <Button
33
+ {...buttonProps}
34
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
35
+ {...testProps(beforeID)}
36
+ />
32
37
  {children}
33
- <Button {...buttonProps} testID={afterID} />
38
+ <Button
39
+ {...buttonProps}
40
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
41
+ {...testProps(afterID)}
42
+ />
34
43
  </>
35
44
  );
36
45
  };
@@ -53,10 +62,11 @@ export const GridOfButtons: React.FunctionComponent<GridOfButtonsProps> = (props
53
62
  const gridIndex = heightIndex * props.gridWidth + widthIndex + 1;
54
63
  return (
55
64
  <GridButton
56
- testID={props.e2etesting ? FOCUSZONE_GRID_BUTTON(gridIndex) : undefined}
57
65
  key={widthIndex}
58
66
  style={focusZoneTestStyles.focusZoneButton}
59
67
  componentRef={gridIndex === props.tabbableIdx ? props.tabRef : undefined}
68
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
69
+ {...testProps(props.e2etesting ? FOCUSZONE_GRID_BUTTON(gridIndex) : undefined)}
60
70
  >
61
71
  <Text>{gridIndex}</Text>
62
72
  </GridButton>
@@ -81,11 +91,14 @@ export const FocusZone2D: React.FunctionComponent = () => {
81
91
  return (
82
92
  <View style={commonTestStyles.root}>
83
93
  <View style={commonTestStyles.settings}>
84
- <Text variant="subheaderSemibold" testID={FOCUSZONE_TEST_COMPONENT}>
94
+ <Text
95
+ variant="subheaderSemibold"
96
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
97
+ {...testProps(FOCUSZONE_TEST_COMPONENT)}
98
+ >
85
99
  FocusZone Direction
86
100
  </Text>
87
101
  <MenuButton
88
- testID={FOCUSZONE_DIRECTION_PICKER}
89
102
  content={`Current direction: ${direction}`}
90
103
  menuItems={FocusZoneDirections.map((dir) => ({
91
104
  itemKey: dir,
@@ -93,20 +106,36 @@ export const FocusZone2D: React.FunctionComponent = () => {
93
106
  testID: FOCUSZONE_DIRECTION_ID(dir),
94
107
  }))}
95
108
  onItemClick={(dir) => setDirection(dir as FocusZoneDirection)}
109
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
110
+ {...testProps(FOCUSZONE_DIRECTION_PICKER)}
111
+ />
112
+ <Switch
113
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
114
+ {...testProps(FOCUSZONE_TWO_DIM_SWITCH)}
115
+ label="2D Navigation"
116
+ checked={is2DNav}
117
+ onChange={(_, checked) => set2dNav(checked)}
118
+ />
119
+ <Switch
120
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
121
+ {...testProps(FOCUSZONE_DISABLED_SWITCH)}
122
+ label="Disabled"
123
+ checked={isDisabled}
124
+ onChange={(_, checked) => setDisabled(checked)}
96
125
  />
97
- <Switch testID={FOCUSZONE_TWO_DIM_SWITCH} label="2D Navigation" checked={is2DNav} onChange={(_, checked) => set2dNav(checked)} />
98
- <Switch testID={FOCUSZONE_DISABLED_SWITCH} label="Disabled" checked={isDisabled} onChange={(_, checked) => setDisabled(checked)} />
99
126
  <Switch
100
- testID={FOCUSZONE_CIRCLE_NAV_SWITCH}
127
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
128
+ {...testProps(FOCUSZONE_CIRCLE_NAV_SWITCH)}
101
129
  label="Circular Navigation"
102
130
  checked={isCircularNav}
103
131
  onChange={(_, checked) => setIsCircularNav(checked)}
104
132
  />
105
133
  <Switch
106
- testID={FOCUSZONE_DEFAULT_TABBABLE_SWITCH}
107
134
  label="Use Default Tabbable Element"
108
135
  checked={useDeffaultTabbableElement}
109
136
  onChange={(_, checked) => setUseDeffaultTabbableElement(checked)}
137
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
138
+ {...testProps(FOCUSZONE_DEFAULT_TABBABLE_SWITCH)}
110
139
  />
111
140
  </View>
112
141
 
@@ -9,6 +9,7 @@ import {
9
9
  LINK_NO_A11Y_LABEL_COMPONENT,
10
10
  LINK_TEST_COMPONENT_LABEL,
11
11
  } from '../../../../E2E/src/Link/consts';
12
+ import { testProps } from '../Common/TestProps';
12
13
 
13
14
  export const LinkE2ETest: React.FunctionComponent = () => {
14
15
  const doPress = (): void => {
@@ -20,10 +21,17 @@ export const LinkE2ETest: React.FunctionComponent = () => {
20
21
  <Link
21
22
  url="https://www.bing.com/"
22
23
  content="Link with Accessibility Label."
23
- testID={LINK_TEST_COMPONENT}
24
24
  accessibilityLabel={LINK_ACCESSIBILITY_LABEL}
25
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
26
+ {...testProps(LINK_TEST_COMPONENT)}
27
+ />
28
+ <Link
29
+ url="https://www.bing.com/"
30
+ onPress={doPress}
31
+ content={LINK_TEST_COMPONENT_LABEL}
32
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
33
+ {...testProps(LINK_NO_A11Y_LABEL_COMPONENT)}
25
34
  />
26
- <Link url="https://www.bing.com/" onPress={doPress} content={LINK_TEST_COMPONENT_LABEL} testID={LINK_NO_A11Y_LABEL_COMPONENT} />
27
35
  </Stack>
28
36
  );
29
37
  };
@@ -9,6 +9,7 @@ import {
9
9
  EXPERIMENTAL_LINK_NO_A11Y_LABEL_COMPONENT,
10
10
  EXPERIMENTAL_LINK_TEST_COMPONENT_LABEL,
11
11
  } from '../../../../E2E/src/LinkExperimental/consts';
12
+ import { testProps } from '../Common/TestProps';
12
13
 
13
14
  export const LinkE2ETest: React.FunctionComponent = () => {
14
15
  const doPress = (): void => {
@@ -19,12 +20,17 @@ export const LinkE2ETest: React.FunctionComponent = () => {
19
20
  <Stack style={stackStyle}>
20
21
  <Link
21
22
  url="https://www.bing.com/"
22
- testID={EXPERIMENTAL_LINK_TEST_COMPONENT}
23
23
  accessibilityLabel={EXPERIMENTAL_LINK_ACCESSIBILITY_LABEL}
24
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
25
+ {...testProps(EXPERIMENTAL_LINK_TEST_COMPONENT)}
24
26
  >
25
27
  Link with Accessibility Label
26
28
  </Link>
27
- <Link onPress={doPress} testID={EXPERIMENTAL_LINK_NO_A11Y_LABEL_COMPONENT}>
29
+ <Link
30
+ onPress={doPress}
31
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
32
+ {...testProps(EXPERIMENTAL_LINK_NO_A11Y_LABEL_COMPONENT)}
33
+ >
28
34
  {EXPERIMENTAL_LINK_TEST_COMPONENT_LABEL}
29
35
  </Link>
30
36
  </Stack>
@@ -19,6 +19,7 @@ import {
19
19
  MENUITEM_DISABLED_COMPONENT,
20
20
  MENUITEM_CALLBACK_LABEL,
21
21
  } from '../../../../E2E/src/Menu/consts';
22
+ import { testProps } from '../Common/TestProps';
22
23
 
23
24
  export const E2EMenuTest: React.FunctionComponent = () => {
24
25
  const [menuOpened, setMenuOpened] = React.useState(false);
@@ -42,34 +43,76 @@ export const E2EMenuTest: React.FunctionComponent = () => {
42
43
  return (
43
44
  <Stack style={stackStyle}>
44
45
  <View style={{ flexDirection: 'row' }}>
45
- {menuOpened ? <Text testID={MENU_ON_OPEN}>Menu opened</Text> : <Text testID={MENU_ON_CLOSE}>Menu closed</Text>}
46
- <Button onClick={onResetClick} testID={MENU_CALLBACK_RESET_BUTTON}>
46
+ {menuOpened ? (
47
+ <Text /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */ {...testProps(MENU_ON_OPEN)}>
48
+ Menu opened
49
+ </Text>
50
+ ) : (
51
+ <Text /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */ {...testProps(MENU_ON_CLOSE)}>
52
+ Menu closed
53
+ </Text>
54
+ )}
55
+ <Button
56
+ onClick={onResetClick}
57
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */ {...testProps(
58
+ MENU_CALLBACK_RESET_BUTTON,
59
+ )}
60
+ >
47
61
  Reset Item Callback
48
62
  </Button>
49
63
  <Menu open={menuOpened} onOpenChange={onOpenChange}>
50
64
  <MenuTrigger>
51
- <Button testID={MENUTRIGGER_TEST_COMPONENT}>Test</Button>
65
+ <Button
66
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
67
+ {...testProps(MENUTRIGGER_TEST_COMPONENT)}
68
+ >
69
+ Test
70
+ </Button>
52
71
  </MenuTrigger>
53
- <MenuPopover testID={MENUPOPOVER_TEST_COMPONENT}>
72
+ <MenuPopover
73
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
74
+ {...testProps(MENUPOPOVER_TEST_COMPONENT)}
75
+ >
54
76
  <MenuList>
55
77
  <MenuItem
56
78
  onClick={onItemClick}
57
- testID={MENUITEM_TEST_COMPONENT}
58
79
  accessibilityLabel={MENUITEM_ACCESSIBILITY_LABEL}
59
80
  persistOnClick
81
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
82
+ {...testProps(MENUITEM_TEST_COMPONENT)}
60
83
  >
61
84
  A plain MenuItem
62
85
  </MenuItem>
63
- <MenuItem onClick={onItemClick} testID={MENUITEM_DISABLED_COMPONENT} disabled persistOnClick>
86
+ <MenuItem
87
+ onClick={onItemClick}
88
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
89
+ {...testProps(MENUITEM_DISABLED_COMPONENT)}
90
+ disabled
91
+ persistOnClick
92
+ >
64
93
  A second disabled plain MenuItem
65
94
  </MenuItem>
66
- <MenuItem testID={MENUITEM_NO_A11Y_LABEL_COMPONENT}>{MENUITEM_TEST_LABEL}</MenuItem>
67
- <MenuItem testID={MENUITEM_FOURTH_COMPONENT}>A fourth plain MenuItem</MenuItem>
95
+ <MenuItem
96
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
97
+ {...testProps(MENUITEM_NO_A11Y_LABEL_COMPONENT)}
98
+ >
99
+ {MENUITEM_TEST_LABEL}
100
+ </MenuItem>
101
+ <MenuItem
102
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
103
+ {...testProps(MENUITEM_FOURTH_COMPONENT)}
104
+ >
105
+ A fourth plain MenuItem
106
+ </MenuItem>
68
107
  </MenuList>
69
108
  </MenuPopover>
70
109
  </Menu>
71
110
  </View>
72
- <Text style={{ marginVertical: 4 }} testID={MENUITEM_CALLBACK_LABEL}>
111
+ <Text
112
+ style={{ marginVertical: 4 }}
113
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
114
+ {...testProps(MENUITEM_CALLBACK_LABEL)}
115
+ >
73
116
  {`onClick fired ${numOnClickCalls} times`}
74
117
  </Text>
75
118
  </Stack>
@@ -9,6 +9,7 @@ import {
9
9
  MENU_BUTTON_NO_A11Y_LABEL_COMPONENT,
10
10
  MENU_BUTTON_TEST_COMPONENT_LABEL,
11
11
  } from '../../../../E2E/src/MenuButton/consts';
12
+ import { testProps } from '../Common/TestProps';
12
13
 
13
14
  export const E2ETestMenuButton: React.FunctionComponent = () => {
14
15
  const [lastMenuItemClicked, setLastMenuItemClicked] = React.useState(null);
@@ -41,8 +42,9 @@ export const E2ETestMenuButton: React.FunctionComponent = () => {
41
42
  menuItems={menuItems}
42
43
  onItemClick={onItemClick}
43
44
  contextualMenu={contextualMenuProps}
44
- testID={MENU_BUTTON_TEST_COMPONENT}
45
45
  accessibilityLabel={MENU_BUTTON_ACCESSIBILITY_LABEL}
46
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
47
+ {...testProps(MENU_BUTTON_TEST_COMPONENT)}
46
48
  />
47
49
  </View>
48
50
  </View>
@@ -53,7 +55,8 @@ export const E2ETestMenuButton: React.FunctionComponent = () => {
53
55
  menuItems={menuItems}
54
56
  onItemClick={onItemClick}
55
57
  contextualMenu={contextualMenuProps}
56
- testID={MENU_BUTTON_NO_A11Y_LABEL_COMPONENT}
58
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
59
+ {...testProps(MENU_BUTTON_NO_A11Y_LABEL_COMPONENT)}
57
60
  />
58
61
  </View>
59
62
  </View>
@@ -10,6 +10,7 @@ import {
10
10
  EXPERIMENTAL_MENU_BUTTON_NO_A11Y_LABEL_COMPONENT,
11
11
  EXPERIMENTAL_MENU_BUTTON_TEST_COMPONENT_LABEL,
12
12
  } from '../../../../E2E/src/MenuButtonExperimental/consts';
13
+ import { testProps } from '../Common/TestProps';
13
14
 
14
15
  export const E2ETestExperimentalMenuButton: React.FunctionComponent = () => {
15
16
  const [lastMenuItemClicked, setLastMenuItemClicked] = React.useState(null);
@@ -42,8 +43,9 @@ export const E2ETestExperimentalMenuButton: React.FunctionComponent = () => {
42
43
  menuItems={menuItems}
43
44
  onItemClick={onItemClick}
44
45
  contextualMenu={contextualMenuProps}
45
- testID={EXPERIMENTAL_MENU_BUTTON_TEST_COMPONENT}
46
46
  accessibilityLabel={EXPERIMENTAL_MENU_BUTTON_ACCESSIBILITY_LABEL}
47
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
48
+ {...testProps(EXPERIMENTAL_MENU_BUTTON_TEST_COMPONENT)}
47
49
  />
48
50
  </View>
49
51
  </View>
@@ -54,7 +56,8 @@ export const E2ETestExperimentalMenuButton: React.FunctionComponent = () => {
54
56
  menuItems={menuItems}
55
57
  onItemClick={onItemClick}
56
58
  contextualMenu={contextualMenuProps}
57
- testID={EXPERIMENTAL_MENU_BUTTON_NO_A11Y_LABEL_COMPONENT}
59
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
60
+ {...testProps(EXPERIMENTAL_MENU_BUTTON_NO_A11Y_LABEL_COMPONENT)}
58
61
  />
59
62
  </View>
60
63
  </View>
@@ -15,6 +15,7 @@ import {
15
15
  } from '../../../../E2E/src/RadioGroup/consts';
16
16
  import { Stack } from '@fluentui-react-native/stack';
17
17
  import { stackStyle } from '../Common/styles';
18
+ import { testProps } from '../Common/TestProps';
18
19
 
19
20
  export const E2ERadioGroupTest: React.FunctionComponent = () => {
20
21
  return (
@@ -23,19 +24,41 @@ export const E2ERadioGroupTest: React.FunctionComponent = () => {
23
24
  <RadioGroup
24
25
  label="RadioGroup for E2E Testing - Ally Label Set"
25
26
  accessibilityLabel={RADIOGROUP_ACCESSIBILITY_LABEL}
26
- testID={RADIOGROUP_TEST_COMPONENT}
27
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
28
+ {...testProps(RADIOGROUP_TEST_COMPONENT)}
27
29
  >
28
30
  <RadioButton
29
31
  content="Option A"
30
32
  buttonKey="A"
31
- testID={FIRST_RADIO_BUTTON}
32
33
  accessibilityLabel={FIRST_RADIO_BUTTON_ACCESSIBILITY_LABEL}
34
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
35
+ {...testProps(FIRST_RADIO_BUTTON)}
36
+ />
37
+ <RadioButton
38
+ content={SECOND_RADIO_BUTTON_LABEL}
39
+ buttonKey="B"
40
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
41
+ {...testProps(SECOND_RADIO_BUTTON)}
42
+ />
43
+ <RadioButton
44
+ content="Option C (disabled)"
45
+ buttonKey="C"
46
+ disabled={true}
47
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
48
+ {...testProps(THIRD_RADIO_BUTTON)}
49
+ />
50
+ <RadioButton
51
+ content="Option D"
52
+ buttonKey="C"
53
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
54
+ {...testProps(FOURTH_RADIO_BUTTON)}
33
55
  />
34
- <RadioButton content={SECOND_RADIO_BUTTON_LABEL} buttonKey="B" testID={SECOND_RADIO_BUTTON} />
35
- <RadioButton content="Option C (disabled)" buttonKey="C" disabled={true} testID={THIRD_RADIO_BUTTON} />
36
- <RadioButton content="Option D" buttonKey="C" testID={FOURTH_RADIO_BUTTON} />
37
56
  </RadioGroup>
38
- <RadioGroup label={RADIOGROUP_TEST_COMPONENT_LABEL} testID={RADIOGROUP_NO_A11Y_LABEL_COMPONENT}>
57
+ <RadioGroup
58
+ label={RADIOGROUP_TEST_COMPONENT_LABEL}
59
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
60
+ {...testProps(RADIOGROUP_NO_A11Y_LABEL_COMPONENT)}
61
+ >
39
62
  <RadioButton content="Option W" buttonKey="W" />
40
63
  <RadioButton content="Option X" buttonKey="X" />
41
64
  <RadioButton content="Option Y (disabled)" buttonKey="C" disabled={true} />
@@ -16,6 +16,7 @@ import {
16
16
  } from '../../../../E2E/src/RadioGroupExperimental/consts';
17
17
  import { Stack } from '@fluentui-react-native/stack';
18
18
  import { stackStyle } from '../Common/styles';
19
+ import { testProps } from '../Common/TestProps';
19
20
 
20
21
  export const E2ERadioGroupExperimentalTest: React.FunctionComponent = () => {
21
22
  return (
@@ -24,15 +25,48 @@ export const E2ERadioGroupExperimentalTest: React.FunctionComponent = () => {
24
25
  <RadioGroup
25
26
  label="RadioGroup for E2E Testing - Ally Label Set"
26
27
  accessibilityLabel={EXPERIMENTAL_RADIOGROUP_ACCESSIBILITY_LABEL}
27
- testID={EXPERIMENTAL_RADIOGROUP_TEST_COMPONENT}
28
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
29
+ {...testProps(EXPERIMENTAL_RADIOGROUP_TEST_COMPONENT)}
28
30
  >
29
- <Radio label="Option A" value="A" testID={FIRST_RADIO} accessibilityLabel={FIRST_RADIO_ACCESSIBILITY_LABEL} />
30
- <Radio label={SECOND_RADIO_LABEL} value="B" testID={SECOND_RADIO} />
31
- <Radio label="Option C (disabled)" value="C" disabled={true} testID={THIRD_RADIO} />
32
- <Radio label="Option D" value="C" testID={FOURTH_RADIO} />
31
+ <Radio
32
+ label="Option A"
33
+ value="A"
34
+ accessibilityLabel={FIRST_RADIO_ACCESSIBILITY_LABEL}
35
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
36
+ {...testProps(FIRST_RADIO)}
37
+ />
38
+ <Radio
39
+ label={SECOND_RADIO_LABEL}
40
+ value="B"
41
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
42
+ {...testProps(SECOND_RADIO)}
43
+ />
44
+ <Radio
45
+ label="Option C (disabled)"
46
+ value="C"
47
+ disabled={true}
48
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
49
+ {...testProps(THIRD_RADIO)}
50
+ />
51
+ <Radio
52
+ label="Option D"
53
+ value="C"
54
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
55
+ {...testProps(FOURTH_RADIO)}
56
+ />
33
57
  </RadioGroup>
34
- <RadioGroup label={EXPERIMENTAL_RADIOGROUP_TEST_COMPONENT_LABEL} testID={EXPERIMENTAL_RADIOGROUP_NO_A11Y_LABEL_COMPONENT}>
35
- <Radio label="Option W" value="W" testID={FIFTH_RADIO} />
58
+ <RadioGroup
59
+ label={
60
+ EXPERIMENTAL_RADIOGROUP_TEST_COMPONENT_LABEL
61
+ } /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
62
+ {...testProps(EXPERIMENTAL_RADIOGROUP_NO_A11Y_LABEL_COMPONENT)}
63
+ >
64
+ <Radio
65
+ label="Option W"
66
+ value="W"
67
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
68
+ {...testProps(FIFTH_RADIO)}
69
+ />
36
70
  <Radio label="Option X" value="X" />
37
71
  <Radio label="Option Y (disabled)" value="C" disabled={true} />
38
72
  <Radio label="Option Z" value="Z" />
@@ -4,16 +4,18 @@ import { Stack } from '@fluentui-react-native/stack';
4
4
  import { stackStyle } from '../Common/styles';
5
5
  import { shimmerRectsAndRect } from './ShimmerTestElementSets';
6
6
  import { SHIMMER_TEST_COMPONENT } from '../../../../E2E/src/Shimmer/consts';
7
+ import { testProps } from '../Common/TestProps';
7
8
 
8
9
  export const E2ETestingShimmer: React.FunctionComponent<Record<string, never>> = () => {
9
10
  return (
10
11
  <Stack style={stackStyle}>
11
12
  <Shimmer
12
- testID={SHIMMER_TEST_COMPONENT}
13
13
  elements={shimmerRectsAndRect()}
14
14
  duration={2000}
15
15
  delay={1000}
16
16
  style={{ width: 300, height: 100 }}
17
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
18
+ {...testProps(SHIMMER_TEST_COMPONENT)}
17
19
  />
18
20
  </Stack>
19
21
  );
@@ -11,6 +11,7 @@ import {
11
11
  SWITCH_ON_PRESS,
12
12
  } from '../../../../E2E/src/Switch/consts';
13
13
  import { Platform } from 'react-native';
14
+ import { testProps } from '../Common/TestProps';
14
15
 
15
16
  export const E2ESwitchTest: React.FunctionComponent = () => {
16
17
  const [switchPressed, setSwitchSwitchPressed] = React.useState(false);
@@ -29,9 +30,26 @@ export const E2ESwitchTest: React.FunctionComponent = () => {
29
30
 
30
31
  return (
31
32
  <Stack style={memoizedStyles}>
32
- <Switch testID={SWITCH_TEST_COMPONENT} label={'Switch Test'} onChange={onToggle} accessibilityLabel={SWITCH_ACCESSIBILITY_LABEL} />
33
- {switchPressed ? <TextV1 testID={SWITCH_ON_PRESS}>Switch Toggled On</TextV1> : null}
34
- <Switch label={SWITCH_TEST_COMPONENT_LABEL} testID={SWITCH_NO_A11Y_LABEL_COMPONENT} />
33
+ <Switch
34
+ label={'Switch Test'}
35
+ onChange={onToggle}
36
+ accessibilityLabel={SWITCH_ACCESSIBILITY_LABEL}
37
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
38
+ {...testProps(SWITCH_TEST_COMPONENT)}
39
+ />
40
+ {switchPressed ? (
41
+ <TextV1
42
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
43
+ {...testProps(SWITCH_ON_PRESS)}
44
+ >
45
+ Switch Toggled On
46
+ </TextV1>
47
+ ) : null}
48
+ <Switch
49
+ label={SWITCH_TEST_COMPONENT_LABEL}
50
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
51
+ {...testProps(SWITCH_NO_A11Y_LABEL_COMPONENT)}
52
+ />
35
53
  </Stack>
36
54
  );
37
55
  };
@@ -16,25 +16,66 @@ import {
16
16
  THIRD_TABS_ITEM_CONTENT,
17
17
  FIRST_TABS_ITEM_CONTENT,
18
18
  } from '../../../../E2E/src/Tabs/consts';
19
+ import { testProps } from '../Common/TestProps';
19
20
 
20
21
  export const E2ETabsTest: React.FunctionComponent = () => {
21
22
  return (
22
23
  <View>
23
24
  <View style={stackStyle}>
24
- <Tabs label="Tabs" testID={TABS_TEST_COMPONENT} accessibilityLabel={TABS_ACCESSIBILITY_LABEL}>
25
- <TabsItem headerText="Home" itemKey="A" testID={FIRST_TABS_ITEM} accessibilityLabel={FIRST_TABS_ITEM_ACCESSIBILITY_LABEL}>
26
- <Text testID={FIRST_TABS_ITEM_CONTENT}>Tabs #1</Text>
25
+ <Tabs
26
+ label="Tabs"
27
+ accessibilityLabel={TABS_ACCESSIBILITY_LABEL}
28
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
29
+ {...testProps(TABS_TEST_COMPONENT)}
30
+ >
31
+ <TabsItem
32
+ headerText="Home"
33
+ itemKey="A"
34
+ accessibilityLabel={FIRST_TABS_ITEM_ACCESSIBILITY_LABEL}
35
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
36
+ {...testProps(FIRST_TABS_ITEM)}
37
+ >
38
+ <Text
39
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
40
+ {...testProps(FIRST_TABS_ITEM_CONTENT)}
41
+ >
42
+ Tabs #1
43
+ </Text>
27
44
  </TabsItem>
28
- <TabsItem headerText="Files" itemKey="B" testID={SECOND_TABS_ITEM}>
29
- <Text testID={SECOND_TABS_ITEM_CONTENT}>Tabs #2</Text>
45
+ <TabsItem
46
+ headerText="Files"
47
+ itemKey="B"
48
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
49
+ {...testProps(SECOND_TABS_ITEM)}
50
+ >
51
+ <Text
52
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
53
+ {...testProps(SECOND_TABS_ITEM_CONTENT)}
54
+ >
55
+ Tabs #2
56
+ </Text>
30
57
  </TabsItem>
31
- <TabsItem headerText={THIRD_TABS_ITEM_LABEL} itemKey="C" testID={THIRD_TABS_ITEM}>
32
- <Text testID={THIRD_TABS_ITEM_CONTENT}>Tabs #3</Text>
58
+ <TabsItem
59
+ headerText={THIRD_TABS_ITEM_LABEL}
60
+ itemKey="C"
61
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
62
+ {...testProps(THIRD_TABS_ITEM)}
63
+ >
64
+ <Text
65
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
66
+ {...testProps(THIRD_TABS_ITEM_CONTENT)}
67
+ >
68
+ Tabs #3
69
+ </Text>
33
70
  </TabsItem>
34
71
  </Tabs>
35
72
  </View>
36
73
  <View style={stackStyle}>
37
- <Tabs label={TABS_TEST_COMPONENT_LABEL} testID={TABS_NO_A11Y_LABEL_COMPONENT}>
74
+ <Tabs
75
+ label={TABS_TEST_COMPONENT_LABEL}
76
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
77
+ {...testProps(TABS_NO_A11Y_LABEL_COMPONENT)}
78
+ >
38
79
  <TabsItem headerText="Home" itemKey="A">
39
80
  <Text>Tabs #1</Text>
40
81
  </TabsItem>
@@ -13,17 +13,24 @@ import {
13
13
  EXPERIMENTAL_TABS_ITEM_NO_A11Y_LABEL_COMPONENT,
14
14
  EXPERIMENTAL_TABS_ITEM_TEST_COMPONENT_LABEL,
15
15
  } from '../../../../E2E/src/TabsExperimental/consts';
16
+ import { testProps } from '../Common/TestProps';
16
17
 
17
18
  export const E2ETestExperimentalTabs: React.FunctionComponent = () => {
18
19
  return (
19
20
  <View>
20
21
  <View style={stackStyle}>
21
- <Tabs label="Tabs" testID={EXPERIMENTAL_TABS_TEST_COMPONENT} accessibilityLabel={EXPERIMENTAL_TABS_ACCESSIBILITY_LABEL}>
22
+ <Tabs
23
+ label="Tabs"
24
+ accessibilityLabel={EXPERIMENTAL_TABS_ACCESSIBILITY_LABEL}
25
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
26
+ {...testProps(EXPERIMENTAL_TABS_TEST_COMPONENT)}
27
+ >
22
28
  <TabsItem
23
29
  headerText="Home"
24
30
  itemKey="A"
25
- testID={EXPERIMENTAL_TABS_ITEM_TEST_COMPONENT}
26
31
  accessibilityLabel={EXPERIMENTAL_TABS_ITEM_ACCESSIBILITY_LABEL}
32
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
33
+ {...testProps(EXPERIMENTAL_TABS_ITEM_TEST_COMPONENT)}
27
34
  >
28
35
  <Text>Tabs #1</Text>
29
36
  </TabsItem>
@@ -36,11 +43,16 @@ export const E2ETestExperimentalTabs: React.FunctionComponent = () => {
36
43
  </Tabs>
37
44
  </View>
38
45
  <View style={stackStyle}>
39
- <Tabs label={EXPERIMENTAL_TABS_TEST_COMPONENT_LABEL} testID={EXPERIMENTAL_TABS_NO_A11Y_LABEL_COMPONENT}>
46
+ <Tabs
47
+ label={EXPERIMENTAL_TABS_TEST_COMPONENT_LABEL}
48
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
49
+ {...testProps(EXPERIMENTAL_TABS_NO_A11Y_LABEL_COMPONENT)}
50
+ >
40
51
  <TabsItem
41
52
  headerText={EXPERIMENTAL_TABS_ITEM_TEST_COMPONENT_LABEL}
42
53
  itemKey="A"
43
- testID={EXPERIMENTAL_TABS_ITEM_NO_A11Y_LABEL_COMPONENT}
54
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
55
+ {...testProps(EXPERIMENTAL_TABS_ITEM_NO_A11Y_LABEL_COMPONENT)}
44
56
  >
45
57
  <Text>Tabs #1</Text>
46
58
  </TabsItem>
@@ -7,6 +7,7 @@ import { useTheme } from '@fluentui-react-native/theme-types';
7
7
  import Svg, { G, Path, SvgProps } from 'react-native-svg';
8
8
  import { SvgIconProps } from '@fluentui-react-native/icon';
9
9
  import { Button } from '@fluentui-react-native/experimental-button';
10
+ import { testProps } from './Common/TestProps';
10
11
 
11
12
  export type TestSection = {
12
13
  name: string;
@@ -119,7 +120,11 @@ export const Test = (props: TestProps): React.ReactElement<Record<string, never>
119
120
  <Text style={styles.name} variant="heroSemibold">
120
121
  {props.name}
121
122
  </Text>
122
- <Button testID="Focus_Button" style={styles.e2eFocusButton}>
123
+ <Button
124
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
125
+ {...testProps('Focus_Button')}
126
+ style={styles.e2eFocusButton}
127
+ >
123
128
  E2E Testing Button
124
129
  </Button>
125
130
  {props.spec && <Link url={props.spec} content="SPEC" />}
@@ -172,7 +177,12 @@ export const Test = (props: TestProps): React.ReactElement<Record<string, never>
172
177
  const TestComponent = section.component;
173
178
  return (
174
179
  <View key={index}>
175
- <Text style={styles.section} variant="headerSemibold" testID={section.testID}>
180
+ <Text
181
+ style={styles.section}
182
+ variant="headerSemibold"
183
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
184
+ {...testProps(section.testID)}
185
+ >
176
186
  {section.name}
177
187
  </Text>
178
188
  <Separator />