@fluentui-react-native/tester 0.52.1 → 0.53.2

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 (177) hide show
  1. package/CHANGELOG.json +157 -1
  2. package/CHANGELOG.md +50 -2
  3. package/lib/E2E/ActivityIndicator/specs/ActivityIndicator.spec.win.js +3 -2
  4. package/lib/E2E/ActivityIndicator/specs/ActivityIndicator.spec.win.js.map +1 -1
  5. package/lib/E2E/Button/specs/Button.spec.win.js +9 -2
  6. package/lib/E2E/Button/specs/Button.spec.win.js.map +1 -1
  7. package/lib/E2E/ButtonExperimental/specs/ButtonExperimental.spec.win.js +6 -2
  8. package/lib/E2E/ButtonExperimental/specs/ButtonExperimental.spec.win.js.map +1 -1
  9. package/lib/E2E/Callout/specs/Callout.spec.win.js +3 -2
  10. package/lib/E2E/Callout/specs/Callout.spec.win.js.map +1 -1
  11. package/lib/E2E/Checkbox/specs/Checkbox.spec.win.js +8 -2
  12. package/lib/E2E/Checkbox/specs/Checkbox.spec.win.js.map +1 -1
  13. package/lib/E2E/CheckboxExperimental/specs/ExperimentalCheckbox.spec.win.js +6 -2
  14. package/lib/E2E/CheckboxExperimental/specs/ExperimentalCheckbox.spec.win.js.map +1 -1
  15. package/lib/E2E/ContextualMenu/specs/ContextualMenu.spec.win.js +5 -2
  16. package/lib/E2E/ContextualMenu/specs/ContextualMenu.spec.win.js.map +1 -1
  17. package/lib/E2E/FocusTrapZone/specs/FocusTrapZone.spec.win.js +3 -2
  18. package/lib/E2E/FocusTrapZone/specs/FocusTrapZone.spec.win.js.map +1 -1
  19. package/lib/E2E/FocusZone/specs/FocusZone.spec.win.js +3 -2
  20. package/lib/E2E/FocusZone/specs/FocusZone.spec.win.js.map +1 -1
  21. package/lib/E2E/Icon/specs/Icon.spec.win.js +3 -2
  22. package/lib/E2E/Icon/specs/Icon.spec.win.js.map +1 -1
  23. package/lib/E2E/Link/specs/Link.spec.win.js +5 -2
  24. package/lib/E2E/Link/specs/Link.spec.win.js.map +1 -1
  25. package/lib/E2E/MenuButton/specs/MenuButton.spec.win.js +8 -2
  26. package/lib/E2E/MenuButton/specs/MenuButton.spec.win.js.map +1 -1
  27. package/lib/E2E/MenuButtonExperimental/specs/ExperimentalMenuButton.spec.win.js +6 -2
  28. package/lib/E2E/MenuButtonExperimental/specs/ExperimentalMenuButton.spec.win.js.map +1 -1
  29. package/lib/E2E/Persona/specs/Persona.spec.win.js +3 -2
  30. package/lib/E2E/Persona/specs/Persona.spec.win.js.map +1 -1
  31. package/lib/E2E/PersonaCoin/specs/PersonaCoin.spec.win.js +3 -2
  32. package/lib/E2E/PersonaCoin/specs/PersonaCoin.spec.win.js.map +1 -1
  33. package/lib/E2E/Pressable/specs/Pressable.spec.win.js +3 -2
  34. package/lib/E2E/Pressable/specs/Pressable.spec.win.js.map +1 -1
  35. package/lib/E2E/RadioGroup/specs/RadioGroup.spec.win.js +12 -2
  36. package/lib/E2E/RadioGroup/specs/RadioGroup.spec.win.js.map +1 -1
  37. package/lib/E2E/Separator/specs/Separator.spec.win.js +3 -2
  38. package/lib/E2E/Separator/specs/Separator.spec.win.js.map +1 -1
  39. package/lib/E2E/Shimmer/specs/Shimmer.spec.win.js +3 -2
  40. package/lib/E2E/Shimmer/specs/Shimmer.spec.win.js.map +1 -1
  41. package/lib/E2E/Svg/specs/Svg.spec.win.js +3 -2
  42. package/lib/E2E/Svg/specs/Svg.spec.win.js.map +1 -1
  43. package/lib/E2E/Tabs/specs/Tabs.spec.win.js +7 -2
  44. package/lib/E2E/Tabs/specs/Tabs.spec.win.js.map +1 -1
  45. package/lib/E2E/TabsExperimental/specs/TabsExperimental.spec.win.js +5 -2
  46. package/lib/E2E/TabsExperimental/specs/TabsExperimental.spec.win.js.map +1 -1
  47. package/lib/E2E/Text/specs/Text.spec.win.js +6 -2
  48. package/lib/E2E/Text/specs/Text.spec.win.js.map +1 -1
  49. package/lib/E2E/TextExperimental/specs/ExperimentalText.spec.win.js +4 -2
  50. package/lib/E2E/TextExperimental/specs/ExperimentalText.spec.win.js.map +1 -1
  51. package/lib/E2E/Theme/specs/Theme.spec.win.js +3 -2
  52. package/lib/E2E/Theme/specs/Theme.spec.win.js.map +1 -1
  53. package/lib/E2E/Tokens/specs/Tokens.spec.win.js +3 -2
  54. package/lib/E2E/Tokens/specs/Tokens.spec.win.js.map +1 -1
  55. package/lib/E2E/common/BasePage.win.d.ts +6 -0
  56. package/lib/E2E/common/BasePage.win.d.ts.map +1 -1
  57. package/lib/E2E/common/BasePage.win.js +45 -0
  58. package/lib/E2E/common/BasePage.win.js.map +1 -1
  59. package/lib/FluentTester/TestComponents/ButtonExperimental/ButtonIconTestSection.d.ts.map +1 -1
  60. package/lib/FluentTester/TestComponents/ButtonExperimental/ButtonIconTestSection.js +9 -5
  61. package/lib/FluentTester/TestComponents/ButtonExperimental/ButtonIconTestSection.js.map +1 -1
  62. package/lib/FluentTester/TestComponents/ButtonExperimental/ButtonSizeTestSection.d.ts.map +1 -1
  63. package/lib/FluentTester/TestComponents/ButtonExperimental/ButtonSizeTestSection.js +3 -3
  64. package/lib/FluentTester/TestComponents/ButtonExperimental/ButtonSizeTestSection.js.map +1 -1
  65. package/lib/FluentTester/TestComponents/ButtonExperimental/ToggleButtonTestSection.d.ts.map +1 -1
  66. package/lib/FluentTester/TestComponents/ButtonExperimental/ToggleButtonTestSection.js +3 -2
  67. package/lib/FluentTester/TestComponents/ButtonExperimental/ToggleButtonTestSection.js.map +1 -1
  68. package/lib/FluentTester/theme/CustomThemes.js +1 -1
  69. package/lib/FluentTester/theme/CustomThemes.js.map +1 -1
  70. package/lib/FluentTester/theme/applyBrand.d.ts +2 -2
  71. package/lib/FluentTester/theme/applyBrand.d.ts.map +1 -1
  72. package/lib/FluentTester/theme/applyBrand.js +4 -1
  73. package/lib/FluentTester/theme/applyBrand.js.map +1 -1
  74. package/lib-commonjs/E2E/ActivityIndicator/specs/ActivityIndicator.spec.win.js +3 -2
  75. package/lib-commonjs/E2E/ActivityIndicator/specs/ActivityIndicator.spec.win.js.map +1 -1
  76. package/lib-commonjs/E2E/Button/specs/Button.spec.win.js +9 -2
  77. package/lib-commonjs/E2E/Button/specs/Button.spec.win.js.map +1 -1
  78. package/lib-commonjs/E2E/ButtonExperimental/specs/ButtonExperimental.spec.win.js +6 -2
  79. package/lib-commonjs/E2E/ButtonExperimental/specs/ButtonExperimental.spec.win.js.map +1 -1
  80. package/lib-commonjs/E2E/Callout/specs/Callout.spec.win.js +3 -2
  81. package/lib-commonjs/E2E/Callout/specs/Callout.spec.win.js.map +1 -1
  82. package/lib-commonjs/E2E/Checkbox/specs/Checkbox.spec.win.js +8 -2
  83. package/lib-commonjs/E2E/Checkbox/specs/Checkbox.spec.win.js.map +1 -1
  84. package/lib-commonjs/E2E/CheckboxExperimental/specs/ExperimentalCheckbox.spec.win.js +6 -2
  85. package/lib-commonjs/E2E/CheckboxExperimental/specs/ExperimentalCheckbox.spec.win.js.map +1 -1
  86. package/lib-commonjs/E2E/ContextualMenu/specs/ContextualMenu.spec.win.js +5 -2
  87. package/lib-commonjs/E2E/ContextualMenu/specs/ContextualMenu.spec.win.js.map +1 -1
  88. package/lib-commonjs/E2E/FocusTrapZone/specs/FocusTrapZone.spec.win.js +3 -2
  89. package/lib-commonjs/E2E/FocusTrapZone/specs/FocusTrapZone.spec.win.js.map +1 -1
  90. package/lib-commonjs/E2E/FocusZone/specs/FocusZone.spec.win.js +3 -2
  91. package/lib-commonjs/E2E/FocusZone/specs/FocusZone.spec.win.js.map +1 -1
  92. package/lib-commonjs/E2E/Icon/specs/Icon.spec.win.js +3 -2
  93. package/lib-commonjs/E2E/Icon/specs/Icon.spec.win.js.map +1 -1
  94. package/lib-commonjs/E2E/Link/specs/Link.spec.win.js +5 -2
  95. package/lib-commonjs/E2E/Link/specs/Link.spec.win.js.map +1 -1
  96. package/lib-commonjs/E2E/MenuButton/specs/MenuButton.spec.win.js +8 -2
  97. package/lib-commonjs/E2E/MenuButton/specs/MenuButton.spec.win.js.map +1 -1
  98. package/lib-commonjs/E2E/MenuButtonExperimental/specs/ExperimentalMenuButton.spec.win.js +6 -2
  99. package/lib-commonjs/E2E/MenuButtonExperimental/specs/ExperimentalMenuButton.spec.win.js.map +1 -1
  100. package/lib-commonjs/E2E/Persona/specs/Persona.spec.win.js +3 -2
  101. package/lib-commonjs/E2E/Persona/specs/Persona.spec.win.js.map +1 -1
  102. package/lib-commonjs/E2E/PersonaCoin/specs/PersonaCoin.spec.win.js +3 -2
  103. package/lib-commonjs/E2E/PersonaCoin/specs/PersonaCoin.spec.win.js.map +1 -1
  104. package/lib-commonjs/E2E/Pressable/specs/Pressable.spec.win.js +3 -2
  105. package/lib-commonjs/E2E/Pressable/specs/Pressable.spec.win.js.map +1 -1
  106. package/lib-commonjs/E2E/RadioGroup/specs/RadioGroup.spec.win.js +12 -2
  107. package/lib-commonjs/E2E/RadioGroup/specs/RadioGroup.spec.win.js.map +1 -1
  108. package/lib-commonjs/E2E/Separator/specs/Separator.spec.win.js +3 -2
  109. package/lib-commonjs/E2E/Separator/specs/Separator.spec.win.js.map +1 -1
  110. package/lib-commonjs/E2E/Shimmer/specs/Shimmer.spec.win.js +3 -2
  111. package/lib-commonjs/E2E/Shimmer/specs/Shimmer.spec.win.js.map +1 -1
  112. package/lib-commonjs/E2E/Svg/specs/Svg.spec.win.js +3 -2
  113. package/lib-commonjs/E2E/Svg/specs/Svg.spec.win.js.map +1 -1
  114. package/lib-commonjs/E2E/Tabs/specs/Tabs.spec.win.js +7 -2
  115. package/lib-commonjs/E2E/Tabs/specs/Tabs.spec.win.js.map +1 -1
  116. package/lib-commonjs/E2E/TabsExperimental/specs/TabsExperimental.spec.win.js +5 -2
  117. package/lib-commonjs/E2E/TabsExperimental/specs/TabsExperimental.spec.win.js.map +1 -1
  118. package/lib-commonjs/E2E/Text/specs/Text.spec.win.js +6 -2
  119. package/lib-commonjs/E2E/Text/specs/Text.spec.win.js.map +1 -1
  120. package/lib-commonjs/E2E/TextExperimental/specs/ExperimentalText.spec.win.js +4 -2
  121. package/lib-commonjs/E2E/TextExperimental/specs/ExperimentalText.spec.win.js.map +1 -1
  122. package/lib-commonjs/E2E/Theme/specs/Theme.spec.win.js +3 -2
  123. package/lib-commonjs/E2E/Theme/specs/Theme.spec.win.js.map +1 -1
  124. package/lib-commonjs/E2E/Tokens/specs/Tokens.spec.win.js +3 -2
  125. package/lib-commonjs/E2E/Tokens/specs/Tokens.spec.win.js.map +1 -1
  126. package/lib-commonjs/E2E/common/BasePage.win.d.ts +6 -0
  127. package/lib-commonjs/E2E/common/BasePage.win.d.ts.map +1 -1
  128. package/lib-commonjs/E2E/common/BasePage.win.js +45 -0
  129. package/lib-commonjs/E2E/common/BasePage.win.js.map +1 -1
  130. package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ButtonIconTestSection.d.ts.map +1 -1
  131. package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ButtonIconTestSection.js +8 -4
  132. package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ButtonIconTestSection.js.map +1 -1
  133. package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ButtonSizeTestSection.d.ts.map +1 -1
  134. package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ButtonSizeTestSection.js +3 -3
  135. package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ButtonSizeTestSection.js.map +1 -1
  136. package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ToggleButtonTestSection.d.ts.map +1 -1
  137. package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ToggleButtonTestSection.js +3 -2
  138. package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ToggleButtonTestSection.js.map +1 -1
  139. package/lib-commonjs/FluentTester/theme/CustomThemes.js +1 -1
  140. package/lib-commonjs/FluentTester/theme/CustomThemes.js.map +1 -1
  141. package/lib-commonjs/FluentTester/theme/applyBrand.d.ts +2 -2
  142. package/lib-commonjs/FluentTester/theme/applyBrand.d.ts.map +1 -1
  143. package/lib-commonjs/FluentTester/theme/applyBrand.js +4 -1
  144. package/lib-commonjs/FluentTester/theme/applyBrand.js.map +1 -1
  145. package/package.json +9 -9
  146. package/src/E2E/ActivityIndicator/specs/ActivityIndicator.spec.win.ts +3 -2
  147. package/src/E2E/Button/specs/Button.spec.win.ts +9 -2
  148. package/src/E2E/ButtonExperimental/specs/ButtonExperimental.spec.win.ts +9 -2
  149. package/src/E2E/Callout/specs/Callout.spec.win.ts +3 -2
  150. package/src/E2E/Checkbox/specs/Checkbox.spec.win.ts +8 -2
  151. package/src/E2E/CheckboxExperimental/specs/ExperimentalCheckbox.spec.win.ts +9 -2
  152. package/src/E2E/ContextualMenu/specs/ContextualMenu.spec.win.ts +5 -2
  153. package/src/E2E/FocusTrapZone/specs/FocusTrapZone.spec.win.ts +3 -2
  154. package/src/E2E/FocusZone/specs/FocusZone.spec.win.ts +3 -2
  155. package/src/E2E/Icon/specs/Icon.spec.win.ts +3 -2
  156. package/src/E2E/Link/specs/Link.spec.win.ts +7 -2
  157. package/src/E2E/MenuButton/specs/MenuButton.spec.win.ts +8 -2
  158. package/src/E2E/MenuButtonExperimental/specs/ExperimentalMenuButton.spec.win.ts +9 -2
  159. package/src/E2E/Persona/specs/Persona.spec.win.ts +3 -2
  160. package/src/E2E/PersonaCoin/specs/PersonaCoin.spec.win.ts +3 -2
  161. package/src/E2E/Pressable/specs/Pressable.spec.win.ts +3 -2
  162. package/src/E2E/RadioGroup/specs/RadioGroup.spec.win.ts +12 -2
  163. package/src/E2E/Separator/specs/Separator.spec.win.ts +3 -2
  164. package/src/E2E/Shimmer/specs/Shimmer.spec.win.ts +3 -2
  165. package/src/E2E/Svg/specs/Svg.spec.win.ts +3 -2
  166. package/src/E2E/Tabs/specs/Tabs.spec.win.ts +7 -2
  167. package/src/E2E/TabsExperimental/specs/TabsExperimental.spec.win.ts +7 -2
  168. package/src/E2E/Text/specs/Text.spec.win.ts +6 -2
  169. package/src/E2E/TextExperimental/specs/ExperimentalText.spec.win.ts +5 -2
  170. package/src/E2E/Theme/specs/Theme.spec.win.ts +3 -2
  171. package/src/E2E/Tokens/specs/Tokens.spec.win.ts +3 -2
  172. package/src/E2E/common/BasePage.win.ts +34 -0
  173. package/src/FluentTester/TestComponents/ButtonExperimental/ButtonIconTestSection.tsx +13 -7
  174. package/src/FluentTester/TestComponents/ButtonExperimental/ButtonSizeTestSection.tsx +21 -3
  175. package/src/FluentTester/TestComponents/ButtonExperimental/ToggleButtonTestSection.tsx +5 -2
  176. package/src/FluentTester/theme/CustomThemes.ts +1 -1
  177. package/src/FluentTester/theme/applyBrand.ts +6 -2
