@fluentui-react-native/tester 0.103.11 → 0.103.12

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 (324) hide show
  1. package/CHANGELOG.json +16 -1
  2. package/CHANGELOG.md +10 -2
  3. package/lib/E2E/ActivityIndicator/pages/ActivityIndicatorPageObject.d.ts +3 -3
  4. package/lib/E2E/ActivityIndicator/pages/ActivityIndicatorPageObject.d.ts.map +1 -1
  5. package/lib/E2E/ActivityIndicator/specs/ActivityIndicator.spec.ios.js +1 -1
  6. package/lib/E2E/ActivityIndicator/specs/ActivityIndicator.spec.ios.js.map +1 -1
  7. package/lib/E2E/Avatar/pages/AvatarPageObject.d.ts +4 -4
  8. package/lib/E2E/Avatar/pages/AvatarPageObject.d.ts.map +1 -1
  9. package/lib/E2E/Avatar/pages/AvatarPageObject.js +36 -28
  10. package/lib/E2E/Avatar/pages/AvatarPageObject.js.map +1 -1
  11. package/lib/E2E/Avatar/specs/Avatar.spec.ios.js +1 -1
  12. package/lib/E2E/Avatar/specs/Avatar.spec.ios.js.map +1 -1
  13. package/lib/E2E/Badge/pages/BasicBadgePageObject.d.ts +4 -4
  14. package/lib/E2E/Badge/pages/BasicBadgePageObject.d.ts.map +1 -1
  15. package/lib/E2E/Badge/pages/BasicBadgePageObject.js +6 -4
  16. package/lib/E2E/Badge/pages/BasicBadgePageObject.js.map +1 -1
  17. package/lib/E2E/Badge/specs/Badge.spec.ios.js +1 -1
  18. package/lib/E2E/Badge/specs/Badge.spec.ios.js.map +1 -1
  19. package/lib/E2E/Button/pages/ButtonPageObject.d.ts +4 -4
  20. package/lib/E2E/Button/pages/ButtonPageObject.d.ts.map +1 -1
  21. package/lib/E2E/Button/specs/Button.spec.ios.js +1 -1
  22. package/lib/E2E/Button/specs/Button.spec.ios.js.map +1 -1
  23. package/lib/E2E/ButtonExperimental/pages/ButtonExperimentalPageObject.d.ts +4 -4
  24. package/lib/E2E/ButtonExperimental/pages/ButtonExperimentalPageObject.d.ts.map +1 -1
  25. package/lib/E2E/Callout/pages/CalloutPageObject.win.d.ts +4 -4
  26. package/lib/E2E/Callout/pages/CalloutPageObject.win.d.ts.map +1 -1
  27. package/lib/E2E/Callout/pages/CalloutPageObject.win.js +12 -9
  28. package/lib/E2E/Callout/pages/CalloutPageObject.win.js.map +1 -1
  29. package/lib/E2E/Checkbox/pages/CheckboxPageObject.d.ts +4 -4
  30. package/lib/E2E/Checkbox/pages/CheckboxPageObject.d.ts.map +1 -1
  31. package/lib/E2E/Checkbox/pages/CheckboxPageObject.js +9 -7
  32. package/lib/E2E/Checkbox/pages/CheckboxPageObject.js.map +1 -1
  33. package/lib/E2E/Checkbox/specs/Checkbox.spec.ios.js +1 -1
  34. package/lib/E2E/Checkbox/specs/Checkbox.spec.ios.js.map +1 -1
  35. package/lib/E2E/CheckboxExperimental/pages/ExperimentalCheckboxPageObject.d.ts +4 -4
  36. package/lib/E2E/CheckboxExperimental/pages/ExperimentalCheckboxPageObject.d.ts.map +1 -1
  37. package/lib/E2E/CheckboxExperimental/pages/ExperimentalCheckboxPageObject.js +9 -7
  38. package/lib/E2E/CheckboxExperimental/pages/ExperimentalCheckboxPageObject.js.map +1 -1
  39. package/lib/E2E/CheckboxExperimental/specs/ExperimentalCheckbox.spec.ios.js +1 -1
  40. package/lib/E2E/CheckboxExperimental/specs/ExperimentalCheckbox.spec.ios.js.map +1 -1
  41. package/lib/E2E/ContextualMenu/pages/ContextualMenuPageObject.win.d.ts +4 -4
  42. package/lib/E2E/ContextualMenu/pages/ContextualMenuPageObject.win.d.ts.map +1 -1
  43. package/lib/E2E/ContextualMenu/pages/ContextualMenuPageObject.win.js +3 -2
  44. package/lib/E2E/ContextualMenu/pages/ContextualMenuPageObject.win.js.map +1 -1
  45. package/lib/E2E/FocusTrapZone/pages/FocusTrapZonePageObject.win.d.ts +3 -3
  46. package/lib/E2E/FocusTrapZone/pages/FocusTrapZonePageObject.win.d.ts.map +1 -1
  47. package/lib/E2E/FocusTrapZone/pages/FocusTrapZonePageObject.win.js +3 -2
  48. package/lib/E2E/FocusTrapZone/pages/FocusTrapZonePageObject.win.js.map +1 -1
  49. package/lib/E2E/FocusZone/pages/FocusZonePageObject.d.ts +10 -10
  50. package/lib/E2E/FocusZone/pages/FocusZonePageObject.d.ts.map +1 -1
  51. package/lib/E2E/FocusZone/pages/FocusZonePageObject.js +3 -2
  52. package/lib/E2E/FocusZone/pages/FocusZonePageObject.js.map +1 -1
  53. package/lib/E2E/Icon/pages/IconPageObject.d.ts +4 -4
  54. package/lib/E2E/Icon/pages/IconPageObject.d.ts.map +1 -1
  55. package/lib/E2E/Icon/specs/Icon.spec.ios.js +1 -1
  56. package/lib/E2E/Icon/specs/Icon.spec.ios.js.map +1 -1
  57. package/lib/E2E/Link/pages/LinkPageObject.d.ts +4 -4
  58. package/lib/E2E/Link/pages/LinkPageObject.d.ts.map +1 -1
  59. package/lib/E2E/Link/specs/Link.spec.ios.js +1 -1
  60. package/lib/E2E/Link/specs/Link.spec.ios.js.map +1 -1
  61. package/lib/E2E/LinkExperimental/pages/LinkPageObject.d.ts +4 -4
  62. package/lib/E2E/LinkExperimental/pages/LinkPageObject.d.ts.map +1 -1
  63. package/lib/E2E/Menu/pages/MenuPageObject.d.ts +6 -6
  64. package/lib/E2E/Menu/pages/MenuPageObject.d.ts.map +1 -1
  65. package/lib/E2E/MenuButton/pages/MenuButtonPageObject.win.d.ts +5 -5
  66. package/lib/E2E/MenuButton/pages/MenuButtonPageObject.win.d.ts.map +1 -1
  67. package/lib/E2E/MenuButton/pages/MenuButtonPageObject.win.js +3 -2
  68. package/lib/E2E/MenuButton/pages/MenuButtonPageObject.win.js.map +1 -1
  69. package/lib/E2E/MenuButtonExperimental/pages/ExperimentalMenuButtonPageObject.win.d.ts +4 -4
  70. package/lib/E2E/MenuButtonExperimental/pages/ExperimentalMenuButtonPageObject.win.d.ts.map +1 -1
  71. package/lib/E2E/Persona/pages/PersonaPageObject.d.ts +3 -3
  72. package/lib/E2E/Persona/pages/PersonaPageObject.d.ts.map +1 -1
  73. package/lib/E2E/Persona/specs/Persona.spec.ios.js +1 -1
  74. package/lib/E2E/Persona/specs/Persona.spec.ios.js.map +1 -1
  75. package/lib/E2E/PersonaCoin/pages/PersonaCoinPageObject.d.ts +3 -3
  76. package/lib/E2E/PersonaCoin/pages/PersonaCoinPageObject.d.ts.map +1 -1
  77. package/lib/E2E/PersonaCoin/specs/PersonaCoin.spec.ios.js +1 -1
  78. package/lib/E2E/PersonaCoin/specs/PersonaCoin.spec.ios.js.map +1 -1
  79. package/lib/E2E/Pressable/pages/PressablePageObject.d.ts +3 -3
  80. package/lib/E2E/Pressable/pages/PressablePageObject.d.ts.map +1 -1
  81. package/lib/E2E/Pressable/specs/Pressable.spec.ios.js +1 -1
  82. package/lib/E2E/Pressable/specs/Pressable.spec.ios.js.map +1 -1
  83. package/lib/E2E/RadioGroup/pages/RadioGroupPageObject.d.ts +8 -8
  84. package/lib/E2E/RadioGroup/pages/RadioGroupPageObject.d.ts.map +1 -1
  85. package/lib/E2E/RadioGroup/pages/RadioGroupPageObject.js +6 -4
  86. package/lib/E2E/RadioGroup/pages/RadioGroupPageObject.js.map +1 -1
  87. package/lib/E2E/Separator/pages/SeparatorPageObject.d.ts +3 -3
  88. package/lib/E2E/Separator/pages/SeparatorPageObject.d.ts.map +1 -1
  89. package/lib/E2E/Separator/specs/Separator.spec.ios.js +1 -1
  90. package/lib/E2E/Separator/specs/Separator.spec.ios.js.map +1 -1
  91. package/lib/E2E/Shimmer/pages/ShimmerPageObject.win.d.ts +3 -3
  92. package/lib/E2E/Shimmer/pages/ShimmerPageObject.win.d.ts.map +1 -1
  93. package/lib/E2E/Shimmer/specs/Shimmer.spec.ios.js +1 -1
  94. package/lib/E2E/Shimmer/specs/Shimmer.spec.ios.js.map +1 -1
  95. package/lib/E2E/Svg/pages/SvgPageObject.d.ts +3 -3
  96. package/lib/E2E/Svg/pages/SvgPageObject.d.ts.map +1 -1
  97. package/lib/E2E/Svg/specs/Svg.spec.ios.js +1 -1
  98. package/lib/E2E/Svg/specs/Svg.spec.ios.js.map +1 -1
  99. package/lib/E2E/Switch/pages/SwitchPageObject.d.ts +4 -4
  100. package/lib/E2E/Switch/pages/SwitchPageObject.d.ts.map +1 -1
  101. package/lib/E2E/Switch/pages/SwitchPageObject.js +9 -7
  102. package/lib/E2E/Switch/pages/SwitchPageObject.js.map +1 -1
  103. package/lib/E2E/Tabs/pages/TabsPageObject.d.ts +9 -9
  104. package/lib/E2E/Tabs/pages/TabsPageObject.d.ts.map +1 -1
  105. package/lib/E2E/Tabs/specs/Tabs.spec.windows.js +0 -2
  106. package/lib/E2E/Tabs/specs/Tabs.spec.windows.js.map +1 -1
  107. package/lib/E2E/TabsExperimental/pages/ExperimentalTabsPageObject.d.ts +4 -4
  108. package/lib/E2E/TabsExperimental/pages/ExperimentalTabsPageObject.d.ts.map +1 -1
  109. package/lib/E2E/TabsExperimental/pages/ExperimentalTabsPageObject.js +3 -2
  110. package/lib/E2E/TabsExperimental/pages/ExperimentalTabsPageObject.js.map +1 -1
  111. package/lib/E2E/Text/pages/TextPageObject.d.ts +4 -4
  112. package/lib/E2E/Text/pages/TextPageObject.d.ts.map +1 -1
  113. package/lib/E2E/Text/specs/Text.spec.ios.js +1 -1
  114. package/lib/E2E/Text/specs/Text.spec.ios.js.map +1 -1
  115. package/lib/E2E/TextExperimental/pages/ExperimentalTextPageObject.win.d.ts +3 -3
  116. package/lib/E2E/TextExperimental/pages/ExperimentalTextPageObject.win.d.ts.map +1 -1
  117. package/lib/E2E/TextExperimental/specs/ExperimentalText.spec.ios.js +1 -1
  118. package/lib/E2E/TextExperimental/specs/ExperimentalText.spec.ios.js.map +1 -1
  119. package/lib/E2E/Theme/pages/ThemePageObject.win.d.ts +3 -3
  120. package/lib/E2E/Theme/pages/ThemePageObject.win.d.ts.map +1 -1
  121. package/lib/E2E/Theme/specs/Theme.spec.ios.js +1 -1
  122. package/lib/E2E/Theme/specs/Theme.spec.ios.js.map +1 -1
  123. package/lib/E2E/Tokens/pages/TokensPageObject.win.d.ts +3 -3
  124. package/lib/E2E/Tokens/pages/TokensPageObject.win.d.ts.map +1 -1
  125. package/lib/E2E/Tokens/specs/Tokens.spec.ios.js +1 -1
  126. package/lib/E2E/Tokens/specs/Tokens.spec.ios.js.map +1 -1
  127. package/lib/E2E/common/BasePage.d.ts +14 -12
  128. package/lib/E2E/common/BasePage.d.ts.map +1 -1
  129. package/lib/E2E/common/BasePage.js +65 -15
  130. package/lib/E2E/common/BasePage.js.map +1 -1
  131. package/lib/E2E/common/NativeTesting/pages/NativeTestingPageObject.win.js +28 -26
  132. package/lib/E2E/common/NativeTesting/pages/NativeTestingPageObject.win.js.map +1 -1
  133. package/lib/E2E/common/NavigateAppPage.d.ts +1 -1
  134. package/lib/E2E/common/NavigateAppPage.d.ts.map +1 -1
  135. package/lib/E2E/common/NavigateAppPage.js +90 -60
  136. package/lib/E2E/common/NavigateAppPage.js.map +1 -1
  137. package/lib/E2E/common/consts.d.ts +1 -0
  138. package/lib/E2E/common/consts.d.ts.map +1 -1
  139. package/lib/E2E/common/consts.js +1 -0
  140. package/lib/E2E/common/consts.js.map +1 -1
  141. package/lib/FluentTester.d.ts.map +1 -1
  142. package/lib/FluentTester.js +4 -1
  143. package/lib/FluentTester.js.map +1 -1
  144. package/lib-commonjs/E2E/ActivityIndicator/pages/ActivityIndicatorPageObject.d.ts +3 -3
  145. package/lib-commonjs/E2E/ActivityIndicator/pages/ActivityIndicatorPageObject.d.ts.map +1 -1
  146. package/lib-commonjs/E2E/ActivityIndicator/specs/ActivityIndicator.spec.ios.js +1 -1
  147. package/lib-commonjs/E2E/ActivityIndicator/specs/ActivityIndicator.spec.ios.js.map +1 -1
  148. package/lib-commonjs/E2E/Avatar/pages/AvatarPageObject.d.ts +4 -4
  149. package/lib-commonjs/E2E/Avatar/pages/AvatarPageObject.d.ts.map +1 -1
  150. package/lib-commonjs/E2E/Avatar/pages/AvatarPageObject.js +36 -28
  151. package/lib-commonjs/E2E/Avatar/pages/AvatarPageObject.js.map +1 -1
  152. package/lib-commonjs/E2E/Avatar/specs/Avatar.spec.ios.js +1 -1
  153. package/lib-commonjs/E2E/Avatar/specs/Avatar.spec.ios.js.map +1 -1
  154. package/lib-commonjs/E2E/Badge/pages/BasicBadgePageObject.d.ts +4 -4
  155. package/lib-commonjs/E2E/Badge/pages/BasicBadgePageObject.d.ts.map +1 -1
  156. package/lib-commonjs/E2E/Badge/pages/BasicBadgePageObject.js +6 -4
  157. package/lib-commonjs/E2E/Badge/pages/BasicBadgePageObject.js.map +1 -1
  158. package/lib-commonjs/E2E/Badge/specs/Badge.spec.ios.js +1 -1
  159. package/lib-commonjs/E2E/Badge/specs/Badge.spec.ios.js.map +1 -1
  160. package/lib-commonjs/E2E/Button/pages/ButtonPageObject.d.ts +4 -4
  161. package/lib-commonjs/E2E/Button/pages/ButtonPageObject.d.ts.map +1 -1
  162. package/lib-commonjs/E2E/Button/specs/Button.spec.ios.js +1 -1
  163. package/lib-commonjs/E2E/Button/specs/Button.spec.ios.js.map +1 -1
  164. package/lib-commonjs/E2E/ButtonExperimental/pages/ButtonExperimentalPageObject.d.ts +4 -4
  165. package/lib-commonjs/E2E/ButtonExperimental/pages/ButtonExperimentalPageObject.d.ts.map +1 -1
  166. package/lib-commonjs/E2E/Callout/pages/CalloutPageObject.win.d.ts +4 -4
  167. package/lib-commonjs/E2E/Callout/pages/CalloutPageObject.win.d.ts.map +1 -1
  168. package/lib-commonjs/E2E/Callout/pages/CalloutPageObject.win.js +12 -9
  169. package/lib-commonjs/E2E/Callout/pages/CalloutPageObject.win.js.map +1 -1
  170. package/lib-commonjs/E2E/Checkbox/pages/CheckboxPageObject.d.ts +4 -4
  171. package/lib-commonjs/E2E/Checkbox/pages/CheckboxPageObject.d.ts.map +1 -1
  172. package/lib-commonjs/E2E/Checkbox/pages/CheckboxPageObject.js +9 -7
  173. package/lib-commonjs/E2E/Checkbox/pages/CheckboxPageObject.js.map +1 -1
  174. package/lib-commonjs/E2E/Checkbox/specs/Checkbox.spec.ios.js +1 -1
  175. package/lib-commonjs/E2E/Checkbox/specs/Checkbox.spec.ios.js.map +1 -1
  176. package/lib-commonjs/E2E/CheckboxExperimental/pages/ExperimentalCheckboxPageObject.d.ts +4 -4
  177. package/lib-commonjs/E2E/CheckboxExperimental/pages/ExperimentalCheckboxPageObject.d.ts.map +1 -1
  178. package/lib-commonjs/E2E/CheckboxExperimental/pages/ExperimentalCheckboxPageObject.js +9 -7
  179. package/lib-commonjs/E2E/CheckboxExperimental/pages/ExperimentalCheckboxPageObject.js.map +1 -1
  180. package/lib-commonjs/E2E/CheckboxExperimental/specs/ExperimentalCheckbox.spec.ios.js +1 -1
  181. package/lib-commonjs/E2E/CheckboxExperimental/specs/ExperimentalCheckbox.spec.ios.js.map +1 -1
  182. package/lib-commonjs/E2E/ContextualMenu/pages/ContextualMenuPageObject.win.d.ts +4 -4
  183. package/lib-commonjs/E2E/ContextualMenu/pages/ContextualMenuPageObject.win.d.ts.map +1 -1
  184. package/lib-commonjs/E2E/ContextualMenu/pages/ContextualMenuPageObject.win.js +3 -2
  185. package/lib-commonjs/E2E/ContextualMenu/pages/ContextualMenuPageObject.win.js.map +1 -1
  186. package/lib-commonjs/E2E/FocusTrapZone/pages/FocusTrapZonePageObject.win.d.ts +3 -3
  187. package/lib-commonjs/E2E/FocusTrapZone/pages/FocusTrapZonePageObject.win.d.ts.map +1 -1
  188. package/lib-commonjs/E2E/FocusTrapZone/pages/FocusTrapZonePageObject.win.js +3 -2
  189. package/lib-commonjs/E2E/FocusTrapZone/pages/FocusTrapZonePageObject.win.js.map +1 -1
  190. package/lib-commonjs/E2E/FocusZone/pages/FocusZonePageObject.d.ts +10 -10
  191. package/lib-commonjs/E2E/FocusZone/pages/FocusZonePageObject.d.ts.map +1 -1
  192. package/lib-commonjs/E2E/FocusZone/pages/FocusZonePageObject.js +3 -2
  193. package/lib-commonjs/E2E/FocusZone/pages/FocusZonePageObject.js.map +1 -1
  194. package/lib-commonjs/E2E/Icon/pages/IconPageObject.d.ts +4 -4
  195. package/lib-commonjs/E2E/Icon/pages/IconPageObject.d.ts.map +1 -1
  196. package/lib-commonjs/E2E/Icon/specs/Icon.spec.ios.js +1 -1
  197. package/lib-commonjs/E2E/Icon/specs/Icon.spec.ios.js.map +1 -1
  198. package/lib-commonjs/E2E/Link/pages/LinkPageObject.d.ts +4 -4
  199. package/lib-commonjs/E2E/Link/pages/LinkPageObject.d.ts.map +1 -1
  200. package/lib-commonjs/E2E/Link/specs/Link.spec.ios.js +1 -1
  201. package/lib-commonjs/E2E/Link/specs/Link.spec.ios.js.map +1 -1
  202. package/lib-commonjs/E2E/LinkExperimental/pages/LinkPageObject.d.ts +4 -4
  203. package/lib-commonjs/E2E/LinkExperimental/pages/LinkPageObject.d.ts.map +1 -1
  204. package/lib-commonjs/E2E/Menu/pages/MenuPageObject.d.ts +6 -6
  205. package/lib-commonjs/E2E/Menu/pages/MenuPageObject.d.ts.map +1 -1
  206. package/lib-commonjs/E2E/MenuButton/pages/MenuButtonPageObject.win.d.ts +5 -5
  207. package/lib-commonjs/E2E/MenuButton/pages/MenuButtonPageObject.win.d.ts.map +1 -1
  208. package/lib-commonjs/E2E/MenuButton/pages/MenuButtonPageObject.win.js +3 -2
  209. package/lib-commonjs/E2E/MenuButton/pages/MenuButtonPageObject.win.js.map +1 -1
  210. package/lib-commonjs/E2E/MenuButtonExperimental/pages/ExperimentalMenuButtonPageObject.win.d.ts +4 -4
  211. package/lib-commonjs/E2E/MenuButtonExperimental/pages/ExperimentalMenuButtonPageObject.win.d.ts.map +1 -1
  212. package/lib-commonjs/E2E/Persona/pages/PersonaPageObject.d.ts +3 -3
  213. package/lib-commonjs/E2E/Persona/pages/PersonaPageObject.d.ts.map +1 -1
  214. package/lib-commonjs/E2E/Persona/specs/Persona.spec.ios.js +1 -1
  215. package/lib-commonjs/E2E/Persona/specs/Persona.spec.ios.js.map +1 -1
  216. package/lib-commonjs/E2E/PersonaCoin/pages/PersonaCoinPageObject.d.ts +3 -3
  217. package/lib-commonjs/E2E/PersonaCoin/pages/PersonaCoinPageObject.d.ts.map +1 -1
  218. package/lib-commonjs/E2E/PersonaCoin/specs/PersonaCoin.spec.ios.js +1 -1
  219. package/lib-commonjs/E2E/PersonaCoin/specs/PersonaCoin.spec.ios.js.map +1 -1
  220. package/lib-commonjs/E2E/Pressable/pages/PressablePageObject.d.ts +3 -3
  221. package/lib-commonjs/E2E/Pressable/pages/PressablePageObject.d.ts.map +1 -1
  222. package/lib-commonjs/E2E/Pressable/specs/Pressable.spec.ios.js +1 -1
  223. package/lib-commonjs/E2E/Pressable/specs/Pressable.spec.ios.js.map +1 -1
  224. package/lib-commonjs/E2E/RadioGroup/pages/RadioGroupPageObject.d.ts +8 -8
  225. package/lib-commonjs/E2E/RadioGroup/pages/RadioGroupPageObject.d.ts.map +1 -1
  226. package/lib-commonjs/E2E/RadioGroup/pages/RadioGroupPageObject.js +6 -4
  227. package/lib-commonjs/E2E/RadioGroup/pages/RadioGroupPageObject.js.map +1 -1
  228. package/lib-commonjs/E2E/Separator/pages/SeparatorPageObject.d.ts +3 -3
  229. package/lib-commonjs/E2E/Separator/pages/SeparatorPageObject.d.ts.map +1 -1
  230. package/lib-commonjs/E2E/Separator/specs/Separator.spec.ios.js +1 -1
  231. package/lib-commonjs/E2E/Separator/specs/Separator.spec.ios.js.map +1 -1
  232. package/lib-commonjs/E2E/Shimmer/pages/ShimmerPageObject.win.d.ts +3 -3
  233. package/lib-commonjs/E2E/Shimmer/pages/ShimmerPageObject.win.d.ts.map +1 -1
  234. package/lib-commonjs/E2E/Shimmer/specs/Shimmer.spec.ios.js +1 -1
  235. package/lib-commonjs/E2E/Shimmer/specs/Shimmer.spec.ios.js.map +1 -1
  236. package/lib-commonjs/E2E/Svg/pages/SvgPageObject.d.ts +3 -3
  237. package/lib-commonjs/E2E/Svg/pages/SvgPageObject.d.ts.map +1 -1
  238. package/lib-commonjs/E2E/Svg/specs/Svg.spec.ios.js +1 -1
  239. package/lib-commonjs/E2E/Svg/specs/Svg.spec.ios.js.map +1 -1
  240. package/lib-commonjs/E2E/Switch/pages/SwitchPageObject.d.ts +4 -4
  241. package/lib-commonjs/E2E/Switch/pages/SwitchPageObject.d.ts.map +1 -1
  242. package/lib-commonjs/E2E/Switch/pages/SwitchPageObject.js +9 -7
  243. package/lib-commonjs/E2E/Switch/pages/SwitchPageObject.js.map +1 -1
  244. package/lib-commonjs/E2E/Tabs/pages/TabsPageObject.d.ts +9 -9
  245. package/lib-commonjs/E2E/Tabs/pages/TabsPageObject.d.ts.map +1 -1
  246. package/lib-commonjs/E2E/Tabs/specs/Tabs.spec.windows.js +0 -2
  247. package/lib-commonjs/E2E/Tabs/specs/Tabs.spec.windows.js.map +1 -1
  248. package/lib-commonjs/E2E/TabsExperimental/pages/ExperimentalTabsPageObject.d.ts +4 -4
  249. package/lib-commonjs/E2E/TabsExperimental/pages/ExperimentalTabsPageObject.d.ts.map +1 -1
  250. package/lib-commonjs/E2E/TabsExperimental/pages/ExperimentalTabsPageObject.js +3 -2
  251. package/lib-commonjs/E2E/TabsExperimental/pages/ExperimentalTabsPageObject.js.map +1 -1
  252. package/lib-commonjs/E2E/Text/pages/TextPageObject.d.ts +4 -4
  253. package/lib-commonjs/E2E/Text/pages/TextPageObject.d.ts.map +1 -1
  254. package/lib-commonjs/E2E/Text/specs/Text.spec.ios.js +1 -1
  255. package/lib-commonjs/E2E/Text/specs/Text.spec.ios.js.map +1 -1
  256. package/lib-commonjs/E2E/TextExperimental/pages/ExperimentalTextPageObject.win.d.ts +3 -3
  257. package/lib-commonjs/E2E/TextExperimental/pages/ExperimentalTextPageObject.win.d.ts.map +1 -1
  258. package/lib-commonjs/E2E/TextExperimental/specs/ExperimentalText.spec.ios.js +1 -1
  259. package/lib-commonjs/E2E/TextExperimental/specs/ExperimentalText.spec.ios.js.map +1 -1
  260. package/lib-commonjs/E2E/Theme/pages/ThemePageObject.win.d.ts +3 -3
  261. package/lib-commonjs/E2E/Theme/pages/ThemePageObject.win.d.ts.map +1 -1
  262. package/lib-commonjs/E2E/Theme/specs/Theme.spec.ios.js +1 -1
  263. package/lib-commonjs/E2E/Theme/specs/Theme.spec.ios.js.map +1 -1
  264. package/lib-commonjs/E2E/Tokens/pages/TokensPageObject.win.d.ts +3 -3
  265. package/lib-commonjs/E2E/Tokens/pages/TokensPageObject.win.d.ts.map +1 -1
  266. package/lib-commonjs/E2E/Tokens/specs/Tokens.spec.ios.js +1 -1
  267. package/lib-commonjs/E2E/Tokens/specs/Tokens.spec.ios.js.map +1 -1
  268. package/lib-commonjs/E2E/common/BasePage.d.ts +14 -12
  269. package/lib-commonjs/E2E/common/BasePage.d.ts.map +1 -1
  270. package/lib-commonjs/E2E/common/BasePage.js +67 -17
  271. package/lib-commonjs/E2E/common/BasePage.js.map +1 -1
  272. package/lib-commonjs/E2E/common/NativeTesting/pages/NativeTestingPageObject.win.js +28 -26
  273. package/lib-commonjs/E2E/common/NativeTesting/pages/NativeTestingPageObject.win.js.map +1 -1
  274. package/lib-commonjs/E2E/common/NavigateAppPage.d.ts +1 -1
  275. package/lib-commonjs/E2E/common/NavigateAppPage.d.ts.map +1 -1
  276. package/lib-commonjs/E2E/common/NavigateAppPage.js +90 -60
  277. package/lib-commonjs/E2E/common/NavigateAppPage.js.map +1 -1
  278. package/lib-commonjs/E2E/common/consts.d.ts +1 -0
  279. package/lib-commonjs/E2E/common/consts.d.ts.map +1 -1
  280. package/lib-commonjs/E2E/common/consts.js +2 -1
  281. package/lib-commonjs/E2E/common/consts.js.map +1 -1
  282. package/lib-commonjs/FluentTester.d.ts.map +1 -1
  283. package/lib-commonjs/FluentTester.js +4 -1
  284. package/lib-commonjs/FluentTester.js.map +1 -1
  285. package/package.json +1 -1
  286. package/src/E2E/ActivityIndicator/specs/ActivityIndicator.spec.ios.ts +1 -2
  287. package/src/E2E/Avatar/pages/AvatarPageObject.ts +8 -8
  288. package/src/E2E/Avatar/specs/Avatar.spec.ios.ts +1 -2
  289. package/src/E2E/Badge/pages/BasicBadgePageObject.ts +2 -2
  290. package/src/E2E/Badge/specs/Badge.spec.ios.ts +1 -2
  291. package/src/E2E/Button/specs/Button.spec.ios.ts +1 -2
  292. package/src/E2E/Callout/pages/CalloutPageObject.win.ts +3 -3
  293. package/src/E2E/Checkbox/pages/CheckboxPageObject.ts +2 -2
  294. package/src/E2E/Checkbox/specs/Checkbox.spec.ios.ts +1 -2
  295. package/src/E2E/CheckboxExperimental/pages/ExperimentalCheckboxPageObject.ts +2 -2
  296. package/src/E2E/CheckboxExperimental/specs/ExperimentalCheckbox.spec.ios.ts +1 -2
  297. package/src/E2E/ContextualMenu/pages/ContextualMenuPageObject.win.ts +1 -1
  298. package/src/E2E/FocusTrapZone/pages/FocusTrapZonePageObject.win.ts +1 -1
  299. package/src/E2E/FocusZone/pages/FocusZonePageObject.ts +1 -1
  300. package/src/E2E/Icon/specs/Icon.spec.ios.ts +1 -2
  301. package/src/E2E/Link/specs/Link.spec.ios.ts +1 -2
  302. package/src/E2E/MenuButton/pages/MenuButtonPageObject.win.ts +1 -1
  303. package/src/E2E/Persona/specs/Persona.spec.ios.ts +1 -2
  304. package/src/E2E/PersonaCoin/specs/PersonaCoin.spec.ios.ts +1 -2
  305. package/src/E2E/Pressable/specs/Pressable.spec.ios.ts +1 -2
  306. package/src/E2E/RadioGroup/pages/RadioGroupPageObject.ts +2 -2
  307. package/src/E2E/Separator/specs/Separator.spec.ios.ts +1 -2
  308. package/src/E2E/Shimmer/specs/Shimmer.spec.ios.ts +1 -2
  309. package/src/E2E/Svg/specs/Svg.spec.ios.ts +1 -2
  310. package/src/E2E/Switch/pages/SwitchPageObject.ts +2 -2
  311. package/src/E2E/Tabs/specs/Tabs.spec.windows.ts +0 -2
  312. package/src/E2E/TabsExperimental/pages/ExperimentalTabsPageObject.ts +1 -1
  313. package/src/E2E/Text/specs/Text.spec.ios.ts +1 -2
  314. package/src/E2E/TextExperimental/specs/ExperimentalText.spec.ios.ts +1 -2
  315. package/src/E2E/Theme/specs/Theme.spec.ios.ts +1 -2
  316. package/src/E2E/Tokens/specs/Tokens.spec.ios.ts +1 -2
  317. package/src/E2E/common/BasePage.ts +45 -16
  318. package/src/E2E/common/NativeTesting/pages/NativeTestingPageObject.win.ts +2 -2
  319. package/src/E2E/common/NavigateAppPage.ts +30 -30
  320. package/src/E2E/common/consts.ts +2 -0
  321. package/src/FluentTester.tsx +3 -1
  322. package/wdio.conf.ios.js +1 -0
  323. package/wdio.conf.macos.js +1 -0
  324. package/wdio.conf.windows.js +1 -0
