@fluentui-react-native/tester 0.126.12 → 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 +16 -1
  2. package/CHANGELOG.md +10 -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 +1 -1
  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
@@ -45,7 +45,7 @@ var Panel = function () {
45
45
  React.createElement(react_native_2.PrimaryButton, { onClick: onClick, content: "Primary Button", disabled: disabled }),
46
46
  React.createElement(react_native_2.Button, { onClick: onClick, content: "Default Button", disabled: disabled }),
47
47
  React.createElement(react_native_2.StealthButton, { onClick: onClick, content: "Stealth Button", disabled: disabled }),
48
- React.createElement(react_native_2.Text, { testID: consts_1.THEME_TESTPAGE }, "This is a text element"),
48
+ React.createElement(react_native_2.Text, null, "This is a text element"),
49
49
  React.createElement(react_native_2.Button, { onClick: onClick, content: "This button has longer text", disabled: disabled })));
50
50
  };
51
51
  var getSwatchColorStyle = function (name, color) {
@@ -79,6 +79,7 @@ var SwatchList = function () {
79
79
  var themeSections = [
80
80
  {
81
81
  name: 'Component Examples',
82
+ testID: consts_1.THEME_TESTPAGE,
82
83
  component: Panel,
83
84
  },
84
85
  {
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeTest.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Theme/ThemeTest.tsx"],"names":[],"mappings":";;;;AAAA,wDAA+B;AAC/B,6CAAuE;AACvE,kEAAqE;AACrE,8EAA4E;AAC5E,2CAAoD;AACpD,uDAAoF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MAAM,GAAmB;QAC7B,WAAW,EAAE,MAAM;QACnB,SAAS,EAAE,cAAc;QACzB,SAAS,EAAE,cAAc;QACzB,WAAW,EAAE,cAAc;QAC3B,aAAa,EAAE,SAAS;KACzB,CAAC;IAEF,IAAM,WAAW,GACf,6IAA6I,CAAC;IAEhJ,OAAO,oBAAC,WAAI,IAAC,IAAI,EAAC,YAAY,EAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;AACvG,CAAC,CAAC;AAbW,QAAA,SAAS,aAapB"}
1
+ {"version":3,"file":"ThemeTest.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Theme/ThemeTest.tsx"],"names":[],"mappings":";;;;AAAA,wDAA+B;AAC/B,6CAAuE;AACvE,kEAAqE;AACrE,8EAA4E;AAC5E,2CAAoD;AACpD,uDAAoF;AACpF,2DAAkE;AAClE,gCAA4D;AAE5D,IAAM,eAAe,GAAG,IAAA,oCAAgB,EAAC,UAAC,KAAY;IACpD,OAAO;QACL,MAAM,EAAE;YACN,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE;YACV,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ;SACnC;KACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,IAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC;IAC/B,UAAU,EAAE;QACV,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,CAAC;KAClB;IACD,KAAK,kDACA,yBAAgB,CAAC,IAAI,KACxB,WAAW,EAAE,CAAC,EACd,OAAO,EAAE,EAAE,EACX,MAAM,EAAE,CAAC,GACV;IACD,eAAe,EAAE;QACf,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,cAAc;KAC/B;IACD,UAAU,EAAE;QACV,WAAW,EAAE,CAAC;QACd,OAAO,EAAE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P,OAAO,CACL,oBAAC,mBAAI,IAAC,KAAK,EAAE,yBAAgB,CAAC,IAAI;QAChC,oBAAC,mBAAI,sDAAmD;QACxD,oBAAC,mBAAI,IAAC,KAAK,EAAE,MAAM,CAAC,UAAU,IAAG,cAAc,CAAC,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,YAAY,CAAC,IAAI,CAAC,EAAlB,CAAkB,CAAC,CAAQ,CACpF,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,aAAa,GAAkB;IACnC;QACE,IAAI,EAAE,oBAAoB;QAC1B,MAAM,EAAE,uBAAc;QACtB,SAAS,EAAE,KAAK;KACjB;IACD;QACE,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,cAAM,OAAA,oBAAC,UAAU,OAAG,EAAd,CAAc;KAChC;CACF,CAAC;AAEK,IAAM,SAAS,GAA4B;IAChD,IAAM,MAAM,GAAmB;QAC7B,WAAW,EAAE,MAAM;QACnB,SAAS,EAAE,cAAc;QACzB,SAAS,EAAE,cAAc;QACzB,WAAW,EAAE,cAAc;QAC3B,aAAa,EAAE,SAAS;KACzB,CAAC;IAEF,IAAM,WAAW,GACf,6IAA6I,CAAC;IAEhJ,OAAO,oBAAC,WAAI,IAAC,IAAI,EAAC,YAAY,EAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;AACvG,CAAC,CAAC;AAbW,QAAA,SAAS,aAapB"}
@@ -1 +1 @@
1
- {"version":3,"file":"TokenTest.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Tokens/TokenTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAqG/B,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,iBAY7B,CAAC"}
1
+ {"version":3,"file":"TokenTest.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Tokens/TokenTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA0G/B,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,iBAY7B,CAAC"}
@@ -13,6 +13,7 @@ var styles_1 = require("../Common/styles");
13
13
  var react_native_2 = require("@fluentui/react-native");
14
14
  var Test_1 = require("../Test");
15
15
  var consts_1 = require("../../../../E2E/src/Tokens/consts");
16
+ var TestProps_1 = require("../Common/TestProps");
16
17
  var getThemedStyles = (0, themed_stylesheet_1.themedStyleSheet)(function (theme) {
17
18
  return {
18
19
  swatch: {
@@ -47,7 +48,7 @@ var getSwatchColorStyle = function (name, color) {
47
48
  var ColorToken = function (p) {
48
49
  var themedStyles = getThemedStyles((0, theme_types_1.useTheme)());
49
50
  return (React.createElement(react_native_1.View, { style: styles.swatchItem },
50
- React.createElement(react_native_1.View, { style: [getSwatchColorStyle(p.name, p.color), themedStyles.swatch], testID: consts_1.TOKENS_TEST_COMPONENT }),
51
+ React.createElement(react_native_1.View, (0, tslib_1.__assign)({ style: [getSwatchColorStyle(p.name, p.color), themedStyles.swatch] }, (0, TestProps_1.testProps)(consts_1.TOKENS_TEST_COMPONENT))),
51
52
  React.createElement(react_native_2.Text, null, p.name)));
52
53
  };
53
54
  var AliasTokensSwatchList = function () {
@@ -1 +1 @@
1
- {"version":3,"file":"TokenTest.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Tokens/TokenTest.tsx"],"names":[],"mappings":";;;;AAAA,wDAA+B;AAC/B,6CAAuE;AACvE,kEAAqE;AACrE,8EAA4E;AAC5E,sEAA4E;AAC5E,kEAA6E;AAC7E,sEAAyE;AACzE,2CAAoD;AACpD,uDAA8C;AAC9C,gCAA4D;AAC5D,4DAA0F;AAE1F,IAAM,eAAe,GAAG,IAAA,oCAAgB,EAAC,UAAC,KAAY;IACpD,OAAO;QACL,MAAM,EAAE;YACN,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE;YACV,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,CAAC;YACd,WAAW,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gB,CAAC,IAAI;QAChC,oBAAC,mBAAI,iDAA8C;QACnD,oBAAC,mBAAI,IAAC,KAAK,EAAE,MAAM,CAAC,UAAU,IAAG,kBAAkB,CAAC,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,YAAY,CAAC,IAAI,CAAC,EAAlB,CAAkB,CAAC,CAAQ,CACxF,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,aAAa,GAAkB;IACnC;QACE,IAAI,EAAE,oBAAoB;QAC1B,MAAM,EAAE,uBAAc;QACtB,SAAS,EAAE,cAAM,OAAA,oBAAC,qBAAqB,OAAG,EAAzB,CAAyB;KAC3C;CACF,CAAC;AAEK,IAAM,SAAS,GAA4B;IAChD,IAAM,MAAM,GAAmB;QAC7B,WAAW,EAAE,MAAM;QACnB,SAAS,EAAE,SAAS;QACpB,SAAS,EAAE,SAAS;QACpB,WAAW,EAAE,SAAS;QACtB,aAAa,EAAE,SAAS;KACzB,CAAC;IAEF,IAAM,WAAW,GAAG,iHAAiH,CAAC;IAEtI,OAAO,oBAAC,WAAI,IAAC,IAAI,EAAC,YAAY,EAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;AACvG,CAAC,CAAC;AAZW,QAAA,SAAS,aAYpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/tester",
3
- "version": "0.126.12",
3
+ "version": "0.126.13",
4
4
  "description": "A test app to test FluentUI React Native Components during development",
5
5
  "license": "MIT",
6
6
  "author": "Microsoft <fluentuinativeowners@microsoft.com>",
@@ -10,6 +10,7 @@ import { useTheme } from '@fluentui-react-native/theme-types';
10
10
  import { ThemePickers } from './theme/ThemePickers';
11
11
  import { tests } from './testPages';
12
12
  import { ROOT_VIEW } from '../../E2E/src/common/consts';
13
+ import { testProps } from './TestComponents/Common/TestProps';
13
14
 
14
15
  // uncomment the below lines to enable message spy
15
16
  /**
@@ -73,7 +74,8 @@ const Header: React.FunctionComponent<HeaderProps> = React.memo((props) => {
73
74
  style={fluentTesterStyles.testHeader}
74
75
  variant="heroLargeSemibold"
75
76
  color={theme.host.palette?.TextEmphasis}
76
- testID={BASE_TESTPAGE}
77
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
78
+ {...testProps(BASE_TESTPAGE)}
77
79
  >
78
80
  ⚛ FluentUI Tests
79
81
  </Text>
@@ -137,7 +139,11 @@ export const FluentTester: React.FunctionComponent<FluentTesterProps> = (props:
137
139
  const TestList: React.FunctionComponent = React.memo(() => {
138
140
  return (
139
141
  <View style={fluentTesterStyles.testList}>
140
- <ScrollView contentContainerStyle={fluentTesterStyles.testListContainerStyle} testID={TESTPAGE_BUTTONS_SCROLLVIEWER}>
142
+ <ScrollView
143
+ contentContainerStyle={fluentTesterStyles.testListContainerStyle}
144
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
145
+ {...testProps(TESTPAGE_BUTTONS_SCROLLVIEWER)}
146
+ >
141
147
  {sortedTestComponents.map((description, index) => {
142
148
  return (
143
149
  <Button
@@ -146,7 +152,8 @@ export const FluentTester: React.FunctionComponent<FluentTesterProps> = (props:
146
152
  disabled={index == selectedTestIndex}
147
153
  onClick={() => setSelectedTestIndex(index)}
148
154
  style={fluentTesterStyles.testListItem}
149
- testID={description.testPageButton}
155
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
156
+ {...testProps(description.testPageButton)}
150
157
  // This ref so focus can be set on it when the app mounts in win32. Without this, focus won't be set anywhere.
151
158
  {...(index === 0 && { componentRef: focusOnMountRef })}
152
159
  >
@@ -164,7 +171,11 @@ export const FluentTester: React.FunctionComponent<FluentTesterProps> = (props:
164
171
  const MobileTestList: React.FunctionComponent = React.memo(() => {
165
172
  return (
166
173
  <View style={{ ...mobileStyles.testList, display: isTestListVisible ? 'flex' : 'none' }}>
167
- <ScrollView contentContainerStyle={fluentTesterStyles.testListContainerStyle}>
174
+ <ScrollView
175
+ contentContainerStyle={fluentTesterStyles.testListContainerStyle}
176
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
177
+ {...testProps(TESTPAGE_BUTTONS_SCROLLVIEWER)}
178
+ >
168
179
  {sortedTestComponents.map((description, index) => {
169
180
  return (
170
181
  <View key={index}>
@@ -178,9 +189,8 @@ export const FluentTester: React.FunctionComponent<FluentTesterProps> = (props:
178
189
  }
179
190
  }}
180
191
  style={mobileStyles.testListItem}
181
- testID={description.testPageButton}
182
- // Please read http://93days.me/testing-react-native-application/ to understand why we set accessibilityLabel here.
183
- accessibilityLabel={description.testPageButton}
192
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
193
+ {...testProps(description.testPageButton)}
184
194
  >
185
195
  {description.name}
186
196
  </Text>
@@ -203,7 +213,12 @@ export const FluentTester: React.FunctionComponent<FluentTesterProps> = (props:
203
213
 
204
214
  return (
205
215
  // On iOS, the accessible prop must be set to false because iOS does not support nested accessibility elements
206
- <RootView style={themedStyles.root} accessible={Platform.OS !== 'ios'} testID={ROOT_VIEW}>
216
+ <RootView
217
+ style={themedStyles.root}
218
+ accessible={Platform.OS !== 'ios'}
219
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
220
+ {...testProps(ROOT_VIEW)}
221
+ >
207
222
  <Header enableSinglePaneView={enableSinglePaneView} enableBackButtonIOS={!onTestListView} onBackButtonPressedIOS={onBackPress} />
208
223
  <HeaderSeparator />
209
224
  <View style={fluentTesterStyles.testRoot}>
@@ -1,6 +1,7 @@
1
1
  import { Avatar } from '@fluentui-react-native/avatar';
2
2
  import * as React from 'react';
3
3
  import { View } from 'react-native';
4
+ import { testProps } from '../Common/TestProps';
4
5
  import {
5
6
  AVATAR_ACCESSIBILITY_LABEL,
6
7
  AVATAR_ACCESSIBILITY_HINT,
@@ -13,12 +14,18 @@ export const E2EAvatarTest: React.FunctionComponent = () => {
13
14
  return (
14
15
  <View>
15
16
  <Avatar
16
- testID={AVATAR_TEST_COMPONENT}
17
17
  accessibilityHint={AVATAR_ACCESSIBILITY_HINT}
18
18
  accessibilityLabel={AVATAR_ACCESSIBILITY_LABEL}
19
19
  accessibilityRole={AVATAR_ACCESSIBILITY_ROLE}
20
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
21
+ {...testProps(AVATAR_TEST_COMPONENT)}
22
+ />
23
+ <Avatar
24
+ name="Richard"
25
+ badge={{ status: 'available' }}
26
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
27
+ {...testProps(AVATAR_SECONDARY_TEST_COMPONENT)}
20
28
  />
21
- <Avatar testID={AVATAR_SECONDARY_TEST_COMPONENT} name="Richard" badge={{ status: 'available' }} />
22
29
  </View>
23
30
  );
24
31
  };
@@ -1,15 +1,28 @@
1
1
  import { Badge, PresenceBadge } from '@fluentui-react-native/badge';
2
2
  import * as React from 'react';
3
3
  import { View } from 'react-native';
4
+ import { testProps } from '../Common/TestProps';
4
5
  import { BADGE_TEST_COMPONENT, BADGE_SECONDARY_TEST_COMPONENT } from '../../../../E2E/src/Badge/consts';
5
6
 
6
7
  export const E2EBadgeTest: React.FunctionComponent = () => {
7
8
  return (
8
9
  <View>
9
- <Badge testID={BADGE_TEST_COMPONENT} appearance="outline" size="extraLarge" badgeColor="success" shape="square">
10
+ <Badge
11
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
12
+ {...testProps(BADGE_TEST_COMPONENT)}
13
+ appearance="outline"
14
+ size="extraLarge"
15
+ badgeColor="success"
16
+ shape="square"
17
+ >
10
18
  Basic Badge
11
19
  </Badge>
12
- <PresenceBadge testID={BADGE_SECONDARY_TEST_COMPONENT} status="available" outOfOffice={true} />
20
+ <PresenceBadge
21
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
22
+ {...testProps(BADGE_SECONDARY_TEST_COMPONENT)}
23
+ status="available"
24
+ outOfOffice={true}
25
+ />
13
26
  </View>
14
27
  );
15
28
  };
@@ -18,6 +18,7 @@ import {
18
18
  BUTTON_FOCUSABLE_TEST_COMPONENT_LABEL,
19
19
  } from '../../../../E2E/src/Button/consts';
20
20
  import { IViewWin32Props } from '@office-iss/react-native-win32';
21
+ import { testProps } from '../Common/TestProps';
21
22
 
22
23
  export const E2EButtonExperimentalTest: React.FunctionComponent = () => {
23
24
  const [buttonPressed, setButtonPressed] = React.useState(false);
@@ -48,30 +49,53 @@ export const E2EButtonExperimentalTest: React.FunctionComponent = () => {
48
49
  return (
49
50
  <View>
50
51
  <Stack style={stackStyle}>
51
- <Button testID={BUTTON_TEST_COMPONENT} onClick={onClick} accessibilityLabel={BUTTON_ACCESSIBILITY_LABEL}>
52
+ <Button
53
+ onClick={onClick}
54
+ accessibilityLabel={BUTTON_ACCESSIBILITY_LABEL}
55
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
56
+ {...testProps(BUTTON_TEST_COMPONENT)}
57
+ >
52
58
  This is a button for E2E testing
53
59
  </Button>
54
- <Button testID={BUTTON_NO_A11Y_LABEL_COMPONENT} onClick={onClick} accessibilityRole="menuitem">
60
+ <Button
61
+ onClick={onClick}
62
+ accessibilityRole="menuitem"
63
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
64
+ {...testProps(BUTTON_NO_A11Y_LABEL_COMPONENT)}
65
+ >
55
66
  {BUTTON_TEST_COMPONENT_LABEL}
56
67
  </Button>
57
68
  <Button
58
- testID={BUTTON_PRESS_TEST_COMPONENT}
59
69
  onClick={onClick}
60
70
  accessibilityLabel={BUTTON_PRESS_TEST_COMPONENT_LABEL}
61
71
  {...keyPressProps}
72
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
73
+ {...testProps(BUTTON_PRESS_TEST_COMPONENT)}
62
74
  >
63
75
  Press &quot;a&quot; or &quot;b&quot; after focusing this button
64
76
  </Button>
65
77
  <Button
66
- testID={BUTTON_FOCUSABLE_TEST_COMPONENT}
67
78
  onClick={onClick}
68
79
  accessibilityLabel={BUTTON_FOCUSABLE_TEST_COMPONENT_LABEL}
69
80
  focusable={false}
81
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
82
+ {...testProps(BUTTON_FOCUSABLE_TEST_COMPONENT)}
70
83
  >
71
84
  This button isn&apos;t focusable (but isn&apos;t disabled or indeterminate either)
72
85
  </Button>
73
- {buttonPressed ? <Text testID={BUTTON_ON_PRESS}>Button Pressed</Text> : null}
74
- {keyDetected ? <Text testID={BUTTON_ON_KEY}>Button Key Press detected: {keyDetected}</Text> : null}
86
+ {buttonPressed ? (
87
+ <Text
88
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
89
+ {...testProps(BUTTON_ON_PRESS)}
90
+ >
91
+ Button Pressed
92
+ </Text>
93
+ ) : null}
94
+ {keyDetected ? (
95
+ <Text /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */ {...testProps(BUTTON_ON_KEY)}>
96
+ Button Key Press detected: {keyDetected}
97
+ </Text>
98
+ ) : null}
75
99
  </Stack>
76
100
  </View>
77
101
  );
@@ -11,6 +11,7 @@ import {
11
11
  BUTTON_ACCESSIBILITY_LABEL_DEPRECATED,
12
12
  BUTTON_TEST_COMPONENT_LABEL_DEPRECATED,
13
13
  } from '../../../../../E2E/src/Button/consts';
14
+ import { testProps } from '../../Common/TestProps';
14
15
 
15
16
  export const E2EButtonTest_deprecated: React.FunctionComponent = () => {
16
17
  const [buttonPressed, setButtonPressed] = React.useState(false);
@@ -24,12 +25,25 @@ export const E2EButtonTest_deprecated: React.FunctionComponent = () => {
24
25
  <Stack style={stackStyle}>
25
26
  <Button
26
27
  content="This is a button for E2E testing"
27
- testID={BUTTON_TEST_COMPONENT_DEPRECATED}
28
28
  onClick={onClick}
29
29
  accessibilityLabel={BUTTON_ACCESSIBILITY_LABEL_DEPRECATED}
30
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
31
+ {...testProps(BUTTON_TEST_COMPONENT_DEPRECATED)}
30
32
  />
31
- <Button content={BUTTON_TEST_COMPONENT_LABEL_DEPRECATED} testID={BUTTON_NO_A11Y_LABEL_COMPONENT_DEPRECATED} onClick={onClick} />
32
- {buttonPressed ? <Text testID={BUTTON_ON_PRESS_DEPRECATED}>Button Pressed</Text> : null}
33
+ <Button
34
+ content={BUTTON_TEST_COMPONENT_LABEL_DEPRECATED}
35
+ onClick={onClick}
36
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
37
+ {...testProps(BUTTON_NO_A11Y_LABEL_COMPONENT_DEPRECATED)}
38
+ />
39
+ {buttonPressed ? (
40
+ <Text
41
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
42
+ {...testProps(BUTTON_ON_PRESS_DEPRECATED)}
43
+ >
44
+ Button Pressed
45
+ </Text>
46
+ ) : null}
33
47
  </Stack>
34
48
  </View>
35
49
  );
@@ -3,6 +3,7 @@ import { ScreenRect, View } from 'react-native';
3
3
  import { ButtonV1 as Button, Callout, Text, DismissBehaviors } from '@fluentui/react-native';
4
4
  import { Switch } from '@fluentui-react-native/switch';
5
5
  import { BUTTON_TO_OPEN_CALLOUT, CALLOUT_ACCESSIBILITY_LABEL, CALLOUT_TEST_COMPONENT } from '../../../../E2E/src/Callout/consts';
6
+ import { testProps } from '../Common/TestProps';
6
7
 
7
8
  export const E2ECalloutTest: React.FunctionComponent = () => {
8
9
  const [showCallout, setShowCallout] = React.useState(false);
@@ -42,7 +43,11 @@ export const E2ECalloutTest: React.FunctionComponent = () => {
42
43
  />
43
44
  ))}
44
45
  </View>
45
- <Button onClick={toggleShowCallout} testID={BUTTON_TO_OPEN_CALLOUT}>
46
+ <Button
47
+ onClick={toggleShowCallout}
48
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
49
+ {...testProps(BUTTON_TO_OPEN_CALLOUT)}
50
+ >
46
51
  Press for Callout
47
52
  </Button>
48
53
  <Text selectable={true}>
@@ -53,7 +58,6 @@ export const E2ECalloutTest: React.FunctionComponent = () => {
53
58
 
54
59
  {showCallout && (
55
60
  <Callout
56
- testID={CALLOUT_TEST_COMPONENT}
57
61
  anchorRect={myRect}
58
62
  onDismiss={onDismissCallout}
59
63
  onShow={onShowCallout}
@@ -61,6 +65,8 @@ export const E2ECalloutTest: React.FunctionComponent = () => {
61
65
  accessibilityRole="alert"
62
66
  accessibilityOnShowAnnouncement="Be informed that a customized callout has been opened."
63
67
  dismissBehaviors={Object.keys(dismissBehaviors).filter((behavior) => dismissBehaviors[behavior]) as DismissBehaviors[]}
68
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
69
+ {...testProps(CALLOUT_TEST_COMPONENT)}
64
70
  >
65
71
  <View style={{ padding: 20, borderWidth: 2, borderColor: 'black' }}>
66
72
  <Text>just some text so it does not take focus and is not empty.</Text>
@@ -10,6 +10,7 @@ import {
10
10
  CHECKBOX_ACCESSIBILITY_LABEL,
11
11
  } from '../../../../E2E/src/Checkbox/consts';
12
12
  import { Stack } from '@fluentui-react-native/stack';
13
+ import { testProps } from '../Common/TestProps';
13
14
 
14
15
  export const E2ECheckboxTest: React.FunctionComponent = () => {
15
16
  const [checkboxPressed, setCheckboxPressed] = React.useState(false);
@@ -28,11 +29,22 @@ export const E2ECheckboxTest: React.FunctionComponent = () => {
28
29
  accessibilityLabel={CHECKBOX_ACCESSIBILITY_LABEL}
29
30
  disabled={false}
30
31
  label="Testing accessibilityLabel"
31
- testID={CHECKBOX_TEST_COMPONENT}
32
32
  onChange={onClick}
33
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
34
+ {...testProps(CHECKBOX_TEST_COMPONENT)}
33
35
  />
34
- <Checkbox label={CHECKBOX_TEST_COMPONENT_LABEL} testID={CHECKBOX_NO_A11Y_LABEL_COMPONENT} />
35
- {checkboxPressed ? <Text testID={CHECKBOX_ON_PRESS}>Checkbox Selected</Text> : null}
36
+ <Checkbox
37
+ label={CHECKBOX_TEST_COMPONENT_LABEL}
38
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
39
+ {...testProps(CHECKBOX_NO_A11Y_LABEL_COMPONENT)}
40
+ />
41
+ {checkboxPressed ? (
42
+ <Text /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
43
+ {...testProps(CHECKBOX_ON_PRESS)}
44
+ >
45
+ Checkbox Selected
46
+ </Text>
47
+ ) : null}
36
48
  </Stack>
37
49
  </View>
38
50
  );
@@ -11,6 +11,7 @@ import {
11
11
  } from '../../../../E2E/src/CheckboxExperimental/consts';
12
12
  import { Stack } from '@fluentui-react-native/stack';
13
13
  import { Text } from '@fluentui/react-native';
14
+ import { testProps } from '../Common/TestProps';
14
15
 
15
16
  export const E2ECheckboxExperimentalTest: React.FunctionComponent = () => {
16
17
  const [checkboxPressed, setCheckboxPressed] = React.useState(false);
@@ -29,11 +30,23 @@ export const E2ECheckboxExperimentalTest: React.FunctionComponent = () => {
29
30
  accessibilityLabel={EXPERIMENTAL_CHECKBOX_ACCESSIBILITY_LABEL}
30
31
  disabled={false}
31
32
  label="Testing accessibilityLabel"
32
- testID={EXPERIMENTAL_CHECKBOX_TEST_COMPONENT}
33
33
  onChange={onClick}
34
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
35
+ {...testProps(EXPERIMENTAL_CHECKBOX_TEST_COMPONENT)}
34
36
  />
35
- <Checkbox label={EXPERIMENTAL_CHECKBOX_TEST_COMPONENT_LABEL} testID={EXPERIMENTAL_CHECKBOX_NO_A11Y_LABEL_COMPONENT} />
36
- {checkboxPressed ? <Text testID={EXPERIMENTAL_CHECKBOX_ON_PRESS}>Checkbox Selected</Text> : null}
37
+ <Checkbox
38
+ label={EXPERIMENTAL_CHECKBOX_TEST_COMPONENT_LABEL}
39
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
40
+ {...testProps(EXPERIMENTAL_CHECKBOX_NO_A11Y_LABEL_COMPONENT)}
41
+ />
42
+ {checkboxPressed ? (
43
+ <Text
44
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
45
+ {...testProps(EXPERIMENTAL_CHECKBOX_ON_PRESS)}
46
+ >
47
+ Checkbox Selected
48
+ </Text>
49
+ ) : null}
37
50
  </Stack>
38
51
  </View>
39
52
  );
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { Picker } from '@react-native-picker/picker';
3
+ import { testProps } from './TestProps';
3
4
 
4
5
  /*
5
6
  * The MenuPicker was created because the RN Core Picker was deprecated (preventing us from updating to RN 0.66).
@@ -33,14 +34,20 @@ export const MenuPicker: React.FunctionComponent<MenuPickerProps> = (props: Menu
33
34
 
34
35
  return (
35
36
  <Picker
36
- testID={testID}
37
37
  prompt={prompt}
38
38
  selectedValue={selectedItemKey}
39
39
  onValueChange={(value: string, index: number) => onChange(value, index)}
40
40
  style={{ ...style }}
41
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
42
+ {...testProps(testID)}
41
43
  >
42
44
  {collection.map((item, index) => (
43
- <Picker.Item label={item.label} key={index} value={item.value} testID={item.testID} />
45
+ <Picker.Item
46
+ label={item.label}
47
+ key={index}
48
+ value={item.value} /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
49
+ {...testProps(item.testID)}
50
+ />
44
51
  ))}
45
52
  </Picker>
46
53
  );
@@ -0,0 +1,23 @@
1
+ import { Platform } from 'react-native';
2
+ // Please read http://93days.me/testing-react-native-application/ to understand why we set accessibilityLabel here.
3
+
4
+ /**
5
+ * The underlying Android test drivers use accessibilityLabel to find elements. However, all other platforms use testID.
6
+ * Because of this, we're adding the testProps function that takes in a unique identifier and returns the correct prop based on the platform
7
+ * (testID for Win32, Windows, macOS, iOS; accessibilityId for Android).
8
+ *
9
+ * If explict accessibilityLabel is being used for other platforms, apply testProps after it to override it for Android.
10
+ * @param id The string to be used as the test identifier
11
+ * @returns an object with the correct test identifier prop based on platform
12
+ */
13
+ export function testProps(id) {
14
+ return Platform.select({
15
+ android: {
16
+ accessible: true,
17
+ accessibilityLabel: id,
18
+ },
19
+ default: {
20
+ testID: id,
21
+ },
22
+ });
23
+ }
@@ -3,6 +3,7 @@ import * as React from 'react';
3
3
  import { Text, View, Switch } from 'react-native';
4
4
  import { ButtonV1 as Button, ContextualMenu, ContextualMenuItem, Separator } from '@fluentui/react-native';
5
5
  import { CONTEXTUALMENUITEM_TEST_COMPONENT, CONTEXTUALMENU_TEST_COMPONENT } from '../../../../E2E/src/ContextualMenu/consts';
6
+ import { testProps } from '../Common/TestProps';
6
7
 
7
8
  export const E2EContextualMenuTest: React.FunctionComponent = () => {
8
9
  const stdBtnRef = React.useRef(null);
@@ -75,7 +76,12 @@ export const E2EContextualMenuTest: React.FunctionComponent = () => {
75
76
  <Text style={{ color: 'blue' }}>none</Text>
76
77
  )}
77
78
  </Text>
78
- <Button onClick={toggleShowContextualMenu} componentRef={stdBtnRef} testID={CONTEXTUALMENU_TEST_COMPONENT}>
79
+ <Button
80
+ onClick={toggleShowContextualMenu}
81
+ componentRef={stdBtnRef}
82
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
83
+ {...testProps(CONTEXTUALMENU_TEST_COMPONENT)}
84
+ >
79
85
  Press for ContextualMenu
80
86
  </Button>
81
87
  </View>
@@ -92,7 +98,12 @@ export const E2EContextualMenuTest: React.FunctionComponent = () => {
92
98
  shouldFocusOnContainer={focusOnContainer}
93
99
  isBeakVisible={isBeakVisible}
94
100
  >
95
- <ContextualMenuItem text="MenuItem 1" itemKey="1" testID={CONTEXTUALMENUITEM_TEST_COMPONENT} />
101
+ <ContextualMenuItem
102
+ text="MenuItem 1"
103
+ itemKey="1"
104
+ /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
105
+ {...testProps(CONTEXTUALMENUITEM_TEST_COMPONENT)}
106
+ />
96
107
  <ContextualMenuItem text="MenuItem 2" itemKey="2" />
97
108
  <ContextualMenuItem text="Disabled Menu Item" itemKey="3" disabled />
98
109
  <ContextualMenuItem text="MenuItem 4" itemKey="4" />
@@ -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