@@ -1,8 +1,8 @@
1
- import { PartialTheme } from '@fluentui-react-native/theme-types';
1
+ import { PartialTheme, Theme } from '@fluentui-react-native/theme-types';
2
2
  export declare type OfficeBrand = 'Default' | 'Office' | 'Word' | 'Excel' | 'Powerpoint' | 'Outlook';
3
3
  export declare const brandOptions: {
4
4
  label: string;
5
5
  value: string;
6
6
  }[];
7
- export declare const applyBrand: (themeName: string, currentBrand: string) => PartialTheme;
7
+ export declare const applyBrand: (parent: Theme, themeName: string, currentBrand: string) => PartialTheme;
8
8
  //# sourceMappingURL=applyBrand.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"applyBrand.d.ts","sourceRoot":"","sources":["../../../src/FluentTester/theme/applyBrand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAGlE,oBAAY,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,CAAC;AAwH7F,eAAO,MAAM,YAAY;;;GAA4E,CAAC;AAEtG,eAAO,MAAM,UAAU,cAAe,MAAM,gBAAgB,MAAM,KAAG,YAyCpE,CAAC"}
1
+ {"version":3,"file":"applyBrand.d.ts","sourceRoot":"","sources":["../../../src/FluentTester/theme/applyBrand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,oCAAoC,CAAC;AAGzE,oBAAY,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,CAAC;AAwH7F,eAAO,MAAM,YAAY;;;GAA4E,CAAC;AAEtG,eAAO,MAAM,UAAU,WAAY,KAAK,aAAa,MAAM,gBAAgB,MAAM,KAAG,YA6CnF,CAAC"}
@@ -103,7 +103,10 @@ var brandColors = {
103
103
  },
104
104
  };