@@ -11,13 +11,13 @@ class CalloutPageObject extends BasePage {
11
11
  /**************** UI Element Interaction Methods ******************/
12
12
  /******************************************************************/
13
13
  async didCalloutLoad(): Promise<boolean> {
14
- return await this._primaryComponent.isDisplayed();
14
+ return await (await this._primaryComponent).isDisplayed();
15
15
  }
16
16
 
17
17
  /* OVERRIDE: This must scroll to the button that opens the callout, not the callout (since it's not visible on load.) */
18
18
  async scrollToTestElement(): Promise<void> {
19
- while (!(await this._buttonToOpenCallout.isDisplayed())) {
20
- await driver.touchScroll(COMPONENT_SCROLL_COORDINATES.x, COMPONENT_SCROLL_COORDINATES.y, await this._testPage.elementId);
19
+ while (!(await (await this._buttonToOpenCallout).isDisplayed())) {
20
+ await driver.touchScroll(COMPONENT_SCROLL_COORDINATES.x, COMPONENT_SCROLL_COORDINATES.y, await (await this._testPage).elementId);
21
21
  }
22
22
  }
23
23
 
@@ -18,7 +18,7 @@ class CheckboxPageObject extends BasePage {
18
18
  /**************** UI Element Interaction Methods ******************/
19
19
  /******************************************************************/
20
20
  async isCheckboxChecked(): Promise<boolean> {
21
- return await this._primaryComponent.isSelected();
21
+ return await (await this._primaryComponent).isSelected();
22
22
  }
23
23
 
24
24
  async waitForCheckboxChecked(timeout?: number): Promise<void> {
@@ -32,7 +32,7 @@ class CheckboxPageObject extends BasePage {
32
32
  /* Useful in beforeEach() hook to reset the checkbox before every test */
33
33
  async toggleCheckboxToUnchecked(): Promise<void> {
34
34
  if (await this.isCheckboxChecked()) {
35
- await this._primaryComponent.click();
35
+ await (await this._primaryComponent).click();
36
36
  }
37
37
  }
38
38
 
@@ -1,7 +1,6 @@
1
1
  import NavigateAppPage from '../../common/NavigateAppPage';
2
2
  import CheckboxPageObject from '../pages/CheckboxPageObject';
3
3
  import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
4
- import { MobilePlatform } from '../../common/BasePage';
5
4
 
6
5
  describe('Checkbox Testing Initialization', () => {
7
6
  it('Wait for app load', async () => {
@@ -10,7 +9,7 @@ describe('Checkbox Testing Initialization', () => {
10
9
  });
11
10
 
12
11
  it('Click and navigate to Checkbox test page', async () => {
13
- await CheckboxPageObject.mobileScrollToComponentButton(MobilePlatform.iOS);
12
+ await CheckboxPageObject.mobileScrollToComponentButton();
14
13
  await CheckboxPageObject.waitForButtonDisplayed(PAGE_TIMEOUT);
15
14
 
16
15
  /* Click on component button to navigate to test page */
@@ -18,7 +18,7 @@ class ExperimentalCheckboxPageObject extends BasePage {
18
18
  /**************** UI Element Interaction Methods ******************/
19
19
  /******************************************************************/
20
20
  async isCheckboxChecked(): Promise<boolean> {
21
- return await this._primaryComponent.isSelected();
21
+ return await (await this._primaryComponent).isSelected();
22
22
  }
23
23
 
24
24
  async waitForCheckboxChecked(timeout?: number): Promise<void> {
@@ -32,7 +32,7 @@ class ExperimentalCheckboxPageObject extends BasePage {
32
32
  /* Useful in beforeEach() hook to reset the checkbox before every test */
33
33
  async toggleCheckboxToUnchecked(): Promise<void> {
34
34
  if (await this.isCheckboxChecked()) {
35
- await this._primaryComponent.click();
35
+ await (await this._primaryComponent).click();
36
36
  }
37
37
  }
38
38
 
@@ -1,7 +1,6 @@
1
1
  import NavigateAppPage from '../../common/NavigateAppPage';
2
2
  import ExperimentalCheckboxPageObject from '../pages/ExperimentalCheckboxPageObject';
3
3
  import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
4
- import { MobilePlatform } from '../../common/BasePage';
5
4
 
6
5
  describe('Experimental Checkbox Testing Initialization', () => {
7
6
  it('Wait for app load', async () => {
@@ -10,7 +9,7 @@ describe('Experimental Checkbox Testing Initialization', () => {
10
9
  });
11
10
 
12
11
  it('Click and navigate to Experimental Checkbox test page', async () => {
13
- await ExperimentalCheckboxPageObject.mobileScrollToComponentButton(MobilePlatform.iOS);
12
+ await ExperimentalCheckboxPageObject.mobileScrollToComponentButton();
14
13
  await ExperimentalCheckboxPageObject.waitForButtonDisplayed(PAGE_TIMEOUT);
15
14
 
16
15
  /* Click on component button to navigate to test page */
@@ -27,7 +27,7 @@ class ContextualMenuPageObject extends BasePage {
27
27
 
28
28
  /* Whether the contextual menu item is displayed or not. It should be displayed after clicking on the MenuButton */
29
29
  async contextualMenuItemDisplayed(): Promise<boolean> {
30
- return await this._contextualMenuItem.isDisplayed();
30
+ return await (await this._contextualMenuItem).isDisplayed();
31
31
  }
32
32
 
33
33
  /* Sends a Keyboarding command on a specific UI element */
@@ -10,7 +10,7 @@ class FocusTrapZonePageObject extends BasePage {
10
10
  // a wrapper that adds keyboard focus functionality
11
11
  async waitForPrimaryElementDisplayed(timeout?: number): Promise<void> {
12
12
  const errorMsg = 'The FocusTrapZone UI Element did not load correctly. Please see logs.';
13
- await this.waitForCondition(async () => await this._primaryComponent.isExisting(), errorMsg, timeout);
13
+ await this.waitForCondition(async () => await (await this._primaryComponent).isExisting(), errorMsg, timeout);
14
14
  }
15
15
 
16
16
  /*****************************************/
@@ -47,7 +47,7 @@ type BooleanGridFocusZoneOption =
47
47
  class FocusZonePageObject extends BasePage {
48
48
  async waitForPrimaryElementDisplayed(timeout?: number): Promise<void> {
49
49
  const errorMsg = 'The FocusZone UI Element did not load correctly. Please see logs.';
50
- await this.waitForCondition(async () => await this._primaryComponent.isDisplayed(), errorMsg, timeout);
50
+ await this.waitForCondition(async () => await (await this._primaryComponent).isDisplayed(), errorMsg, timeout);
51
51
  }
52
52
 
53
53
  async resetTest() {
@@ -1,7 +1,6 @@
1
1
  import NavigateAppPage from '../../common/NavigateAppPage';
2
2
  import IconPageObject from '../pages/IconPageObject';
3
3
  import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
4
- import { MobilePlatform } from '../../common/BasePage';
5
4
 
6
5
  // Before testing begins, allow up to 60 seconds for app to open
7
6
  describe('Icon Testing Initialization', function () {
@@ -11,7 +10,7 @@ describe('Icon Testing Initialization', function () {
11
10
  });
12
11
 
13
12
  it('Click and navigate to Icon test page', async () => {
14
- await IconPageObject.mobileScrollToComponentButton(MobilePlatform.iOS);
13
+ await IconPageObject.mobileScrollToComponentButton();
15
14
  await IconPageObject.waitForButtonDisplayed(PAGE_TIMEOUT);
16
15
 
17
16
  /* Click on component button to navigate to test page */
@@ -1,7 +1,6 @@
1
1
  import NavigateAppPage from '../../common/NavigateAppPage';
2
2
  import LinkPageObject from '../pages/LinkPageObject';
3
3
  import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
4
- import { MobilePlatform } from '../../common/BasePage';
5
4
 
6
5
  // Before testing begins, allow up to 60 seconds for app to open
7
6
  describe('Link Testing Initialization', function () {
@@ -11,7 +10,7 @@ describe('Link Testing Initialization', function () {
11
10
  });
12
11
 
13
12
  it('Click and navigate to Link test page', async () => {
14
- await LinkPageObject.mobileScrollToComponentButton(MobilePlatform.iOS);
13
+ await LinkPageObject.mobileScrollToComponentButton();
15
14
  await LinkPageObject.waitForButtonDisplayed(PAGE_TIMEOUT);
16
15
 
17
16
  /* Click on component button to navigate to test page */
@@ -26,7 +26,7 @@ class MenuButtonPageObject extends BasePage {
26
26
 
27
27
  /* Whether the menu item is displayed or not. It should be displayed after clicking on the MenuButton */
28
28
  async menuItemDisplayed(): Promise<boolean> {
29
- return await this._menuItem.isDisplayed();
29
+ return await (await this._menuItem).isDisplayed();
30
30
  }
31
31
 
32
32
  /* Sends a Keyboarding command on a specific UI element */
@@ -1,7 +1,6 @@
1
1
  import NavigateAppPage from '../../common/NavigateAppPage';
2
2
  import PersonaPageObject from '../pages/PersonaPageObject';
3
3
  import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
4
- import { MobilePlatform } from '../../common/BasePage';
5
4
 
6
5
  // Before testing begins, allow up to 60 seconds for app to open
7
6
  describe('Persona Testing Initialization', function () {
@@ -11,7 +10,7 @@ describe('Persona Testing Initialization', function () {
11
10
  });
12
11
 
13
12
  it('Click and navigate to Persona test page', async () => {
14
- await PersonaPageObject.mobileScrollToComponentButton(MobilePlatform.iOS);
13
+ await PersonaPageObject.mobileScrollToComponentButton();
15
14
  await PersonaPageObject.waitForButtonDisplayed(PAGE_TIMEOUT);
16
15
 
17
16
  /* Click on component button to navigate to test page */
@@ -1,7 +1,6 @@
1
1
  import NavigateAppPage from '../../common/NavigateAppPage';
2
2
  import PersonaCoinPageObject from '../pages/PersonaCoinPageObject';
3
3
  import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
4
- import { MobilePlatform } from '../../common/BasePage';
5
4
 
6
5
  // Before testing begins, allow up to 60 seconds for app to open
7
6
  describe('PersonaCoin Testing Initialization', function () {
@@ -11,7 +10,7 @@ describe('PersonaCoin Testing Initialization', function () {
11
10
  });
12
11
 
13
12
  it('Click and navigate to PersonaCoin test page', async () => {
14
- await PersonaCoinPageObject.mobileScrollToComponentButton(MobilePlatform.iOS);
13
+ await PersonaCoinPageObject.mobileScrollToComponentButton();
15
14
  await PersonaCoinPageObject.waitForButtonDisplayed(PAGE_TIMEOUT);
16
15
 
17
16
  /* Click on component button to navigate to test page */
@@ -1,7 +1,6 @@
1
1
  import NavigateAppPage from '../../common/NavigateAppPage';
2
2
  import PressablePageObject from '../pages/PressablePageObject';
3
3
  import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
4
- import { MobilePlatform } from '../../common/BasePage';
5
4
 
6
5
  // Before testing begins, allow up to 60 seconds for app to open
7
6
  describe('Pressable Testing Initialization', function () {
@@ -11,7 +10,7 @@ describe('Pressable Testing Initialization', function () {
11
10
  });
12
11
 
13
12
  it('Click and navigate to Pressable test page', async () => {
14
- await PressablePageObject.mobileScrollToComponentButton(MobilePlatform.iOS);
13
+ await PressablePageObject.mobileScrollToComponentButton();
15
14
  await PressablePageObject.waitForButtonDisplayed(PAGE_TIMEOUT);
16
15
 
17
16
  /* Click on component button to navigate to test page */
@@ -32,11 +32,11 @@ class RadioGroupPage extends BasePage {
32
32
  /* This resets the RadioGroup selection by clicking/selecting the 1st RadioButton in the RadioGroup.
33
33
  * Useful in beforeEach() hooks to reset the RadioGroup before additional tests */
34
34
  async resetRadioGroupSelection(): Promise<void> {
35
- await this._firstRadioButton.click();
35
+ await (await this._firstRadioButton).click();
36
36
  }
37
37
 
38
38
  async getRadioButtonAccesibilityRole(): Promise<string> {
39
- return await this._firstRadioButton.getAttribute('ControlType');
39
+ return await (await this._firstRadioButton).getAttribute('ControlType');
40
40
  }
41
41
 
42
42
  async isRadioButtonSelected(radioButtonSelector: RadioButtonSelector): Promise<boolean> {
@@ -1,7 +1,6 @@
1
1
  import NavigateAppPage from '../../common/NavigateAppPage';
2
2
  import SeparatorPageObject from '../pages/SeparatorPageObject';
3
3
  import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
4
- import { MobilePlatform } from '../../common/BasePage';
5
4
 
6
5
  // Before testing begins, allow up to 60 seconds for app to open
7
6
  describe('Separator Testing Initialization', function () {
@@ -11,7 +10,7 @@ describe('Separator Testing Initialization', function () {
11
10
  });
12
11
 
13
12
  it('Click and navigate to Separator test page', async () => {
14
- await SeparatorPageObject.mobileScrollToComponentButton(MobilePlatform.iOS);
13
+ await SeparatorPageObject.mobileScrollToComponentButton();
15
14
  await SeparatorPageObject.waitForButtonDisplayed(PAGE_TIMEOUT);
16
15
 
17
16
  /* Click on component button to navigate to test page */
@@ -1,7 +1,6 @@
1
1
  import NavigateAppPage from '../../common/NavigateAppPage';
2
2
  import ShimmerPageObject from '../pages/ShimmerPageObject.win';
3
3
  import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
4
- import { MobilePlatform } from '../../common/BasePage';
5
4
 
6
5
  // Before testing begins, allow up to 60 seconds for app to open
7
6
  describe('Shimmer Testing Initialization', function () {
@@ -11,7 +10,7 @@ describe('Shimmer Testing Initialization', function () {
11
10
  });
12
11
 
13
12
  it('Click and navigate to Shimmer test page', async () => {
14
- await ShimmerPageObject.mobileScrollToComponentButton(MobilePlatform.iOS);
13
+ await ShimmerPageObject.mobileScrollToComponentButton();
15
14
  await ShimmerPageObject.waitForButtonDisplayed(PAGE_TIMEOUT);
16
15
 
17
16
  /* Click on component button to navigate to test page */
@@ -1,7 +1,6 @@
1
1
  import NavigateAppPage from '../../common/NavigateAppPage';
2
2
  import SvgPageObject from '../pages/SvgPageObject';
3
3
  import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
4
- import { MobilePlatform } from '../../common/BasePage';
5
4
 
6
5
  // Before testing begins, allow up to 60 seconds for app to open
7
6
  describe('Svg Testing Initialization', function () {
@@ -11,7 +10,7 @@ describe('Svg Testing Initialization', function () {
11
10
  });
12
11
 
13
12
  it('Click and navigate to Svg test page', async () => {
14
- await SvgPageObject.mobileScrollToComponentButton(MobilePlatform.iOS);
13
+ await SvgPageObject.mobileScrollToComponentButton();
15
14
  await SvgPageObject.waitForButtonDisplayed(PAGE_TIMEOUT);
16
15
 
17
16
  /* Click on component button to navigate to test page */
@@ -19,7 +19,7 @@ class SwitchPageObject extends BasePage {
19
19
  /**************** UI Element Interaction Methods ******************/
20
20
  /******************************************************************/
21
21
  async isSwitchChecked(): Promise<boolean> {
22
- return await this._primaryComponent.isSelected();
22
+ return await (await this._primaryComponent).isSelected();
23
23
  }
24
24
 
25
25
  async waitForSwitchChecked(timeout?: number): Promise<void> {
@@ -32,7 +32,7 @@ class SwitchPageObject extends BasePage {
32
32
 
33
33
  async toggleSwitchToUnchecked(): Promise<void> {
34
34
  if (await this.isSwitchChecked()) {
35
- await this._primaryComponent.click();
35
+ await (await this._primaryComponent).click();
36
36
  }
37
37
  }
38
38
 
@@ -10,8 +10,6 @@ describe('Tabs Testing Initialization', function () {
10
10
  });
11
11
 
12
12
  it('Click and navigate to Tabs test page', async () => {
13
- /* Scroll to component test page button in scrollview if not already visible*/
14
-
15
13
  /* Click on component button to navigate to test page */
16
14
  await NavigateAppPage.clickAndGoToTabsPage();
17
15
  await TabsPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
@@ -11,7 +11,7 @@ class ExperimentalTabsPageObject extends BasePage {
11
11
  /**************** UI Element Interaction Methods ******************/
12
12
  /******************************************************************/
13
13
  async getTabItemAccesibilityRole(): Promise<string> {
14
- return await this._tabItem.getAttribute('ControlType');
14
+ return await (await this._tabItem).getAttribute('ControlType');
15
15
  }
16
16
 
17
17
  /*****************************************/
@@ -1,7 +1,6 @@
1
1
  import NavigateAppPage from '../../common/NavigateAppPage';
2
2
  import TextPageObject from '../pages/TextPageObject';
3
3
  import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
4
- import { MobilePlatform } from '../../common/BasePage';
5
4
 
6
5
  // Before testing begins, allow up to 60 seconds for app to open
7
6
  describe('Text Testing Initialization', function () {
@@ -11,7 +10,7 @@ describe('Text Testing Initialization', function () {
11
10
  });
12
11
 
13
12
  it('Click and navigate to Text test page', async () => {
14
- await TextPageObject.mobileScrollToComponentButton(MobilePlatform.iOS);
13
+ await TextPageObject.mobileScrollToComponentButton();
15
14
  await TextPageObject.waitForButtonDisplayed(PAGE_TIMEOUT);
16
15
 
17
16
  /* Click on component button to navigate to test page */
@@ -1,7 +1,6 @@
1
1
  import NavigateAppPage from '../../common/NavigateAppPage';
2
2
  import ExperimentalTextPageObject from '../pages/ExperimentalTextPageObject.win';
3
3
  import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
4
- import { MobilePlatform } from '../../common/BasePage';
5
4
 
6
5
  // Before testing begins, allow up to 60 seconds for app to open
7
6
  describe('Experimental Text Testing Initialization', function () {
@@ -11,7 +10,7 @@ describe('Experimental Text Testing Initialization', function () {
11
10
  });
12
11
 
13
12
  it('Click and navigate to Experimental Text test page', async () => {
14
- await ExperimentalTextPageObject.mobileScrollToComponentButton(MobilePlatform.iOS);
13
+ await ExperimentalTextPageObject.mobileScrollToComponentButton();
15
14
  await ExperimentalTextPageObject.waitForButtonDisplayed(PAGE_TIMEOUT);
16
15
 
17
16
  /* Click on component button to navigate to test page */
@@ -1,7 +1,6 @@
1
1
  import NavigateAppPage from '../../common/NavigateAppPage';
2
2
  import ThemePageObject from '../pages/ThemePageObject.win';
3
3
  import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
4
- import { MobilePlatform } from '../../common/BasePage';
5
4
 
6
5
  // Before testing begins, allow up to 60 seconds for app to open
7
6
  describe('Theme Testing Initialization', function () {
@@ -11,7 +10,7 @@ describe('Theme Testing Initialization', function () {
11
10
  });
12
11
 
13
12
  it('Click and navigate to Theme test page', async () => {
14
- await ThemePageObject.mobileScrollToComponentButton(MobilePlatform.iOS);
13
+ await ThemePageObject.mobileScrollToComponentButton();
15
14
  await ThemePageObject.waitForButtonDisplayed(PAGE_TIMEOUT);
16
15
 
17
16
  /* Click on component button to navigate to test page */
@@ -1,7 +1,6 @@
1
1
  import NavigateAppPage from '../../common/NavigateAppPage';
2
2
  import TokenPageObject from '../pages/TokensPageObject.win';
3
3
  import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
4
- import { MobilePlatform } from '../../common/BasePage';
5
4
 
6
5
  // Before testing begins, allow up to 60 seconds for app to open
7
6
  describe('Tokens Testing Initialization', function () {
@@ -11,7 +10,7 @@ describe('Tokens Testing Initialization', function () {
11
10
  });
12
11
 
13
12
  it('Click and navigate to Tokens test page', async () => {
14
- await TokenPageObject.mobileScrollToComponentButton(MobilePlatform.iOS);
13
+ await TokenPageObject.mobileScrollToComponentButton();
15
14
  await TokenPageObject.waitForButtonDisplayed(PAGE_TIMEOUT);
16
15
 
17
16
  /* Click on component button to navigate to test page */
@@ -1,13 +1,36 @@
1
- import { Keys } from './consts';
1
+ import { Keys, ROOT_VIEW } from './consts';
2
2
  import { TESTPAGE_BUTTONS_SCROLLVIEWER } from '../../TestComponents/Common/consts';
3
3
  import { Attribute } from './consts';
4
4
 
5
5
  const DUMMY_CHAR = '';
6
+ // The E2ETEST_PLATFORM environment variable should be set in the beforeSession hook in the wdio.conf file for the respective platform
7
+ const PLATFORM = process.env['E2ETEST_PLATFORM'];
6
8
  export const COMPONENT_SCROLL_COORDINATES = { x: -0, y: -100 }; // These are the offsets. Y is negative because we want the touch to move up (and thus it scrolls down)
7
9
 
10
+ let rootView: WebdriverIO.Element | null = null;
11
+
8
12
  /* Win32/UWP-Specific Selector. We use this to get elements on the test page */
9
- export function By(identifier: string) {
10
- return $('~' + identifier);
13
+ export async function By(identifier: string) {
14
+ if (PLATFORM === NativePlatform.Windows) {
15
+ // For some reason, the rootView node is never put into the element tree on the UWP tester. Remove this when fixed.
16
+ return await $('~' + identifier);
17
+ }
18
+ return await QueryWithChaining(identifier);
19
+ }
20
+
21
+ async function QueryWithChaining(identifier) {
22
+ if (rootView === null) {
23
+ // Most of the elements we're searching for will be children of this rootView node.
24
+ rootView = await $('~' + ROOT_VIEW);
25
+ }
26
+ const selector = '~' + identifier;
27
+ let queryResult: WebdriverIO.Element;
28
+ queryResult = await rootView.$(selector);
29
+ if (queryResult.error) {
30
+ // In some cases, such as opened ContextualMenu items, the element nodes are not children of the rootView node, meaning we need to start our search from the top of the tree.
31
+ queryResult = await $(selector);
32
+ }
33
+ return queryResult;
11
34
  }
12
35
 
13
36
  /* The values in this enum map to the UI components we want to test in our app. We use this to
@@ -19,14 +42,14 @@ export const enum ComponentSelector {
19
42
  }
20
43
 
21
44
  export const enum MobilePlatform {
22
- iOS = 0,
23
- Android,
45
+ iOS = 'ios',
46
+ Android = 'android',
24
47
  }
25
48
 
26
49
  export const enum NativePlatform {
27
- Win32 = 0,
28
- Windows,
29
- macOS,
50
+ Win32 = 'win32',
51
+ Windows = 'windows',
52
+ macOS = 'macos',
30
53
  }
31
54
 
32
55
  export type Platform = MobilePlatform | NativePlatform;
@@ -39,6 +62,13 @@ export type Platform = MobilePlatform | NativePlatform;
39
62
  *********************************************************************************************************/
40
63
 
41
64
  export class BasePage {
65
+ private platform?: Platform;
66
+
67
+ constructor() {
68
+ if (PLATFORM) {
69
+ this.platform = PLATFORM as Platform;
70
+ }
71
+ }
42
72
  /******************************************************************/
43
73
  /**************** UI Element Interaction Methods ******************/
44
74
  /******************************************************************/
@@ -61,16 +91,16 @@ export class BasePage {
61
91
  * If this UI element is located, we know the page as loaded correctly. The UI element we look for is a Text component that contains
62
92
  * the title of the page (this._testPage returns that UI element) */
63
93
  async isPageLoaded(): Promise<boolean> {
64
- return await this._testPage.isDisplayed();
94
+ return (await this._testPage).isDisplayed();
65
95
  }
66
96
 
67
97
  /* Returns true if the test page's button is displayed (the button that navigates to each test page) */
68
98
  async isButtonInView(): Promise<boolean> {
69
- return await this._pageButton.isDisplayed();
99
+ return await (await this._pageButton).isDisplayed();
70
100
  }
71
101
 
72
102
  async clickComponent(): Promise<void> {
73
- await this._primaryComponent.click();
103
+ await (await this._primaryComponent).click();
74
104
  }
75
105
 
76
106
  async getElementAttribute(element: WebdriverIO.Element, attribute: Attribute) {
@@ -78,9 +108,8 @@ export class BasePage {
78
108
  }
79
109
 
80
110
  /* Scrolls until the desired test page's button is displayed. We use the scroll viewer UI element as the point to start scrolling.
81
- * We use a negative number as the Y-coordinate because that enables us to scroll downwards.
82
- * There are no need for win32 and macos cases, as the click command automatically scrolls the element into view. */
83
- async mobileScrollToComponentButton(platform: MobilePlatform): Promise<void> {
111
+ * We use a negative number as the Y-coordinate because that enables us to scroll downwards */
112
+ async mobileScrollToComponentButton(): Promise<void> {
84
113
  if (await (await this._pageButton).isDisplayed()) {
85
114
  return;
86
115
  }
@@ -88,7 +117,7 @@ export class BasePage {
88
117
  const errorMsg =
89
118
  'Could not scroll to the ' + this._pageName + "'s Button. Please see Pipeline artifacts for more debugging information.";
90
119
 
91
- switch (platform) {
120
+ switch (this.platform) {
92
121
  case MobilePlatform.iOS: {
93
122
  await browser.waitUntil(
94
123
  async () => {
@@ -129,7 +158,7 @@ export class BasePage {
129
158
 
130
159
  /* Waits for the primary UI test element to be displayed. If the element doesn't load before the timeout, it causes the test to fail. */
131
160
  async waitForPrimaryElementDisplayed(timeout?: number): Promise<void> {
132
- await browser.waitUntil(async () => await this._primaryComponent.isDisplayed(), {
161
+ await browser.waitUntil(async () => await (await this._primaryComponent).isDisplayed(), {
133
162
  timeout: timeout ?? this.waitForUiEvent,
134
163
  timeoutMsg:
135
164
  'The primary UI element for testing did not display correctly. Please see /errorShots of the first failed test for more information.',
@@ -12,14 +12,14 @@ class NativeTestingPageObject extends BasePage {
12
12
  }
13
13
 
14
14
  async doesScrollViewParentExist(): Promise<boolean> {
15
- return await this._testPageButtonScrollViewer.isDisplayed();
15
+ return await (await this._testPageButtonScrollViewer).isDisplayed();
16
16
  }
17
17
 
18
18
  /* Validate the Children of the ScrollView stay intact. The children are the buttons that
19
19
  * navigate to each test page. Also, validate these children exist with the proper testId format */
20
20
  async validateScrollViewChildren(): Promise<boolean> {
21
21
  // Gets all the children
22
- const testChildren = await this._testPageButtonScrollViewer.$$('//*');
22
+ const testChildren = await (await this._testPageButtonScrollViewer).$$('//*');
23
23
  let foundValidButton = false;
24
24
 
25
25
  // Ensure the testID (maps 1:1 to automationId) properties of the button children match the defined testing format