@fluentui-react-native/tester 0.52.2 → 0.53.3

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 (156) hide show
  1. package/CHANGELOG.json +141 -1
  2. package/CHANGELOG.md +46 -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/ButtonVariantTestSection.d.ts.map +1 -1
  60. package/lib/FluentTester/TestComponents/ButtonExperimental/ButtonVariantTestSection.js +2 -1
  61. package/lib/FluentTester/TestComponents/ButtonExperimental/ButtonVariantTestSection.js.map +1 -1
  62. package/lib/FluentTester/TestComponents/ButtonExperimental/ToggleButtonTestSection.d.ts.map +1 -1
  63. package/lib/FluentTester/TestComponents/ButtonExperimental/ToggleButtonTestSection.js +3 -2
  64. package/lib/FluentTester/TestComponents/ButtonExperimental/ToggleButtonTestSection.js.map +1 -1
  65. package/lib-commonjs/E2E/ActivityIndicator/specs/ActivityIndicator.spec.win.js +3 -2
  66. package/lib-commonjs/E2E/ActivityIndicator/specs/ActivityIndicator.spec.win.js.map +1 -1
  67. package/lib-commonjs/E2E/Button/specs/Button.spec.win.js +9 -2
  68. package/lib-commonjs/E2E/Button/specs/Button.spec.win.js.map +1 -1
  69. package/lib-commonjs/E2E/ButtonExperimental/specs/ButtonExperimental.spec.win.js +6 -2
  70. package/lib-commonjs/E2E/ButtonExperimental/specs/ButtonExperimental.spec.win.js.map +1 -1
  71. package/lib-commonjs/E2E/Callout/specs/Callout.spec.win.js +3 -2
  72. package/lib-commonjs/E2E/Callout/specs/Callout.spec.win.js.map +1 -1
  73. package/lib-commonjs/E2E/Checkbox/specs/Checkbox.spec.win.js +8 -2
  74. package/lib-commonjs/E2E/Checkbox/specs/Checkbox.spec.win.js.map +1 -1
  75. package/lib-commonjs/E2E/CheckboxExperimental/specs/ExperimentalCheckbox.spec.win.js +6 -2
  76. package/lib-commonjs/E2E/CheckboxExperimental/specs/ExperimentalCheckbox.spec.win.js.map +1 -1
  77. package/lib-commonjs/E2E/ContextualMenu/specs/ContextualMenu.spec.win.js +5 -2
  78. package/lib-commonjs/E2E/ContextualMenu/specs/ContextualMenu.spec.win.js.map +1 -1
  79. package/lib-commonjs/E2E/FocusTrapZone/specs/FocusTrapZone.spec.win.js +3 -2
  80. package/lib-commonjs/E2E/FocusTrapZone/specs/FocusTrapZone.spec.win.js.map +1 -1
  81. package/lib-commonjs/E2E/FocusZone/specs/FocusZone.spec.win.js +3 -2
  82. package/lib-commonjs/E2E/FocusZone/specs/FocusZone.spec.win.js.map +1 -1
  83. package/lib-commonjs/E2E/Icon/specs/Icon.spec.win.js +3 -2
  84. package/lib-commonjs/E2E/Icon/specs/Icon.spec.win.js.map +1 -1
  85. package/lib-commonjs/E2E/Link/specs/Link.spec.win.js +5 -2
  86. package/lib-commonjs/E2E/Link/specs/Link.spec.win.js.map +1 -1
  87. package/lib-commonjs/E2E/MenuButton/specs/MenuButton.spec.win.js +8 -2
  88. package/lib-commonjs/E2E/MenuButton/specs/MenuButton.spec.win.js.map +1 -1
  89. package/lib-commonjs/E2E/MenuButtonExperimental/specs/ExperimentalMenuButton.spec.win.js +6 -2
  90. package/lib-commonjs/E2E/MenuButtonExperimental/specs/ExperimentalMenuButton.spec.win.js.map +1 -1
  91. package/lib-commonjs/E2E/Persona/specs/Persona.spec.win.js +3 -2
  92. package/lib-commonjs/E2E/Persona/specs/Persona.spec.win.js.map +1 -1
  93. package/lib-commonjs/E2E/PersonaCoin/specs/PersonaCoin.spec.win.js +3 -2
  94. package/lib-commonjs/E2E/PersonaCoin/specs/PersonaCoin.spec.win.js.map +1 -1
  95. package/lib-commonjs/E2E/Pressable/specs/Pressable.spec.win.js +3 -2
  96. package/lib-commonjs/E2E/Pressable/specs/Pressable.spec.win.js.map +1 -1
  97. package/lib-commonjs/E2E/RadioGroup/specs/RadioGroup.spec.win.js +12 -2
  98. package/lib-commonjs/E2E/RadioGroup/specs/RadioGroup.spec.win.js.map +1 -1
  99. package/lib-commonjs/E2E/Separator/specs/Separator.spec.win.js +3 -2
  100. package/lib-commonjs/E2E/Separator/specs/Separator.spec.win.js.map +1 -1
  101. package/lib-commonjs/E2E/Shimmer/specs/Shimmer.spec.win.js +3 -2
  102. package/lib-commonjs/E2E/Shimmer/specs/Shimmer.spec.win.js.map +1 -1
  103. package/lib-commonjs/E2E/Svg/specs/Svg.spec.win.js +3 -2
  104. package/lib-commonjs/E2E/Svg/specs/Svg.spec.win.js.map +1 -1
  105. package/lib-commonjs/E2E/Tabs/specs/Tabs.spec.win.js +7 -2
  106. package/lib-commonjs/E2E/Tabs/specs/Tabs.spec.win.js.map +1 -1
  107. package/lib-commonjs/E2E/TabsExperimental/specs/TabsExperimental.spec.win.js +5 -2
  108. package/lib-commonjs/E2E/TabsExperimental/specs/TabsExperimental.spec.win.js.map +1 -1
  109. package/lib-commonjs/E2E/Text/specs/Text.spec.win.js +6 -2
  110. package/lib-commonjs/E2E/Text/specs/Text.spec.win.js.map +1 -1
  111. package/lib-commonjs/E2E/TextExperimental/specs/ExperimentalText.spec.win.js +4 -2
  112. package/lib-commonjs/E2E/TextExperimental/specs/ExperimentalText.spec.win.js.map +1 -1
  113. package/lib-commonjs/E2E/Theme/specs/Theme.spec.win.js +3 -2
  114. package/lib-commonjs/E2E/Theme/specs/Theme.spec.win.js.map +1 -1
  115. package/lib-commonjs/E2E/Tokens/specs/Tokens.spec.win.js +3 -2
  116. package/lib-commonjs/E2E/Tokens/specs/Tokens.spec.win.js.map +1 -1
  117. package/lib-commonjs/E2E/common/BasePage.win.d.ts +6 -0
  118. package/lib-commonjs/E2E/common/BasePage.win.d.ts.map +1 -1
  119. package/lib-commonjs/E2E/common/BasePage.win.js +45 -0
  120. package/lib-commonjs/E2E/common/BasePage.win.js.map +1 -1
  121. package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ButtonVariantTestSection.d.ts.map +1 -1
  122. package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ButtonVariantTestSection.js +2 -1
  123. package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ButtonVariantTestSection.js.map +1 -1
  124. package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ToggleButtonTestSection.d.ts.map +1 -1
  125. package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ToggleButtonTestSection.js +3 -2
  126. package/lib-commonjs/FluentTester/TestComponents/ButtonExperimental/ToggleButtonTestSection.js.map +1 -1
  127. package/package.json +9 -9
  128. package/src/E2E/ActivityIndicator/specs/ActivityIndicator.spec.win.ts +3 -2
  129. package/src/E2E/Button/specs/Button.spec.win.ts +9 -2
  130. package/src/E2E/ButtonExperimental/specs/ButtonExperimental.spec.win.ts +9 -2
  131. package/src/E2E/Callout/specs/Callout.spec.win.ts +3 -2
  132. package/src/E2E/Checkbox/specs/Checkbox.spec.win.ts +8 -2
  133. package/src/E2E/CheckboxExperimental/specs/ExperimentalCheckbox.spec.win.ts +9 -2
  134. package/src/E2E/ContextualMenu/specs/ContextualMenu.spec.win.ts +5 -2
  135. package/src/E2E/FocusTrapZone/specs/FocusTrapZone.spec.win.ts +3 -2
  136. package/src/E2E/FocusZone/specs/FocusZone.spec.win.ts +3 -2
  137. package/src/E2E/Icon/specs/Icon.spec.win.ts +3 -2
  138. package/src/E2E/Link/specs/Link.spec.win.ts +7 -2
  139. package/src/E2E/MenuButton/specs/MenuButton.spec.win.ts +8 -2
  140. package/src/E2E/MenuButtonExperimental/specs/ExperimentalMenuButton.spec.win.ts +9 -2
  141. package/src/E2E/Persona/specs/Persona.spec.win.ts +3 -2
  142. package/src/E2E/PersonaCoin/specs/PersonaCoin.spec.win.ts +3 -2
  143. package/src/E2E/Pressable/specs/Pressable.spec.win.ts +3 -2
  144. package/src/E2E/RadioGroup/specs/RadioGroup.spec.win.ts +12 -2
  145. package/src/E2E/Separator/specs/Separator.spec.win.ts +3 -2
  146. package/src/E2E/Shimmer/specs/Shimmer.spec.win.ts +3 -2
  147. package/src/E2E/Svg/specs/Svg.spec.win.ts +3 -2
  148. package/src/E2E/Tabs/specs/Tabs.spec.win.ts +7 -2
  149. package/src/E2E/TabsExperimental/specs/TabsExperimental.spec.win.ts +7 -2
  150. package/src/E2E/Text/specs/Text.spec.win.ts +6 -2
  151. package/src/E2E/TextExperimental/specs/ExperimentalText.spec.win.ts +5 -2
  152. package/src/E2E/Theme/specs/Theme.spec.win.ts +3 -2
  153. package/src/E2E/Tokens/specs/Tokens.spec.win.ts +3 -2
  154. package/src/E2E/common/BasePage.win.ts +34 -0
  155. package/src/FluentTester/TestComponents/ButtonExperimental/ButtonVariantTestSection.tsx +4 -1
  156. package/src/FluentTester/TestComponents/ButtonExperimental/ToggleButtonTestSection.tsx +5 -2