105
105
  exports.brandOptions = Object.keys(brandColors).map(function (brand) { return ({ label: brand, value: brand }); });
106
- var applyBrand = function (themeName, currentBrand) {
106
+ var applyBrand = function (parent, themeName, currentBrand) {
107
+ if (parent.name === 'HighContrast') {
108
+ return {};
109
+ }
107
110
  var ramp = brandColors[currentBrand];
108
111
  return ramp
109
112
  ? {
@@ -1 +1 @@
1
- {"version":3,"file":"applyBrand.js","sourceRoot":"","sources":["../../../src/FluentTester/theme/applyBrand.ts"],"names":[],"mappings":";;;;AACA,kEAAgF;AAsBhF,IAAM,WAAW,GAAe;IAC9B;;SAEK;IACL,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,MAAM,EAAE;QACN,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,SAAS;QACpB,SAAS,EAAE,SAAS;QACpB,SAAS,EAAE,SAAS;QACpB,SAAS,EAAE,SAAS;QACpB,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,SAAS;KACtB;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,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EAAE,IAAI,CAAC,IAAI,EACzC,8BAA8B,EAAE,IAAI,CAAC,IAAI,EACzC,mBAAmB,EAAE,IAAI,CAAC,IAAI,EAC9B,0BAA0B,EAAE,IAAI,CAAC,IAAI,EACrC,sBAAsB,EAAE,IAAI,CAAC,IAAI,EACjC,iBAAiB,EAAE,IAAI,CAAC,IAAI,EAC5B,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,WAAW,EAAE,IAAI,CAAC,IAAI,EACtB,WAAW,EAAE,IAAI,CAAC,IAAI,EACtB,wBAAwB,EAAE,IAAI,CAAC,IAAI,EACnC,oBAAoB,EAAE,IAAI,CAAC,IAAI,EAC/B,wBAAwB,EAAE,IAAI,CAAC,IAAI,EACnC,oBAAoB,EAAE,IAAI,CAAC,IAAI,EAC/B,wBAAwB,EAAE,IAAI,CAAC,IAAI,EACnC,oBAAoB,EAAE,IAAI,CAAC,IAAI,EAC/B,iBAAiB,EAAE,IAAI,CAAC,IAAI,EAC5B,aAAa,EAAE,IAAI,CAAC,IAAI,EACxB,wBAAwB,EAAE,IAAI,CAAC,IAAI,EACnC,oBAAoB,EAAE,IAAI,CAAC,IAAI,EAC/B,wBAAwB,EAAE,IAAI,CAAC,IAAI,EACnC,oBAAoB,EAAE,IAAI,CAAC,IAAI,EAC/B,wBAAwB,EAAE,IAAI,CAAC,IAAI,EACnC,oBAAoB,EAAE,IAAI,CAAC,IAAI,EAC/B,+BAA+B,EAAE,IAAI,CAAC,IAAI,IACvC,IAAA,wCAA0B,EAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,CAC1D;SACF;QACH,CAAC,CAAC,EAAE,CAAC;AACT,CAAC,CAAC;AA7CW,QAAA,UAAU,cA6CrB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/tester",
3
- "version": "0.52.1",
3
+ "version": "0.53.2",
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>",
@@ -29,29 +29,29 @@
29
29
  "dependencies": {
30
30
  "@fluentui-react-native/android-theme": ">=0.5.4 <1.0.0",
31
31
  "@fluentui-react-native/apple-theme": ">=0.9.9 <1.0.0",
32
- "@fluentui-react-native/badge": ">=0.0.9 <1.0.0",
33
- "@fluentui-react-native/button": ">=0.21.19 <1.0.0",
32
+ "@fluentui-react-native/badge": ">=0.0.10 <1.0.0",
33
+ "@fluentui-react-native/button": ">=0.21.20 <1.0.0",
34
34
  "@fluentui-react-native/default-theme": ">=0.9.9 <1.0.0",
35
35
  "@fluentui-react-native/experimental-activity-indicator": ">=0.5.11 <1.0.0",
36
36
  "@fluentui-react-native/experimental-avatar": ">=0.14.3 <1.0.0",
37
- "@fluentui-react-native/experimental-button": "0.13.0",
38
- "@fluentui-react-native/experimental-checkbox": "0.6.5",
37
+ "@fluentui-react-native/experimental-button": "0.14.0",
38
+ "@fluentui-react-native/experimental-checkbox": "0.6.6",
39
39
  "@fluentui-react-native/experimental-native-date-picker": ">=0.4.1 <1.0.0",
40
40
  "@fluentui-react-native/experimental-expander": "0.3.12",
41
- "@fluentui-react-native/experimental-menu-button": ">=0.3.3 <1.0.0",
41
+ "@fluentui-react-native/experimental-menu-button": ">=0.3.7 <1.0.0",
42
42
  "@fluentui-react-native/experimental-shimmer": "0.6.14",
43
- "@fluentui-react-native/experimental-tabs": "0.4.18",
43
+ "@fluentui-react-native/experimental-tabs": "0.4.20",
44
44
  "@fluentui-react-native/experimental-text": ">=0.7.12 <1.0.0",
45
45
  "@fluentui-react-native/framework": ">=0.7.12 <1.0.0",
46
46
  "@fluentui-react-native/icon": "0.11.6",
47
- "@fluentui-react-native/interactive-hooks": ">=0.12.2 <1.0.0",
47
+ "@fluentui-react-native/interactive-hooks": ">=0.13.0 <1.0.0",
48
48
  "@fluentui-react-native/stack": ">=0.6.12 <1.0.0",
49
49
  "@fluentui-react-native/theme": ">=0.6.4 <1.0.0",
50
50
  "@fluentui-react-native/theme-types": ">=0.13.3 <1.0.0",
51
51
  "@fluentui-react-native/themed-stylesheet": "^1.3.2",
52
52
  "@fluentui-react-native/theming-utils": ">=0.8.9 <1.0.0",
53
53
  "@fluentui-react-native/win32-theme": ">=0.14.10 <1.0.0",
54
- "@fluentui/react-native": ">=0.27.24 <1.0.0",
54
+ "@fluentui/react-native": ">=0.27.28 <1.0.0",
55
55
  "@react-native-community/slider": "^4.1.12",
56
56
  "@react-native-menu/menu": "^0.1.2",
57
57
  "@react-native-picker/picker": "^1.16.7",
@@ -6,7 +6,7 @@ import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
6
6
  describe('Activity Indicator Testing Initialization', function () {
7
7
  it('Wait for app load', () => {
8
8
  NavigateAppPage.waitForPageDisplayed(BOOT_APP_TIMEOUT);
9
- expect(NavigateAppPage.isPageLoaded()).toBeTruthy();
9
+ expect(NavigateAppPage.isPageLoaded()).toBeTruthy(NavigateAppPage.ERRORMESSAGE_APPLOAD);
10
10
  });
11
11
 
12
12
  it('Click and navigate to Activity Indicator test page', () => {
@@ -18,6 +18,7 @@ describe('Activity Indicator Testing Initialization', function () {
18
18
  NavigateAppPage.clickAndGoToActivityIndicatorPage();
19
19
  ActivityIndicatorPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
20
20
 
21
- expect(ActivityIndicatorPageObject.isPageLoaded()).toBeTruthy();
21
+ expect(ActivityIndicatorPageObject.isPageLoaded()).toBeTruthy(ActivityIndicatorPageObject.ERRORMESSAGE_PAGELOAD);
22
+ expect(ActivityIndicatorPageObject.didAssertPopup()).toBeFalsy(ActivityIndicatorPageObject.ERRORMESSAGE_ASSERT);
22
23
  });
23
24
  });
@@ -8,7 +8,7 @@ import { BUTTON_ACCESSIBILITY_LABEL, BUTTON_TEST_COMPONENT_LABEL } from '../../.
8
8
  describe('Button Testing Initialization', function () {
9
9
  it('Wait for app load', () => {
10
10
  NavigateAppPage.waitForPageDisplayed(BOOT_APP_TIMEOUT);
11
- expect(NavigateAppPage.isPageLoaded()).toBeTruthy();
11
+ expect(NavigateAppPage.isPageLoaded()).toBeTruthy(NavigateAppPage.ERRORMESSAGE_APPLOAD);
12
12
  });
13
13
 
14
14
  it('Click and navigate to Button test page', () => {
@@ -20,7 +20,8 @@ describe('Button Testing Initialization', function () {
20
20
  NavigateAppPage.clickAndGoToButtonPage();
21
21
  ButtonPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
22
22
 
23
- expect(ButtonPageObject.isPageLoaded()).toBeTruthy();
23
+ expect(ButtonPageObject.isPageLoaded()).toBeTruthy(ButtonPageObject.ERRORMESSAGE_PAGELOAD);
24
+ expect(ButtonPageObject.didAssertPopup()).toBeFalsy(ButtonPageObject.ERRORMESSAGE_ASSERT);
24
25
  });
25
26
  });
26
27
 
@@ -33,14 +34,17 @@ describe('Button Accessibility Testing', () => {
33
34
 
34
35
  it('Button - Validate accessibilityRole is correct', () => {
35
36
  expect(ButtonPageObject.getAccessibilityRole()).toEqual(BUTTON_A11Y_ROLE);
37
+ expect(ButtonPageObject.didAssertPopup()).toBeFalsy(ButtonPageObject.ERRORMESSAGE_ASSERT);
36
38
  });
37
39
 
38
40
  it('Button - Set accessibilityLabel', () => {
39
41
  expect(ButtonPageObject.getAccessibilityLabel(ComponentSelector.Primary)).toEqual(BUTTON_ACCESSIBILITY_LABEL);
42
+ expect(ButtonPageObject.didAssertPopup()).toBeFalsy(ButtonPageObject.ERRORMESSAGE_ASSERT);
40
43
  });
41
44
 
42
45
  it('Button - Do not set accessibilityLabel -> Default to Button label', () => {
43
46
  expect(ButtonPageObject.getAccessibilityLabel(ComponentSelector.Secondary)).toEqual(BUTTON_TEST_COMPONENT_LABEL);
47
+ expect(ButtonPageObject.didAssertPopup()).toBeFalsy(ButtonPageObject.ERRORMESSAGE_ASSERT);
44
48
  });
45
49
  });
46
50
 
@@ -54,6 +58,7 @@ describe('Button Functional Testing', () => {
54
58
  it('Validate OnClick() callback was fired -> Click', () => {
55
59
  ButtonPageObject.clickComponent();
56
60
  expect(ButtonPageObject.didOnClickCallbackFire()).toBeTruthy();
61
+ expect(ButtonPageObject.didAssertPopup()).toBeFalsy(ButtonPageObject.ERRORMESSAGE_ASSERT);
57
62
 
58
63
  ButtonPageObject.clickComponent(); // Reset Button State
59
64
  });
@@ -61,6 +66,7 @@ describe('Button Functional Testing', () => {
61
66
  it('Validate OnClick() callback was fired -> Type "Enter"', () => {
62
67
  ButtonPageObject.sendKey(ButtonSelector.PrimaryButton, Keys.Enter);
63
68
  expect(ButtonPageObject.didOnClickCallbackFire()).toBeTruthy();
69
+ expect(ButtonPageObject.didAssertPopup()).toBeFalsy(ButtonPageObject.ERRORMESSAGE_ASSERT);
64
70
 
65
71
  ButtonPageObject.clickComponent(); // Reset Button State
66
72
  });
@@ -68,5 +74,6 @@ describe('Button Functional Testing', () => {
68
74
  it('Validate OnClick() callback was fired -> Type "Spacebar"', () => {
69
75
  ButtonPageObject.sendKey(ButtonSelector.PrimaryButton, Keys.Spacebar);
70
76
  expect(ButtonPageObject.didOnClickCallbackFire()).toBeTruthy();
77
+ expect(ButtonPageObject.didAssertPopup()).toBeFalsy(ButtonPageObject.ERRORMESSAGE_ASSERT);
71
78
  });
72
79
  });
@@ -11,7 +11,7 @@ import {
11
11
  describe('Experimental Button Testing Initialization', function () {
12
12
  it('Wait for app load', () => {
13
13
  NavigateAppPage.waitForPageDisplayed(BOOT_APP_TIMEOUT);
14
- expect(NavigateAppPage.isPageLoaded()).toBeTruthy();
14
+ expect(NavigateAppPage.isPageLoaded()).toBeTruthy(NavigateAppPage.ERRORMESSAGE_APPLOAD);
15
15
  });
16
16
 
17
17
  it('Click and navigate to Button test page', () => {
@@ -23,7 +23,8 @@ describe('Experimental Button Testing Initialization', function () {
23
23
  NavigateAppPage.clickAndGoToExperimentalButtonPage();
24
24
  ButtonExperimentalPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
25
25
 
26
- expect(ButtonExperimentalPageObject.isPageLoaded()).toBeTruthy();
26
+ expect(ButtonExperimentalPageObject.isPageLoaded()).toBeTruthy(ButtonExperimentalPageObject.ERRORMESSAGE_PAGELOAD);
27
+ expect(ButtonExperimentalPageObject.didAssertPopup()).toBeFalsy(ButtonExperimentalPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
27
28
  });
28
29
  });
29
30
 
@@ -31,20 +32,26 @@ describe('Experimental Button Accessibility Testing', () => {
31
32
  it('Experimental Button - Validate accessibilityRole is correct', () => {
32
33
  ButtonExperimentalPageObject.scrollToTestElement();
33
34
  ButtonExperimentalPageObject.waitForPrimaryElementDisplayed(PAGE_TIMEOUT);
35
+
34
36
  expect(ButtonExperimentalPageObject.getAccessibilityRole()).toEqual(BUTTON_A11Y_ROLE);
37
+ expect(ButtonExperimentalPageObject.didAssertPopup()).toBeFalsy(ButtonExperimentalPageObject.ERRORMESSAGE_ASSERT);
35
38
  });
36
39
 
37
40
  it('Experimental Button - Set accessibilityLabel', () => {
38
41
  ButtonExperimentalPageObject.scrollToTestElement();
39
42
  ButtonExperimentalPageObject.waitForPrimaryElementDisplayed(PAGE_TIMEOUT);
43
+
40
44
  expect(ButtonExperimentalPageObject.getAccessibilityLabel(ComponentSelector.Primary)).toEqual(BUTTONEXPERIMENTAL_ACCESSIBILITY_LABEL);
45
+ expect(ButtonExperimentalPageObject.didAssertPopup()).toBeFalsy(ButtonExperimentalPageObject.ERRORMESSAGE_ASSERT);
41
46
  });
42
47
 
43
48
  it('Experimental Button - Do not set accessibilityLabel -> Default to Button label', () => {
44
49
  ButtonExperimentalPageObject.scrollToTestElement();
45
50
  ButtonExperimentalPageObject.waitForPrimaryElementDisplayed(PAGE_TIMEOUT);
51
+
46
52
  expect(ButtonExperimentalPageObject.getAccessibilityLabel(ComponentSelector.Secondary)).toEqual(
47
53
  BUTTONEXPERIMENTAL_TEST_COMPONENT_LABEL,
48
54
  );
55
+ expect(ButtonExperimentalPageObject.didAssertPopup()).toBeFalsy(ButtonExperimentalPageObject.ERRORMESSAGE_ASSERT);
49
56
  });
50
57
  });
@@ -6,7 +6,7 @@ import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
6
6
  describe('Callout Testing Initialization', function () {
7
7
  it('Wait for app load', () => {
8
8
  NavigateAppPage.waitForPageDisplayed(BOOT_APP_TIMEOUT);
9
- expect(NavigateAppPage.isPageLoaded()).toBeTruthy();
9
+ expect(NavigateAppPage.isPageLoaded()).toBeTruthy(NavigateAppPage.ERRORMESSAGE_APPLOAD);
10
10
  });
11
11
 
12
12
  it('Click and navigate to Callout test page', () => {
@@ -18,7 +18,8 @@ describe('Callout Testing Initialization', function () {
18
18
  NavigateAppPage.clickAndGoToCalloutPage();
19
19
  CalloutPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
20
20
 
21
- expect(CalloutPageObject.isPageLoaded()).toBeTruthy();
21
+ expect(CalloutPageObject.isPageLoaded()).toBeTruthy(CalloutPageObject.ERRORMESSAGE_PAGELOAD);
22
+ expect(CalloutPageObject.didAssertPopup()).toBeFalsy(CalloutPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
22
23
  });
23
24
  });
24
25
 
@@ -7,7 +7,7 @@ import { CHECKBOX_A11Y_ROLE, PAGE_TIMEOUT, BOOT_APP_TIMEOUT, Keys } from '../../
7
7
  describe('Checkbox Testing Initialization', () => {
8
8
  it('Wait for app load', () => {
9
9
  NavigateAppPage.waitForPageDisplayed(BOOT_APP_TIMEOUT);
10
- expect(NavigateAppPage.isPageLoaded()).toBeTruthy();
10
+ expect(NavigateAppPage.isPageLoaded()).toBeTruthy(NavigateAppPage.ERRORMESSAGE_APPLOAD);
11
11
  });
12
12
 
13
13
  it('Click and navigate to Checkbox test page', () => {
@@ -19,7 +19,8 @@ describe('Checkbox Testing Initialization', () => {
19
19
  NavigateAppPage.clickAndGoToCheckboxPage();
20
20
  CheckboxPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
21
21
 
22
- expect(CheckboxPageObject.isPageLoaded()).toBeTruthy();
22
+ expect(CheckboxPageObject.isPageLoaded()).toBeTruthy(CheckboxPageObject.ERRORMESSAGE_PAGELOAD);
23
+ expect(CheckboxPageObject.didAssertPopup()).toBeFalsy(CheckboxPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
23
24
  });
24
25
  });
25
26
 
@@ -32,14 +33,17 @@ describe('Checkbox Accessibility Testing', () => {
32
33
 
33
34
  it('Checkbox - Validate accessibilityRole is correct', () => {
34
35
  expect(CheckboxPageObject.getAccessibilityRole()).toEqual(CHECKBOX_A11Y_ROLE);
36
+ expect(CheckboxPageObject.didAssertPopup()).toBeFalsy(CheckboxPageObject.ERRORMESSAGE_ASSERT);
35
37
  });
36
38
 
37
39
  it('Checkbox - Set accessibilityLabel', () => {
38
40
  expect(CheckboxPageObject.getAccessibilityLabel(ComponentSelector.Primary)).toEqual(CHECKBOX_ACCESSIBILITY_LABEL);
41
+ expect(CheckboxPageObject.didAssertPopup()).toBeFalsy(CheckboxPageObject.ERRORMESSAGE_ASSERT);
39
42
  });
40
43
 
41
44
  it('Checkbox - Do not set accessibilityLabel -> Default to Checkbox label', () => {
42
45
  expect(CheckboxPageObject.getAccessibilityLabel(ComponentSelector.Secondary)).toEqual(CHECKBOX_TEST_COMPONENT_LABEL);
46
+ expect(CheckboxPageObject.didAssertPopup()).toBeFalsy(CheckboxPageObject.ERRORMESSAGE_ASSERT);
43
47
  });
44
48
  });
45
49
 
@@ -69,6 +73,7 @@ describe('Checkbox Functional Testing', () => {
69
73
 
70
74
  /* Validate the Checkbox is toggled OFF */
71
75
  expect(CheckboxPageObject.isCheckboxChecked()).toBeFalsy();
76
+ expect(CheckboxPageObject.didAssertPopup()).toBeFalsy(CheckboxPageObject.ERRORMESSAGE_ASSERT);
72
77
  });
73
78
 
74
79
  it('Click the "Spacebar" on a Checkbox and verify it toggles', () => {
@@ -78,5 +83,6 @@ describe('Checkbox Functional Testing', () => {
78
83
 
79
84
  /* Validate the Checkbox is selected */
80
85
  expect(CheckboxPageObject.isCheckboxChecked()).toBeTruthy();
86
+ expect(CheckboxPageObject.didAssertPopup()).toBeFalsy(CheckboxPageObject.ERRORMESSAGE_ASSERT);
81
87
  });
82
88
  });
@@ -10,7 +10,7 @@ import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT, CHECKBOX_A11Y_ROLE } from '../../common
10
10
  describe('Experimental Checkbox Testing Initialization', () => {
11
11
  it('Wait for app load', () => {
12
12
  NavigateAppPage.waitForPageDisplayed(BOOT_APP_TIMEOUT);
13
- expect(NavigateAppPage.isPageLoaded()).toBeTruthy();
13
+ expect(NavigateAppPage.isPageLoaded()).toBeTruthy(NavigateAppPage.ERRORMESSAGE_APPLOAD);
14
14
  });
15
15
 
16
16
  it('Click and navigate to Experimental Checkbox test page', () => {
@@ -22,7 +22,8 @@ describe('Experimental Checkbox Testing Initialization', () => {
22
22
  NavigateAppPage.clickAndGoToCheckboxExperimentalPage();
23
23
  ExperimentalCheckboxPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
24
24
 
25
- expect(ExperimentalCheckboxPageObject.isPageLoaded()).toBeTruthy();
25
+ expect(ExperimentalCheckboxPageObject.isPageLoaded()).toBeTruthy(ExperimentalCheckboxPageObject.ERRORMESSAGE_PAGELOAD);
26
+ expect(ExperimentalCheckboxPageObject.didAssertPopup()).toBeFalsy(ExperimentalCheckboxPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
26
27
  });
27
28
  });
28
29
 
@@ -30,22 +31,28 @@ describe('Experimental Checkbox Accessibility Testing', () => {
30
31
  it('Experimental Checkbox - Validate accessibilityRole is correct', () => {
31
32
  ExperimentalCheckboxPageObject.scrollToTestElement();
32
33
  ExperimentalCheckboxPageObject.waitForPrimaryElementDisplayed(PAGE_TIMEOUT);
34
+
33
35
  expect(ExperimentalCheckboxPageObject.getAccessibilityRole()).toEqual(CHECKBOX_A11Y_ROLE);
36
+ expect(ExperimentalCheckboxPageObject.didAssertPopup()).toBeFalsy(ExperimentalCheckboxPageObject.ERRORMESSAGE_ASSERT);
34
37
  });
35
38
 
36
39
  it('Experimental Checkbox - Set accessibilityLabel', () => {
37
40
  ExperimentalCheckboxPageObject.scrollToTestElement();
38
41
  ExperimentalCheckboxPageObject.waitForPrimaryElementDisplayed(PAGE_TIMEOUT);
42
+
39
43
  expect(ExperimentalCheckboxPageObject.getAccessibilityLabel(ComponentSelector.Primary)).toEqual(
40
44
  EXPERIMENTAL_CHECKBOX_ACCESSIBILITY_LABEL,
41
45
  );
46
+ expect(ExperimentalCheckboxPageObject.didAssertPopup()).toBeFalsy(ExperimentalCheckboxPageObject.ERRORMESSAGE_ASSERT);
42
47
  });
43
48
 
44
49
  it('Experimental Checkbox - Do not set accessibilityLabel -> Default to Checkbox label', () => {
45
50
  ExperimentalCheckboxPageObject.scrollToTestElement();
46
51
  ExperimentalCheckboxPageObject.waitForPrimaryElementDisplayed(PAGE_TIMEOUT);
52
+
47
53
  expect(ExperimentalCheckboxPageObject.getAccessibilityLabel(ComponentSelector.Secondary)).toEqual(
48
54
  EXPERIMENTAL_CHECKBOX_TEST_COMPONENT_LABEL,
49
55
  );
56
+ expect(ExperimentalCheckboxPageObject.didAssertPopup()).toBeFalsy(ExperimentalCheckboxPageObject.ERRORMESSAGE_ASSERT);
50
57
  });
51
58
  });
@@ -6,7 +6,7 @@ import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT, Keys } from '../../common/consts';
6
6
  describe('ContextualMenu Testing Initialization', function () {
7
7
  it('Wait for app load', () => {
8
8
  NavigateAppPage.waitForPageDisplayed(BOOT_APP_TIMEOUT);
9
- expect(NavigateAppPage.isPageLoaded()).toBeTruthy();
9
+ expect(NavigateAppPage.isPageLoaded()).toBeTruthy(NavigateAppPage.ERRORMESSAGE_APPLOAD);
10
10
  });
11
11
 
12
12
  it('Click and navigate to ContextualMenu test page', () => {
@@ -18,7 +18,8 @@ describe('ContextualMenu Testing Initialization', function () {
18
18
  NavigateAppPage.clickAndGoToContextualMenuPage();
19
19
  ContextualMenuPageObjectObject.waitForPageDisplayed(PAGE_TIMEOUT);
20
20
 
21
- expect(ContextualMenuPageObjectObject.isPageLoaded()).toBeTruthy();
21
+ expect(ContextualMenuPageObjectObject.isPageLoaded()).toBeTruthy(ContextualMenuPageObjectObject.ERRORMESSAGE_PAGELOAD);
22
+ expect(ContextualMenuPageObjectObject.didAssertPopup()).toBeFalsy(ContextualMenuPageObjectObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
22
23
  });
23
24
  });
24
25
 
@@ -37,6 +38,7 @@ describe('ContextualMenu Functional Tests', () => {
37
38
  ContextualMenuPageObjectObject.waitForContextualMenuItemsToOpen(PAGE_TIMEOUT);
38
39
 
39
40
  expect(ContextualMenuPageObjectObject.contextualMenuItemDisplayed()).toBeTruthy();
41
+ expect(ContextualMenuPageObjectObject.didAssertPopup()).toBeFalsy(ContextualMenuPageObjectObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
40
42
  });
41
43
 
42
44
  it('Type "SpaceBar" to select the ContextualMenu and validate that the list of ContextualMenu Items open', () => {
@@ -45,6 +47,7 @@ describe('ContextualMenu Functional Tests', () => {
45
47
  ContextualMenuPageObjectObject.waitForContextualMenuItemsToOpen(PAGE_TIMEOUT);
46
48
 
47
49
  expect(ContextualMenuPageObjectObject.contextualMenuItemDisplayed()).toBeTruthy();
50
+ expect(ContextualMenuPageObjectObject.didAssertPopup()).toBeFalsy(ContextualMenuPageObjectObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
48
51
  });
49
52
 
50
53
  /* Runs after all tests. This ensures the ContextualMenu closes. If it stays open, the test driver won't be able to close the test app */
@@ -6,7 +6,7 @@ import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
6
6
  describe('FocusTrapZone Testing Initialization', function () {
7
7
  it('Wait for app load', () => {
8
8
  NavigateAppPage.waitForPageDisplayed(BOOT_APP_TIMEOUT);
9
- expect(NavigateAppPage.isPageLoaded()).toBeTruthy();
9
+ expect(NavigateAppPage.isPageLoaded()).toBeTruthy(NavigateAppPage.ERRORMESSAGE_APPLOAD);
10
10
  });
11
11
 
12
12
  it('Click and navigate to FocusTrapZone test page', () => {
@@ -18,6 +18,7 @@ describe('FocusTrapZone Testing Initialization', function () {
18
18
  NavigateAppPage.clickAndGoToFocusTrapZonePage();
19
19
  FocusTrapZonePageObject.waitForPageDisplayed(PAGE_TIMEOUT);
20
20
 
21
- expect(FocusTrapZonePageObject.isPageLoaded()).toBeTruthy();
21
+ expect(FocusTrapZonePageObject.isPageLoaded()).toBeTruthy(FocusTrapZonePageObject.ERRORMESSAGE_PAGELOAD);
22
+ expect(FocusTrapZonePageObject.didAssertPopup()).toBeFalsy(FocusTrapZonePageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
22
23
  });
23
24
  });
@@ -6,7 +6,7 @@ import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
6
6
  describe('FocusZone Testing Initialization', function () {
7
7
  it('Wait for app load', () => {
8
8
  NavigateAppPage.waitForPageDisplayed(BOOT_APP_TIMEOUT);
9
- expect(NavigateAppPage.isPageLoaded()).toBeTruthy();
9
+ expect(NavigateAppPage.isPageLoaded()).toBeTruthy(NavigateAppPage.ERRORMESSAGE_APPLOAD);
10
10
  });
11
11
 
12
12
  it('Click and navigate to FocusZone test page', () => {
@@ -18,6 +18,7 @@ describe('FocusZone Testing Initialization', function () {
18
18
  NavigateAppPage.clickAndGoToFocusZonePage();
19
19
  FocusZonePageObject.waitForPageDisplayed(PAGE_TIMEOUT);
20
20
 
21
- expect(FocusZonePageObject.isPageLoaded()).toBeTruthy();
21
+ expect(FocusZonePageObject.isPageLoaded()).toBeTruthy(FocusZonePageObject.ERRORMESSAGE_PAGELOAD);
22
+ expect(FocusZonePageObject.didAssertPopup()).toBeFalsy(FocusZonePageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
22
23
  });
23
24
  });
@@ -6,7 +6,7 @@ import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
6
6
  describe('Icon Testing Initialization', function () {
7
7
  it('Wait for app load', () => {
8
8
  NavigateAppPage.waitForPageDisplayed(BOOT_APP_TIMEOUT);
9
- expect(NavigateAppPage.isPageLoaded()).toBeTruthy();
9
+ expect(NavigateAppPage.isPageLoaded()).toBeTruthy(NavigateAppPage.ERRORMESSAGE_APPLOAD);
10
10
  });
11
11
 
12
12
  it('Click and navigate to Icon test page', () => {
@@ -18,6 +18,7 @@ describe('Icon Testing Initialization', function () {
18
18
  NavigateAppPage.clickAndGoToIconPage();
19
19
  IconPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
20
20
 
21
- expect(IconPageObject.isPageLoaded()).toBeTruthy();
21
+ expect(IconPageObject.isPageLoaded()).toBeTruthy(IconPageObject.ERRORMESSAGE_PAGELOAD);
22
+ expect(IconPageObject.didAssertPopup()).toBeFalsy(IconPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
22
23
  });
23
24
  });
@@ -8,7 +8,7 @@ import { LINK_A11Y_ROLE, PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/con
8
8
  describe('Link Testing Initialization', function () {
9
9
  it('Wait for app load', () => {
10
10
  NavigateAppPage.waitForPageDisplayed(BOOT_APP_TIMEOUT);
11
- expect(NavigateAppPage.isPageLoaded()).toBeTruthy();
11
+ expect(NavigateAppPage.isPageLoaded()).toBeTruthy(NavigateAppPage.ERRORMESSAGE_APPLOAD);
12
12
  });
13
13
 
14
14
  it('Click and navigate to Link test page', () => {
@@ -20,7 +20,8 @@ describe('Link Testing Initialization', function () {
20
20
  NavigateAppPage.clickAndGoToLinkPage();
21
21
  LinkPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
22
22
 
23
- expect(LinkPageObject.isPageLoaded()).toBeTruthy();
23
+ expect(LinkPageObject.isPageLoaded()).toBeTruthy(LinkPageObject.ERRORMESSAGE_PAGELOAD);
24
+ expect(LinkPageObject.didAssertPopup()).toBeFalsy(LinkPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
24
25
  });
25
26
  });
26
27
 
@@ -28,13 +29,17 @@ describe('Link Accessibility Testing', () => {
28
29
  it('Link - Validate accessibilityRole is correct', () => {
29
30
  LinkPageObject.scrollToTestElement();
30
31
  LinkPageObject.waitForPrimaryElementDisplayed(PAGE_TIMEOUT);
32
+
31
33
  expect(LinkPageObject.getAccessibilityRole()).toEqual(LINK_A11Y_ROLE);
34
+ expect(LinkPageObject.didAssertPopup()).toBeFalsy(LinkPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped u
32
35
  });
33
36
 
34
37
  it('Link - Set accessibilityLabel', () => {
35
38
  LinkPageObject.scrollToTestElement();
36
39
  LinkPageObject.waitForPrimaryElementDisplayed(PAGE_TIMEOUT);
40
+
37
41
  expect(LinkPageObject.getAccessibilityLabel(ComponentSelector.Primary)).toEqual(LINK_ACCESSIBILITY_LABEL);
42
+ expect(LinkPageObject.didAssertPopup()).toBeFalsy(LinkPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped u
38
43
  });
39
44
 
40
45
  // No need to test not setting a11y label. The content prop gets passed down to the child Text component. This equates to not setting the a11y label
@@ -8,7 +8,7 @@ import { ComponentSelector } from '../../common/BasePage.win';
8
8
  describe('MenuButton Testing Initialization', function () {
9
9
  it('Wait for app load', () => {
10
10
  NavigateAppPage.waitForPageDisplayed(BOOT_APP_TIMEOUT);
11
- expect(NavigateAppPage.isPageLoaded()).toBeTruthy();
11
+ expect(NavigateAppPage.isPageLoaded()).toBeTruthy(NavigateAppPage.ERRORMESSAGE_APPLOAD);
12
12
  });
13
13
 
14
14
  it('Click and navigate to MenuButton test page', () => {
@@ -20,7 +20,8 @@ describe('MenuButton Testing Initialization', function () {
20
20
  NavigateAppPage.clickAndGoToMenuButtonPage();
21
21
  MenuButtonPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
22
22
 
23
- expect(MenuButtonPageObject.isPageLoaded()).toBeTruthy();
23
+ expect(MenuButtonPageObject.isPageLoaded()).toBeTruthy(MenuButtonPageObject.ERRORMESSAGE_PAGELOAD);
24
+ expect(MenuButtonPageObject.didAssertPopup()).toBeFalsy(MenuButtonPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
24
25
  });
25
26
  });
26
27
 
@@ -34,14 +35,17 @@ describe('MenuButton Accessibility Testing', () => {
34
35
 
35
36
  it('MenuButton - Validate accessibilityRole is correct', () => {
36
37
  expect(MenuButtonPageObject.getAccessibilityRole()).toEqual(MENUBUTTON_A11Y_ROLE);
38
+ expect(MenuButtonPageObject.didAssertPopup()).toBeFalsy(MenuButtonPageObject.ERRORMESSAGE_ASSERT);
37
39
  });
38
40
 
39
41
  it('MenuButton - Set accessibilityLabel', () => {
40
42
  expect(MenuButtonPageObject.getAccessibilityLabel(ComponentSelector.Primary)).toEqual(MENU_BUTTON_ACCESSIBILITY_LABEL);
43
+ expect(MenuButtonPageObject.didAssertPopup()).toBeFalsy(MenuButtonPageObject.ERRORMESSAGE_ASSERT);
41
44
  });
42
45
 
43
46
  it('Do not set accessibilityLabel -> Default to MenuButton label', () => {
44
47
  expect(MenuButtonPageObject.getAccessibilityLabel(ComponentSelector.Secondary)).toEqual(MENU_BUTTON_TEST_COMPONENT_LABEL);
48
+ expect(MenuButtonPageObject.didAssertPopup()).toBeFalsy(MenuButtonPageObject.ERRORMESSAGE_ASSERT);
45
49
  });
46
50
  });
47
51
 
@@ -60,6 +64,7 @@ describe('MenuButton Functional Testing', () => {
60
64
  MenuButtonPageObject.waitForMenuItemsToOpen(PAGE_TIMEOUT);
61
65
 
62
66
  expect(MenuButtonPageObject.menuItemDisplayed()).toBeTruthy();
67
+ expect(MenuButtonPageObject.didAssertPopup()).toBeFalsy(MenuButtonPageObject.ERRORMESSAGE_ASSERT);
63
68
  });
64
69
 
65
70
  it('Type "SpaceBar" to select the MenuButton and validate that the list of Menu Items open', () => {
@@ -68,6 +73,7 @@ describe('MenuButton Functional Testing', () => {
68
73
  MenuButtonPageObject.waitForMenuItemsToOpen(PAGE_TIMEOUT);
69
74
 
70
75
  expect(MenuButtonPageObject.menuItemDisplayed()).toBeTruthy();
76
+ expect(MenuButtonPageObject.didAssertPopup()).toBeFalsy(MenuButtonPageObject.ERRORMESSAGE_ASSERT);
71
77
  });
72
78
 
73
79
  /* Runs after all tests. This ensures the MenuButton closes. If it stays open, the test driver won't be able to close the test app */
@@ -11,7 +11,7 @@ import { ComponentSelector } from '../../common/BasePage.win';
11
11
  describe('Experimental MenuButton Testing Initialization', function () {
12
12
  it('Wait for app load', () => {
13
13
  NavigateAppPage.waitForPageDisplayed(BOOT_APP_TIMEOUT);
14
- expect(NavigateAppPage.isPageLoaded()).toBeTruthy();
14
+ expect(NavigateAppPage.isPageLoaded()).toBeTruthy(NavigateAppPage.ERRORMESSAGE_APPLOAD);
15
15
  });
16
16
 
17
17
  it('Click and navigate to Experimental MenuButton test page', () => {
@@ -23,7 +23,8 @@ describe('Experimental MenuButton Testing Initialization', function () {
23
23
  NavigateAppPage.clickAndGoToExperimentalMenuButtonPage();
24
24
  ExperimentalMenuButtonPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
25
25
 
26
- expect(ExperimentalMenuButtonPageObject.isPageLoaded()).toBeTruthy();
26
+ expect(ExperimentalMenuButtonPageObject.isPageLoaded()).toBeTruthy(ExperimentalMenuButtonPageObject.ERRORMESSAGE_PAGELOAD);
27
+ expect(ExperimentalMenuButtonPageObject.didAssertPopup()).toBeFalsy(ExperimentalMenuButtonPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
27
28
  });
28
29
  });
29
30
 
@@ -32,22 +33,28 @@ describe('Experimental MenuButton Accessibility Testing', () => {
32
33
  it('Experimental MenuButton - Validate accessibilityRole is correct', () => {
33
34
  ExperimentalMenuButtonPageObject.scrollToTestElement();
34
35
  ExperimentalMenuButtonPageObject.waitForPrimaryElementDisplayed(PAGE_TIMEOUT);
36
+
35
37
  expect(ExperimentalMenuButtonPageObject.getAccessibilityRole()).toEqual(MENUBUTTON_A11Y_ROLE);
38
+ expect(ExperimentalMenuButtonPageObject.didAssertPopup()).toBeFalsy(ExperimentalMenuButtonPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
36
39
  });
37
40
 
38
41
  it('Experimental MenuButton - Set accessibilityLabel', () => {
39
42
  ExperimentalMenuButtonPageObject.scrollToTestElement();
40
43
  ExperimentalMenuButtonPageObject.waitForPrimaryElementDisplayed(PAGE_TIMEOUT);
44
+
41
45
  expect(ExperimentalMenuButtonPageObject.getAccessibilityLabel(ComponentSelector.Primary)).toEqual(
42
46
  EXPERIMENTAL_MENU_BUTTON_ACCESSIBILITY_LABEL,
43
47
  );
48
+ expect(ExperimentalMenuButtonPageObject.didAssertPopup()).toBeFalsy(ExperimentalMenuButtonPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
44
49
  });
45
50
 
46
51
  it('Do not set accessibilityLabel -> Default to Experimental MenuButton label', () => {
47
52
  ExperimentalMenuButtonPageObject.scrollToTestElement();
48
53
  ExperimentalMenuButtonPageObject.waitForPrimaryElementDisplayed(PAGE_TIMEOUT);
54
+
49
55
  expect(ExperimentalMenuButtonPageObject.getAccessibilityLabel(ComponentSelector.Secondary)).toEqual(
50
56
  EXPERIMENTAL_MENU_BUTTON_TEST_COMPONENT_LABEL,
51
57
  );
58
+ expect(ExperimentalMenuButtonPageObject.didAssertPopup()).toBeFalsy(ExperimentalMenuButtonPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
52
59
  });
53
60
  });
@@ -6,7 +6,7 @@ import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
6
6
  describe('Persona Testing Initialization', function () {
7
7
  it('Wait for app load', () => {
8
8
  NavigateAppPage.waitForPageDisplayed(BOOT_APP_TIMEOUT);
9
- expect(NavigateAppPage.isPageLoaded()).toBeTruthy();
9
+ expect(NavigateAppPage.isPageLoaded()).toBeTruthy(NavigateAppPage.ERRORMESSAGE_APPLOAD);
10
10
  });
11
11
 
12
12
  it('Click and navigate to Persona test page', () => {
@@ -18,6 +18,7 @@ describe('Persona Testing Initialization', function () {
18
18
  NavigateAppPage.clickAndGoToPersonaPage();
19
19
  PersonaPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
20
20
 
21
- expect(PersonaPageObject.isPageLoaded()).toBeTruthy();
21
+ expect(PersonaPageObject.isPageLoaded()).toBeTruthy(PersonaPageObject.ERRORMESSAGE_PAGELOAD);
22
+ expect(PersonaPageObject.didAssertPopup()).toBeFalsy(PersonaPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
22
23
  });
23
24
  });
@@ -6,7 +6,7 @@ import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
6
6
  describe('PersonaCoin Testing Initialization', function () {
7
7
  it('Wait for app load', () => {
8
8
  NavigateAppPage.waitForPageDisplayed(BOOT_APP_TIMEOUT);
9
- expect(NavigateAppPage.isPageLoaded()).toBeTruthy();
9
+ expect(NavigateAppPage.isPageLoaded()).toBeTruthy(NavigateAppPage.ERRORMESSAGE_APPLOAD);
10
10
  });
11
11
 
12
12
  it('Click and navigate to PersonaCoin test page', () => {
@@ -18,6 +18,7 @@ describe('PersonaCoin Testing Initialization', function () {
18
18
  NavigateAppPage.clickAndGoToPersonaCoinPage();
19
19
  PersonaCoinPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
20
20
 
21
- expect(PersonaCoinPageObject.isPageLoaded()).toBeTruthy();
21
+ expect(PersonaCoinPageObject.isPageLoaded()).toBeTruthy(PersonaCoinPageObject.ERRORMESSAGE_PAGELOAD);
22
+ expect(PersonaCoinPageObject.didAssertPopup()).toBeFalsy(PersonaCoinPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
22
23
  });
23
24
  });
@@ -6,7 +6,7 @@ import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
6
6
  describe('Pressable Testing Initialization', function () {
7
7
  it('Wait for app load', () => {
8
8
  NavigateAppPage.waitForPageDisplayed(BOOT_APP_TIMEOUT);
9
- expect(NavigateAppPage.isPageLoaded()).toBeTruthy();
9
+ expect(NavigateAppPage.isPageLoaded()).toBeTruthy(NavigateAppPage.ERRORMESSAGE_APPLOAD);
10
10
  });
11
11
 
12
12
  it('Click and navigate to Pressable test page', () => {
@@ -18,6 +18,7 @@ describe('Pressable Testing Initialization', function () {
18
18
  NavigateAppPage.clickAndGoToPressablePage();
19
19
  PressablePageObject.waitForPageDisplayed(PAGE_TIMEOUT);
20
20
 
21
- expect(PressablePageObject.isPageLoaded()).toBeTruthy();
21
+ expect(PressablePageObject.isPageLoaded()).toBeTruthy(PressablePageObject.ERRORMESSAGE_PAGELOAD);
22
+ expect(PressablePageObject.didAssertPopup()).toBeFalsy(PressablePageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
22
23
  });
23
24
  });