@fluentui-react-native/tester 0.52.2 → 0.53.0
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.
- package/CHANGELOG.json +28 -1
- package/CHANGELOG.md +12 -2
- package/lib/E2E/ActivityIndicator/specs/ActivityIndicator.spec.win.js +3 -2
- package/lib/E2E/ActivityIndicator/specs/ActivityIndicator.spec.win.js.map +1 -1
- package/lib/E2E/Button/specs/Button.spec.win.js +9 -2
- package/lib/E2E/Button/specs/Button.spec.win.js.map +1 -1
- package/lib/E2E/ButtonExperimental/specs/ButtonExperimental.spec.win.js +6 -2
- package/lib/E2E/ButtonExperimental/specs/ButtonExperimental.spec.win.js.map +1 -1
- package/lib/E2E/Callout/specs/Callout.spec.win.js +3 -2
- package/lib/E2E/Callout/specs/Callout.spec.win.js.map +1 -1
- package/lib/E2E/Checkbox/specs/Checkbox.spec.win.js +8 -2
- package/lib/E2E/Checkbox/specs/Checkbox.spec.win.js.map +1 -1
- package/lib/E2E/CheckboxExperimental/specs/ExperimentalCheckbox.spec.win.js +6 -2
- package/lib/E2E/CheckboxExperimental/specs/ExperimentalCheckbox.spec.win.js.map +1 -1
- package/lib/E2E/ContextualMenu/specs/ContextualMenu.spec.win.js +5 -2
- package/lib/E2E/ContextualMenu/specs/ContextualMenu.spec.win.js.map +1 -1
- package/lib/E2E/FocusTrapZone/specs/FocusTrapZone.spec.win.js +3 -2
- package/lib/E2E/FocusTrapZone/specs/FocusTrapZone.spec.win.js.map +1 -1
- package/lib/E2E/FocusZone/specs/FocusZone.spec.win.js +3 -2
- package/lib/E2E/FocusZone/specs/FocusZone.spec.win.js.map +1 -1
- package/lib/E2E/Icon/specs/Icon.spec.win.js +3 -2
- package/lib/E2E/Icon/specs/Icon.spec.win.js.map +1 -1
- package/lib/E2E/Link/specs/Link.spec.win.js +5 -2
- package/lib/E2E/Link/specs/Link.spec.win.js.map +1 -1
- package/lib/E2E/MenuButton/specs/MenuButton.spec.win.js +8 -2
- package/lib/E2E/MenuButton/specs/MenuButton.spec.win.js.map +1 -1
- package/lib/E2E/MenuButtonExperimental/specs/ExperimentalMenuButton.spec.win.js +6 -2
- package/lib/E2E/MenuButtonExperimental/specs/ExperimentalMenuButton.spec.win.js.map +1 -1
- package/lib/E2E/Persona/specs/Persona.spec.win.js +3 -2
- package/lib/E2E/Persona/specs/Persona.spec.win.js.map +1 -1
- package/lib/E2E/PersonaCoin/specs/PersonaCoin.spec.win.js +3 -2
- package/lib/E2E/PersonaCoin/specs/PersonaCoin.spec.win.js.map +1 -1
- package/lib/E2E/Pressable/specs/Pressable.spec.win.js +3 -2
- package/lib/E2E/Pressable/specs/Pressable.spec.win.js.map +1 -1
- package/lib/E2E/RadioGroup/specs/RadioGroup.spec.win.js +12 -2
- package/lib/E2E/RadioGroup/specs/RadioGroup.spec.win.js.map +1 -1
- package/lib/E2E/Separator/specs/Separator.spec.win.js +3 -2
- package/lib/E2E/Separator/specs/Separator.spec.win.js.map +1 -1
- package/lib/E2E/Shimmer/specs/Shimmer.spec.win.js +3 -2
- package/lib/E2E/Shimmer/specs/Shimmer.spec.win.js.map +1 -1
- package/lib/E2E/Svg/specs/Svg.spec.win.js +3 -2
- package/lib/E2E/Svg/specs/Svg.spec.win.js.map +1 -1
- package/lib/E2E/Tabs/specs/Tabs.spec.win.js +7 -2
- package/lib/E2E/Tabs/specs/Tabs.spec.win.js.map +1 -1
- package/lib/E2E/TabsExperimental/specs/TabsExperimental.spec.win.js +5 -2
- package/lib/E2E/TabsExperimental/specs/TabsExperimental.spec.win.js.map +1 -1
- package/lib/E2E/Text/specs/Text.spec.win.js +6 -2
- package/lib/E2E/Text/specs/Text.spec.win.js.map +1 -1
- package/lib/E2E/TextExperimental/specs/ExperimentalText.spec.win.js +4 -2
- package/lib/E2E/TextExperimental/specs/ExperimentalText.spec.win.js.map +1 -1
- package/lib/E2E/Theme/specs/Theme.spec.win.js +3 -2
- package/lib/E2E/Theme/specs/Theme.spec.win.js.map +1 -1
- package/lib/E2E/Tokens/specs/Tokens.spec.win.js +3 -2
- package/lib/E2E/Tokens/specs/Tokens.spec.win.js.map +1 -1
- package/lib/E2E/common/BasePage.win.d.ts +6 -0
- package/lib/E2E/common/BasePage.win.d.ts.map +1 -1
- package/lib/E2E/common/BasePage.win.js +45 -0
- package/lib/E2E/common/BasePage.win.js.map +1 -1
- package/lib-commonjs/E2E/ActivityIndicator/specs/ActivityIndicator.spec.win.js +3 -2
- package/lib-commonjs/E2E/ActivityIndicator/specs/ActivityIndicator.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/Button/specs/Button.spec.win.js +9 -2
- package/lib-commonjs/E2E/Button/specs/Button.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/ButtonExperimental/specs/ButtonExperimental.spec.win.js +6 -2
- package/lib-commonjs/E2E/ButtonExperimental/specs/ButtonExperimental.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/Callout/specs/Callout.spec.win.js +3 -2
- package/lib-commonjs/E2E/Callout/specs/Callout.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/Checkbox/specs/Checkbox.spec.win.js +8 -2
- package/lib-commonjs/E2E/Checkbox/specs/Checkbox.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/CheckboxExperimental/specs/ExperimentalCheckbox.spec.win.js +6 -2
- package/lib-commonjs/E2E/CheckboxExperimental/specs/ExperimentalCheckbox.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/ContextualMenu/specs/ContextualMenu.spec.win.js +5 -2
- package/lib-commonjs/E2E/ContextualMenu/specs/ContextualMenu.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/FocusTrapZone/specs/FocusTrapZone.spec.win.js +3 -2
- package/lib-commonjs/E2E/FocusTrapZone/specs/FocusTrapZone.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/FocusZone/specs/FocusZone.spec.win.js +3 -2
- package/lib-commonjs/E2E/FocusZone/specs/FocusZone.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/Icon/specs/Icon.spec.win.js +3 -2
- package/lib-commonjs/E2E/Icon/specs/Icon.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/Link/specs/Link.spec.win.js +5 -2
- package/lib-commonjs/E2E/Link/specs/Link.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/MenuButton/specs/MenuButton.spec.win.js +8 -2
- package/lib-commonjs/E2E/MenuButton/specs/MenuButton.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/MenuButtonExperimental/specs/ExperimentalMenuButton.spec.win.js +6 -2
- package/lib-commonjs/E2E/MenuButtonExperimental/specs/ExperimentalMenuButton.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/Persona/specs/Persona.spec.win.js +3 -2
- package/lib-commonjs/E2E/Persona/specs/Persona.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/PersonaCoin/specs/PersonaCoin.spec.win.js +3 -2
- package/lib-commonjs/E2E/PersonaCoin/specs/PersonaCoin.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/Pressable/specs/Pressable.spec.win.js +3 -2
- package/lib-commonjs/E2E/Pressable/specs/Pressable.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/RadioGroup/specs/RadioGroup.spec.win.js +12 -2
- package/lib-commonjs/E2E/RadioGroup/specs/RadioGroup.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/Separator/specs/Separator.spec.win.js +3 -2
- package/lib-commonjs/E2E/Separator/specs/Separator.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/Shimmer/specs/Shimmer.spec.win.js +3 -2
- package/lib-commonjs/E2E/Shimmer/specs/Shimmer.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/Svg/specs/Svg.spec.win.js +3 -2
- package/lib-commonjs/E2E/Svg/specs/Svg.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/Tabs/specs/Tabs.spec.win.js +7 -2
- package/lib-commonjs/E2E/Tabs/specs/Tabs.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/TabsExperimental/specs/TabsExperimental.spec.win.js +5 -2
- package/lib-commonjs/E2E/TabsExperimental/specs/TabsExperimental.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/Text/specs/Text.spec.win.js +6 -2
- package/lib-commonjs/E2E/Text/specs/Text.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/TextExperimental/specs/ExperimentalText.spec.win.js +4 -2
- package/lib-commonjs/E2E/TextExperimental/specs/ExperimentalText.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/Theme/specs/Theme.spec.win.js +3 -2
- package/lib-commonjs/E2E/Theme/specs/Theme.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/Tokens/specs/Tokens.spec.win.js +3 -2
- package/lib-commonjs/E2E/Tokens/specs/Tokens.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/common/BasePage.win.d.ts +6 -0
- package/lib-commonjs/E2E/common/BasePage.win.d.ts.map +1 -1
- package/lib-commonjs/E2E/common/BasePage.win.js +45 -0
- package/lib-commonjs/E2E/common/BasePage.win.js.map +1 -1
- package/package.json +3 -3
- package/src/E2E/ActivityIndicator/specs/ActivityIndicator.spec.win.ts +3 -2
- package/src/E2E/Button/specs/Button.spec.win.ts +9 -2
- package/src/E2E/ButtonExperimental/specs/ButtonExperimental.spec.win.ts +9 -2
- package/src/E2E/Callout/specs/Callout.spec.win.ts +3 -2
- package/src/E2E/Checkbox/specs/Checkbox.spec.win.ts +8 -2
- package/src/E2E/CheckboxExperimental/specs/ExperimentalCheckbox.spec.win.ts +9 -2
- package/src/E2E/ContextualMenu/specs/ContextualMenu.spec.win.ts +5 -2
- package/src/E2E/FocusTrapZone/specs/FocusTrapZone.spec.win.ts +3 -2
- package/src/E2E/FocusZone/specs/FocusZone.spec.win.ts +3 -2
- package/src/E2E/Icon/specs/Icon.spec.win.ts +3 -2
- package/src/E2E/Link/specs/Link.spec.win.ts +7 -2
- package/src/E2E/MenuButton/specs/MenuButton.spec.win.ts +8 -2
- package/src/E2E/MenuButtonExperimental/specs/ExperimentalMenuButton.spec.win.ts +9 -2
- package/src/E2E/Persona/specs/Persona.spec.win.ts +3 -2
- package/src/E2E/PersonaCoin/specs/PersonaCoin.spec.win.ts +3 -2
- package/src/E2E/Pressable/specs/Pressable.spec.win.ts +3 -2
- package/src/E2E/RadioGroup/specs/RadioGroup.spec.win.ts +12 -2
- package/src/E2E/Separator/specs/Separator.spec.win.ts +3 -2
- package/src/E2E/Shimmer/specs/Shimmer.spec.win.ts +3 -2
- package/src/E2E/Svg/specs/Svg.spec.win.ts +3 -2
- package/src/E2E/Tabs/specs/Tabs.spec.win.ts +7 -2
- package/src/E2E/TabsExperimental/specs/TabsExperimental.spec.win.ts +7 -2
- package/src/E2E/Text/specs/Text.spec.win.ts +6 -2
- package/src/E2E/TextExperimental/specs/ExperimentalText.spec.win.ts +5 -2
- package/src/E2E/Theme/specs/Theme.spec.win.ts +3 -2
- package/src/E2E/Tokens/specs/Tokens.spec.win.ts +3 -2
- package/src/E2E/common/BasePage.win.ts +34 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasePage.win.d.ts","sourceRoot":"","sources":["../../../src/E2E/common/BasePage.win.ts"],"names":[],"mappings":";AACA,eAAO,MAAM,4BAA4B;;;CAAqB,CAAC;AAG/D,wBAAgB,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC,OAAO,CAE1D;AAKD,0BAAkB,iBAAiB;IACjC,OAAO,IAAI;IACX,SAAS,IAAA;CACV;AAED;;;;;2GAK2G;AAE3G,qBAAa,QAAQ;IACnB,oEAAoE;IACpE,oEAAoE;IACpE,oEAAoE;IACpE,oBAAoB,IAAI,MAAM;IAK9B,qBAAqB,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,MAAM;IAanE,YAAY,IAAI,OAAO;IAKvB,cAAc,IAAI,OAAO;IAIzB,cAAc,IAAI,IAAI;IAMtB,uBAAuB,IAAI,IAAI;IAQ/B,oBAAoB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,I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S,IAAI,WAAW,CAAC,OAAO,CAEnC;IAID,IAAI,iBAAiB,IAAI,WAAW,CAAC,OAAO,CAE3C;IAKD,IAAI,mBAAmB,IAAI,WAAW,CAAC,OAAO,CAE7C;IAID,IAAI,WAAW,IAAI,WAAW,CAAC,OAAO,CAErC;IAID,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,sDAAsD;IACtD,IAAI,mBAAmB,IAAI,MAAM,CAEhC;IAED,IAAI,oBAAoB,IAAI,MAAM,CAEjC;IAED,IAAI,qBAAqB,IAAI,MAAM,CAElC;IAED,IAAI,mBAAmB,IAAI,MAAM,CAEhC;IAGD,kBAAkB,EAAE,MAAM,CAAS;CACpC"}
|
|
@@ -106,6 +106,22 @@ var BasePage = /** @class */ (function () {
|
|
|
106
106
|
interval: 1000,
|
|
107
107
|
});
|
|
108
108
|
};
|
|
109
|
+
/* FUNCTIONALITY: Determines if an Assert has fired. True if yes; false otherwise
|
|
110
|
+
*
|
|
111
|
+
* WHY/HOW: Unfortunately, some Asserts don't take focus away from the test app. Because of this, the test execution is able
|
|
112
|
+
* to continue without realizing an assert as popped up (unless the assert is a crashing one).
|
|
113
|
+
*
|
|
114
|
+
* In order to detect an assert, this function gets the number of window handles currently open within the test app.
|
|
115
|
+
* Only one instance SHOULD be open at a time (the app itself). If another instance of the app is open, we know an assert dialogue
|
|
116
|
+
* has popped up. With this information, we know to fail the test.
|
|
117
|
+
*
|
|
118
|
+
* Additionally, you might think it's logical to simply place this in the afterEach() hook so it's called after every test (rather than duplicating this call in every test).
|
|
119
|
+
* Unfortunately, afterEach() is designed for setup/teardown - not for determining if a test should fail or not.
|
|
120
|
+
* */
|
|
121
|
+
BasePage.prototype.didAssertPopup = function () {
|
|
122
|
+
// If more than 1 instance of the app is open, we know an assert dialogue popped up.
|
|
123
|
+
return browser.getWindowHandles().length > 1;
|
|
124
|
+
};
|
|
109
125
|
Object.defineProperty(BasePage.prototype, "_testPage", {
|
|
110
126
|
/*****************************************/
|
|
111
127
|
/**************** Getters ****************/
|
|
@@ -160,6 +176,35 @@ var BasePage = /** @class */ (function () {
|
|
|
160
176
|
enumerable: false,
|
|
161
177
|
configurable: true
|
|
162
178
|
});
|
|
179
|
+
Object.defineProperty(BasePage.prototype, "ERRORMESSAGE_SUFFIX", {
|
|
180
|
+
/****************** Error Messages ******************/
|
|
181
|
+
get: function () {
|
|
182
|
+
return 'Please review logs and error screenshots for more information.';
|
|
183
|
+
},
|
|
184
|
+
enumerable: false,
|
|
185
|
+
configurable: true
|
|
186
|
+
});
|
|
187
|
+
Object.defineProperty(BasePage.prototype, "ERRORMESSAGE_APPLOAD", {
|
|
188
|
+
get: function () {
|
|
189
|
+
return 'The FluentTester app did not load correctly. ' + this.ERRORMESSAGE_SUFFIX;
|
|
190
|
+
},
|
|
191
|
+
enumerable: false,
|
|
192
|
+
configurable: true
|
|
193
|
+
});
|
|
194
|
+
Object.defineProperty(BasePage.prototype, "ERRORMESSAGE_PAGELOAD", {
|
|
195
|
+
get: function () {
|
|
196
|
+
return 'The ' + this._pageName + ' test page did not load correctly. ' + this.ERRORMESSAGE_SUFFIX;
|
|
197
|
+
},
|
|
198
|
+
enumerable: false,
|
|
199
|
+
configurable: true
|
|
200
|
+
});
|
|
201
|
+
Object.defineProperty(BasePage.prototype, "ERRORMESSAGE_ASSERT", {
|
|
202
|
+
get: function () {
|
|
203
|
+
return 'An assert popped up. ' + this.ERRORMESSAGE_SUFFIX;
|
|
204
|
+
},
|
|
205
|
+
enumerable: false,
|
|
206
|
+
configurable: true
|
|
207
|
+
});
|
|
163
208
|
return BasePage;
|
|
164
209
|
}());
|
|
165
210
|
exports.BasePage = BasePage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasePage.win.js","sourceRoot":"","sources":["../../../src/E2E/common/BasePage.win.ts"],"names":[],"mappings":";;;AAAA,IAAM,UAAU,GAAG,EAAE,CAAC;AACT,QAAA,4BAA4B,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,EA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ACtB,kEAAkE;aAClE;YACE,OAAO,EAAE,CAAC,UAAU,CAAC,CAAC;QACxB,CAAC;;;OAAA;IAKD,sBAAI,yCAAmB;QAHvB,sBAAsB;QACtB,qGAAqG;QACrG,8HAA8H;aAC9H;YACE,OAAO,EAAE,CAAC,UAAU,CAAC,CAAC;QACxB,CAAC;;;OAAA;IAID,sBAAI,iCAAW;QAFf,sBAAsB;QACtB,8DAA8D;aAC9D;YACE,OAAO,EAAE,CAAC,UAAU,CAAC,CAAC;QACxB,CAAC;;;OAAA;IAID,sBAAI,+BAAS;QAFb,kBAAkB;QAClB,4EAA4E;aAC5E;YACE,OAAO,UAAU,CAAC;QACpB,CAAC;;;OAAA;IAGD,sBAAI,yCAAmB;QADvB,sDAAsD;aACtD;YACE,OAAO,gEAAgE,CAAC;QAC1E,CAAC;;;OAAA;IAED,sBAAI,0CAAoB;aAAxB;YACE,OAAO,+CAA+C,GAAG,IAAI,CAAC,mBAAmB,CAAC;QACpF,CAAC;;;OAAA;IAED,sBAAI,2CAAqB;aAAzB;YACE,OAAO,MAAM,GAAG,IAAI,CAAC,SAAS,GAAG,qCAAqC,GAAG,IAAI,CAAC,mBAAmB,CAAC;QACpG,CAAC;;;OAAA;IAED,sBAAI,yCAAmB;aAAvB;YACE,OAAO,uBAAuB,GAAG,IAAI,CAAC,mBAAmB,CAAC;QAC5D,CAAC;;;OAAA;IAIH,eAAC;AAAD,CAAC,AA3LD,IA2LC;AA3LY,4BAAQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.0",
|
|
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>",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@fluentui-react-native/experimental-checkbox": "0.6.5",
|
|
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.
|
|
41
|
+
"@fluentui-react-native/experimental-menu-button": ">=0.3.5 <1.0.0",
|
|
42
42
|
"@fluentui-react-native/experimental-shimmer": "0.6.14",
|
|
43
43
|
"@fluentui-react-native/experimental-tabs": "0.4.19",
|
|
44
44
|
"@fluentui-react-native/experimental-text": ">=0.7.12 <1.0.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
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.
|
|
54
|
+
"@fluentui/react-native": ">=0.27.26 <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
|
});
|