@@ -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
  });
@@ -13,7 +13,7 @@ import {
13
13
  describe('RadioGroup/RadioButton Testing Initialization', function () {
14
14
  it('Wait for app load', () => {
15
15
  NavigateAppPage.waitForPageDisplayed(BOOT_APP_TIMEOUT);
16
- expect(NavigateAppPage.isPageLoaded()).toBeTruthy();
16
+ expect(NavigateAppPage.isPageLoaded()).toBeTruthy(NavigateAppPage.ERRORMESSAGE_APPLOAD);
17
17
  });
18
18
 
19
19
  it('Click and navigate to RadioGroup test page', () => {
@@ -25,7 +25,8 @@ describe('RadioGroup/RadioButton Testing Initialization', function () {
25
25
  NavigateAppPage.clickAndGoToRadioGroupPage();
26
26
  RadioGroupPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
27
27
 
28
- expect(RadioGroupPageObject.isPageLoaded()).toBeTruthy();
28
+ expect(RadioGroupPageObject.isPageLoaded()).toBeTruthy(RadioGroupPageObject.ERRORMESSAGE_PAGELOAD);
29
+ expect(RadioGroupPageObject.didAssertPopup()).toBeFalsy(RadioGroupPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
29
30
  });
30
31
  });
31
32
 
@@ -38,26 +39,32 @@ describe('RadioGroup/RadioButton Accessibility Testing', () => {
38
39
 
39
40
  it("Validate RadioGroup's accessibilityRole is correct", () => {
40
41
  expect(RadioGroupPageObject.getAccessibilityRole()).toEqual(RADIOGROUP_A11Y_ROLE);
42
+ expect(RadioGroupPageObject.didAssertPopup()).toBeFalsy(RadioGroupPageObject.ERRORMESSAGE_ASSERT);
41
43
  });
42
44
 
43
45
  it("Validate RadioButton's accessibilityRole is correct", () => {
44
46
  expect(RadioGroupPageObject.getRadioButtonAccesibilityRole()).toEqual(RADIOBUTTON_A11Y_ROLE);
47
+ expect(RadioGroupPageObject.didAssertPopup()).toBeFalsy(RadioGroupPageObject.ERRORMESSAGE_ASSERT);
45
48
  });
46
49
 
47
50
  it('RadioGroup - Set accessibilityLabel', () => {
48
51
  expect(RadioGroupPageObject.getAccessibilityLabel(ComponentSelector.Primary)).toEqual(RADIOGROUP_ACCESSIBILITY_LABEL);
52
+ expect(RadioGroupPageObject.didAssertPopup()).toBeFalsy(RadioGroupPageObject.ERRORMESSAGE_ASSERT);
49
53
  });
50
54
 
51
55
  it('RadioGroup - Do not set accessibilityLabel -> Default to RadioGroup label', () => {
52
56
  expect(RadioGroupPageObject.getAccessibilityLabel(ComponentSelector.Secondary)).toEqual(RADIOGROUP_TEST_COMPONENT_LABEL);
57
+ expect(RadioGroupPageObject.didAssertPopup()).toBeFalsy(RadioGroupPageObject.ERRORMESSAGE_ASSERT);
53
58
  });
54
59
 
55
60
  it('RadioButton - Set accessibilityLabel', () => {
56
61
  expect(RadioGroupPageObject.getRBAccessibilityLabel(RadioButtonSelector.First)).toEqual(FIRST_RADIO_BUTTON_ACCESSIBILITY_LABEL);
62
+ expect(RadioGroupPageObject.didAssertPopup()).toBeFalsy(RadioGroupPageObject.ERRORMESSAGE_ASSERT);
57
63
  });
58
64
 
59
65
  it('RadioButton - Do not set accessibilityLabel -> Default to RadioButton label', () => {
60
66
  expect(RadioGroupPageObject.getRBAccessibilityLabel(RadioButtonSelector.Second)).toEqual(SECOND_RADIO_BUTTON_LABEL);
67
+ expect(RadioGroupPageObject.didAssertPopup()).toBeFalsy(RadioGroupPageObject.ERRORMESSAGE_ASSERT);
61
68
  });
62
69
  });
63
70
 
@@ -80,6 +87,7 @@ describe('RadioGroup Functional Testing', () => {
80
87
 
81
88
  /* Validate the RadioButton is selected */
82
89
  expect(RadioGroupPageObject.isRadioButtonSelected(RadioButtonSelector.Second)).toBeTruthy();
90
+ expect(RadioGroupPageObject.didAssertPopup()).toBeFalsy(RadioGroupPageObject.ERRORMESSAGE_ASSERT);
83
91
  });
84
92
 
85
93
  it('Keyboard to RadioButton and check for Selection state', () => {
@@ -89,6 +97,7 @@ describe('RadioGroup Functional Testing', () => {
89
97
 
90
98
  /* Validate the RadioButton is selected */
91
99
  expect(RadioGroupPageObject.isRadioButtonSelected(RadioButtonSelector.Second)).toBeTruthy();
100
+ expect(RadioGroupPageObject.didAssertPopup()).toBeFalsy(RadioGroupPageObject.ERRORMESSAGE_ASSERT);
92
101
  });
93
102
 
94
103
  it("Keyboard to DISABLED RadioButton and validate it doesn't get selected", () => {
@@ -98,5 +107,6 @@ describe('RadioGroup Functional Testing', () => {
98
107
 
99
108
  /* Validate the RadioButton is selected */
100
109
  expect(RadioGroupPageObject.isRadioButtonSelected(RadioButtonSelector.Fourth)).toBeTruthy();
110
+ expect(RadioGroupPageObject.didAssertPopup()).toBeFalsy(RadioGroupPageObject.ERRORMESSAGE_ASSERT);
101
111
  });
102
112
  });
@@ -6,7 +6,7 @@ import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
6
6
  describe('Separator 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 Separator test page', () => {
@@ -18,6 +18,7 @@ describe('Separator Testing Initialization', function () {
18
18
  NavigateAppPage.clickAndGoToSeparatorPage();
19
19
  SeparatorPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
20
20
 
21
- expect(SeparatorPageObject.isPageLoaded()).toBeTruthy();
21
+ expect(SeparatorPageObject.isPageLoaded()).toBeTruthy(SeparatorPageObject.ERRORMESSAGE_PAGELOAD);
22
+ expect(SeparatorPageObject.didAssertPopup()).toBeFalsy(SeparatorPageObject.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('Shimmer 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 Shimmer test page', () => {
@@ -18,6 +18,7 @@ describe('Shimmer Testing Initialization', function () {
18
18
  NavigateAppPage.clickAndGoToShimmerPage();
19
19
  ShimmerPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
20
20
 
21
- expect(ShimmerPageObject.isPageLoaded()).toBeTruthy();
21
+ expect(ShimmerPageObject.isPageLoaded()).toBeTruthy(ShimmerPageObject.ERRORMESSAGE_PAGELOAD);
22
+ expect(ShimmerPageObject.didAssertPopup()).toBeFalsy(ShimmerPageObject.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('Svg 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 Svg test page', () => {
@@ -18,6 +18,7 @@ describe('Svg Testing Initialization', function () {
18
18
  NavigateAppPage.clickAndGoToSvgPage();
19
19
  SvgPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
20
20
 
21
- expect(SvgPageObject.isPageLoaded()).toBeTruthy();
21
+ expect(SvgPageObject.isPageLoaded()).toBeTruthy(SvgPageObject.ERRORMESSAGE_PAGELOAD);
22
+ expect(SvgPageObject.didAssertPopup()).toBeFalsy(SvgPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
22
23
  });
23
24
  });
@@ -6,7 +6,7 @@ import { TAB_A11Y_ROLE, BOOT_APP_TIMEOUT, PAGE_TIMEOUT, TABITEM_A11Y_ROLE, Keys
6
6
  describe('Tabs 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 Tabs test page', () => {
@@ -18,7 +18,8 @@ describe('Tabs Testing Initialization', function () {
18
18
  NavigateAppPage.clickAndGoToTabsPage();
19
19
  TabsPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
20
20
 
21
- expect(TabsPageObject.isPageLoaded()).toBeTruthy();
21
+ expect(TabsPageObject.isPageLoaded()).toBeTruthy(TabsPageObject.ERRORMESSAGE_PAGELOAD);
22
+ expect(TabsPageObject.didAssertPopup()).toBeFalsy(TabsPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
22
23
  });
23
24
  });
24
25
 
@@ -31,10 +32,12 @@ describe('Tabs Accessibility Testing', () => {
31
32
 
32
33
  it("Validate Tab's accessibilityRole is correct", () => {
33
34
  expect(TabsPageObject.getAccessibilityRole()).toEqual(TAB_A11Y_ROLE);
35
+ expect(TabsPageObject.didAssertPopup()).toBeFalsy(TabsPageObject.ERRORMESSAGE_ASSERT);
34
36
  });
35
37
 
36
38
  it("Validate TabItem's accessibilityRole is correct", () => {
37
39
  expect(TabsPageObject.getTabItemAccesibilityRole(TabItemSelector.First)).toEqual(TABITEM_A11Y_ROLE);
40
+ expect(TabsPageObject.didAssertPopup()).toBeFalsy(TabsPageObject.ERRORMESSAGE_ASSERT);
38
41
  });
39
42
  });
40
43
 
@@ -53,6 +56,7 @@ describe('Tabs Functional Tests', () => {
53
56
  TabsPageObject.waitForTabsItemsToOpen(TabItemSelector.Second, PAGE_TIMEOUT);
54
57
 
55
58
  expect(TabsPageObject.didTabItemContentLoad(TabItemSelector.Second)).toBeTruthy();
59
+ expect(TabsPageObject.didAssertPopup()).toBeFalsy(TabsPageObject.ERRORMESSAGE_ASSERT);
56
60
  });
57
61
 
58
62
  it('Keyboarding: Arrow Navigation: Right -> Down -> Left -> Up -> Validate the correct TabItem content is shown', () => {
@@ -79,5 +83,6 @@ describe('Tabs Functional Tests', () => {
79
83
  TabsPageObject.waitForTabsItemsToOpen(TabItemSelector.First, PAGE_TIMEOUT);
80
84
 
81
85
  expect(TabsPageObject.didTabItemContentLoad(TabItemSelector.First)).toBeTruthy();
86
+ expect(TabsPageObject.didAssertPopup()).toBeFalsy(TabsPageObject.ERRORMESSAGE_ASSERT);
82
87
  });
83
88
  });
@@ -6,7 +6,7 @@ import { TAB_A11Y_ROLE, TABITEM_A11Y_ROLE, BOOT_APP_TIMEOUT, PAGE_TIMEOUT } from
6
6
  describe('Experimental Tabs 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 Experimental Tabs test page', () => {
@@ -18,7 +18,8 @@ describe('Experimental Tabs Testing Initialization', function () {
18
18
  NavigateAppPage.clickAndGoToExperimentalTabsPage();
19
19
  ExperimentalTabsPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
20
20
 
21
- expect(ExperimentalTabsPageObject.isPageLoaded()).toBeTruthy();
21
+ expect(ExperimentalTabsPageObject.isPageLoaded()).toBeTruthy(ExperimentalTabsPageObject.ERRORMESSAGE_PAGELOAD);
22
+ expect(ExperimentalTabsPageObject.didAssertPopup()).toBeFalsy(ExperimentalTabsPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
22
23
  });
23
24
  });
24
25
 
@@ -26,12 +27,16 @@ describe('Experimental Tabs Accessibility Testing', () => {
26
27
  it("Validate Experimental Tab's accessibilityRole is correct", () => {
27
28
  ExperimentalTabsPageObject.scrollToTestElement();
28
29
  ExperimentalTabsPageObject.waitForPrimaryElementDisplayed(PAGE_TIMEOUT);
30
+
29
31
  expect(ExperimentalTabsPageObject.getAccessibilityRole()).toEqual(TAB_A11Y_ROLE);
32
+ expect(ExperimentalTabsPageObject.didAssertPopup()).toBeFalsy(ExperimentalTabsPageObject.ERRORMESSAGE_ASSERT);
30
33
  });
31
34
 
32
35
  it("Validate Experimental TabItem's accessibilityRole is correct", () => {
33
36
  ExperimentalTabsPageObject.scrollToTestElement();
34
37
  ExperimentalTabsPageObject.waitForPrimaryElementDisplayed(PAGE_TIMEOUT);
38
+
35
39
  expect(ExperimentalTabsPageObject.getTabItemAccesibilityRole()).toEqual(TABITEM_A11Y_ROLE);
40
+ expect(ExperimentalTabsPageObject.didAssertPopup()).toBeFalsy(ExperimentalTabsPageObject.ERRORMESSAGE_ASSERT);
36
41
  });
37
42
  });
@@ -8,7 +8,7 @@ import { TEXT_ACCESSIBILITY_LABEL, TEXT_COMPONENT_CONTENT } from '../../../Fluen
8
8
  describe('Text 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 Text test page', () => {
@@ -20,7 +20,8 @@ describe('Text Testing Initialization', function () {
20
20
  NavigateAppPage.clickAndGoToTextPage();
21
21
  TextPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
22
22
 
23
- expect(TextPageObject.isPageLoaded()).toBeTruthy();
23
+ expect(TextPageObject.isPageLoaded()).toBeTruthy(TextPageObject.ERRORMESSAGE_PAGELOAD);
24
+ expect(TextPageObject.didAssertPopup()).toBeFalsy(TextPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
24
25
  });
25
26
  });
26
27
 
@@ -32,13 +33,16 @@ describe('Text Accessibility Testing', () => {
32
33
 
33
34
  it('Text - Validate accessibilityRole is correct', () => {
34
35
  expect(TextPageObject.getAccessibilityRole()).toEqual(TEXT_A11Y_ROLE);
36
+ expect(TextPageObject.didAssertPopup()).toBeFalsy(TextPageObject.ERRORMESSAGE_ASSERT);
35
37
  });
36
38
 
37
39
  it('Text - Set accessibilityLabel', () => {
38
40
  expect(TextPageObject.getAccessibilityLabel(ComponentSelector.Primary)).toEqual(TEXT_ACCESSIBILITY_LABEL);
41
+ expect(TextPageObject.didAssertPopup()).toBeFalsy(TextPageObject.ERRORMESSAGE_ASSERT);
39
42
  });
40
43
 
41
44
  it('Text - Do not accessibilityLabel -> Default to content', () => {
42
45
  expect(TextPageObject.getAccessibilityLabel(ComponentSelector.Secondary)).toEqual(TEXT_COMPONENT_CONTENT);
46
+ expect(TextPageObject.didAssertPopup()).toBeFalsy(TextPageObject.ERRORMESSAGE_ASSERT);
43
47
  });
44
48
  });
@@ -6,7 +6,7 @@ import { TEXT_A11Y_ROLE, PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/con
6
6
  describe('Experimental Text 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 Experimental Text test page', () => {
@@ -18,7 +18,8 @@ describe('Experimental Text Testing Initialization', function () {
18
18
  NavigateAppPage.clickAndGoToExperimentalTextPage();
19
19
  ExperimentalTextPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
20
20
 
21
- expect(ExperimentalTextPageObject.isPageLoaded()).toBeTruthy();
21
+ expect(ExperimentalTextPageObject.isPageLoaded()).toBeTruthy(ExperimentalTextPageObject.ERRORMESSAGE_PAGELOAD);
22
+ expect(ExperimentalTextPageObject.didAssertPopup()).toBeFalsy(ExperimentalTextPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
22
23
  });
23
24
  });
24
25
 
@@ -26,6 +27,8 @@ describe('Experimental Text Accessibility Testing', () => {
26
27
  it('Text - Validate accessibilityRole is correct', () => {
27
28
  ExperimentalTextPageObject.scrollToTestElement();
28
29
  ExperimentalTextPageObject.waitForPrimaryElementDisplayed(PAGE_TIMEOUT);
30
+
29
31
  expect(ExperimentalTextPageObject.getAccessibilityRole()).toEqual(TEXT_A11Y_ROLE);
32
+ expect(ExperimentalTextPageObject.didAssertPopup()).toBeFalsy(ExperimentalTextPageObject.ERRORMESSAGE_ASSERT);
30
33
  });
31
34
  });
@@ -6,7 +6,7 @@ import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
6
6
  describe('Theme 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 Theme test page', () => {
@@ -18,6 +18,7 @@ describe('Theme Testing Initialization', function () {
18
18
  NavigateAppPage.clickAndGoToThemePage();
19
19
  ThemePageObject.waitForPageDisplayed(PAGE_TIMEOUT);
20
20
 
21
- expect(ThemePageObject.isPageLoaded()).toBeTruthy();
21
+ expect(ThemePageObject.isPageLoaded()).toBeTruthy(ThemePageObject.ERRORMESSAGE_PAGELOAD);
22
+ expect(ThemePageObject.didAssertPopup()).toBeFalsy(ThemePageObject.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('Tokens 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 Tokens test page', () => {
@@ -18,6 +18,7 @@ describe('Tokens Testing Initialization', function () {
18
18
  NavigateAppPage.clickAndGoToTokensPage();
19
19
  TokenPageObject.waitForPageDisplayed(PAGE_TIMEOUT);
20
20
 
21
- expect(TokenPageObject.isPageLoaded()).toBeTruthy();
21
+ expect(TokenPageObject.isPageLoaded()).toBeTruthy(TokenPageObject.ERRORMESSAGE_PAGELOAD);
22
+ expect(TokenPageObject.didAssertPopup()).toBeFalsy(TokenPageObject.ERRORMESSAGE_ASSERT); // Ensure no asserts popped up
22
23
  });
23
24
  });