@fluentui-react-native/tester 0.129.5 → 0.129.7

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 (118) hide show
  1. package/CHANGELOG.json +133 -34
  2. package/CHANGELOG.md +27 -2
  3. package/docs/android.md +0 -19
  4. package/lib/E2E/src/FocusZone/consts.d.ts +3 -2
  5. package/lib/E2E/src/FocusZone/consts.d.ts.map +1 -1
  6. package/lib/E2E/src/FocusZone/consts.js.map +1 -1
  7. package/lib/E2E/src/FocusZone/pages/FocusZonePageObject.d.ts +28 -0
  8. package/lib/E2E/src/FocusZone/pages/FocusZonePageObject.d.ts.map +1 -0
  9. package/lib/E2E/src/FocusZone/pages/FocusZonePageObject.js +189 -0
  10. package/lib/E2E/src/FocusZone/pages/FocusZonePageObject.js.map +1 -0
  11. package/lib/E2E/src/common/BasePage.d.ts +67 -0
  12. package/lib/E2E/src/common/BasePage.d.ts.map +1 -0
  13. package/lib/E2E/src/common/BasePage.js +654 -0
  14. package/lib/E2E/src/common/BasePage.js.map +1 -0
  15. package/lib/E2E/src/common/consts.d.ts.map +1 -1
  16. package/lib/E2E/src/common/consts.js.map +1 -1
  17. package/lib/fluent-tester/src/TestComponents/Button/ButtonSizeTestSection.d.ts.map +1 -1
  18. package/lib/fluent-tester/src/TestComponents/Button/ButtonSizeTestSection.js +2 -1
  19. package/lib/fluent-tester/src/TestComponents/Button/ButtonSizeTestSection.js.map +1 -1
  20. package/lib/fluent-tester/src/TestComponents/Button/ButtonTest.d.ts.map +1 -1
  21. package/lib/fluent-tester/src/TestComponents/Button/ButtonTest.js +4 -2
  22. package/lib/fluent-tester/src/TestComponents/Button/ButtonTest.js.map +1 -1
  23. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.d.ts +1 -2
  24. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.d.ts.map +1 -1
  25. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.js +1 -22
  26. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.js.map +1 -1
  27. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.d.ts +2 -0
  28. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.d.ts.map +1 -0
  29. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.js +2 -0
  30. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.js.map +1 -0
  31. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.d.ts +3 -0
  32. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.d.ts.map +1 -0
  33. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.js +23 -0
  34. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.js.map +1 -0
  35. package/lib/fluent-tester/src/TestComponents/Button/deprecated/ButtonFocusTest.d.ts.map +1 -1
  36. package/lib/fluent-tester/src/TestComponents/Button/deprecated/ButtonFocusTest.js +0 -3
  37. package/lib/fluent-tester/src/TestComponents/Button/deprecated/ButtonFocusTest.js.map +1 -1
  38. package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.d.ts +2 -13
  39. package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.d.ts.map +1 -1
  40. package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.desktop.d.ts +2 -2
  41. package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.desktop.d.ts.map +1 -1
  42. package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.js +4 -0
  43. package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.js.map +1 -1
  44. package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.types.d.ts +14 -0
  45. package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.types.d.ts.map +1 -0
  46. package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.types.js +2 -0
  47. package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.types.js.map +1 -0
  48. package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.windows.d.ts +2 -1
  49. package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.windows.d.ts.map +1 -1
  50. package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.windows.js.map +1 -1
  51. package/lib/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.d.ts +1 -1
  52. package/lib/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.d.ts.map +1 -1
  53. package/lib/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.js +5 -5
  54. package/lib/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.js.map +1 -1
  55. package/lib-commonjs/E2E/src/FocusZone/consts.d.ts +3 -2
  56. package/lib-commonjs/E2E/src/FocusZone/consts.d.ts.map +1 -1
  57. package/lib-commonjs/E2E/src/FocusZone/consts.js.map +1 -1
  58. package/lib-commonjs/E2E/src/FocusZone/pages/FocusZonePageObject.d.ts +28 -0
  59. package/lib-commonjs/E2E/src/FocusZone/pages/FocusZonePageObject.d.ts.map +1 -0
  60. package/lib-commonjs/E2E/src/FocusZone/pages/FocusZonePageObject.js +191 -0
  61. package/lib-commonjs/E2E/src/FocusZone/pages/FocusZonePageObject.js.map +1 -0
  62. package/lib-commonjs/E2E/src/common/BasePage.d.ts +67 -0
  63. package/lib-commonjs/E2E/src/common/BasePage.d.ts.map +1 -0
  64. package/lib-commonjs/E2E/src/common/BasePage.js +658 -0
  65. package/lib-commonjs/E2E/src/common/BasePage.js.map +1 -0
  66. package/lib-commonjs/E2E/src/common/consts.d.ts.map +1 -1
  67. package/lib-commonjs/E2E/src/common/consts.js.map +1 -1
  68. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonSizeTestSection.d.ts.map +1 -1
  69. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonSizeTestSection.js +2 -1
  70. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonSizeTestSection.js.map +1 -1
  71. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonTest.d.ts.map +1 -1
  72. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonTest.js +4 -2
  73. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonTest.js.map +1 -1
  74. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.d.ts +1 -2
  75. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.d.ts.map +1 -1
  76. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.js +2 -24
  77. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.js.map +1 -1
  78. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.d.ts +2 -0
  79. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.d.ts.map +1 -0
  80. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.js +6 -0
  81. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.js.map +1 -0
  82. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.d.ts +3 -0
  83. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.d.ts.map +1 -0
  84. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.js +28 -0
  85. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.js.map +1 -0
  86. package/lib-commonjs/fluent-tester/src/TestComponents/Button/deprecated/ButtonFocusTest.d.ts.map +1 -1
  87. package/lib-commonjs/fluent-tester/src/TestComponents/Button/deprecated/ButtonFocusTest.js +0 -3
  88. package/lib-commonjs/fluent-tester/src/TestComponents/Button/deprecated/ButtonFocusTest.js.map +1 -1
  89. package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.d.ts +2 -13
  90. package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.d.ts.map +1 -1
  91. package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.desktop.d.ts +2 -2
  92. package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.desktop.d.ts.map +1 -1
  93. package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.js +4 -0
  94. package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.js.map +1 -1
  95. package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.types.d.ts +14 -0
  96. package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.types.d.ts.map +1 -0
  97. package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.types.js +3 -0
  98. package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.types.js.map +1 -0
  99. package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.windows.d.ts +2 -1
  100. package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.windows.d.ts.map +1 -1
  101. package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.windows.js.map +1 -1
  102. package/lib-commonjs/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.d.ts +1 -1
  103. package/lib-commonjs/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.d.ts.map +1 -1
  104. package/lib-commonjs/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.js +14 -14
  105. package/lib-commonjs/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.js.map +1 -1
  106. package/package.json +9 -9
  107. package/src/TestComponents/Button/ButtonSizeTestSection.tsx +3 -1
  108. package/src/TestComponents/Button/ButtonTest.tsx +4 -2
  109. package/src/TestComponents/Button/ButtonVariantTestSection.android.tsx +1 -45
  110. package/src/TestComponents/Button/ButtonVariantTestSection.ios.tsx +1 -0
  111. package/src/TestComponents/Button/ButtonVariantTestSection.mobile.tsx +45 -0
  112. package/src/TestComponents/Button/deprecated/ButtonFocusTest.tsx +0 -3
  113. package/src/TestComponents/Common/MenuPicker.desktop.tsx +2 -2
  114. package/src/TestComponents/Common/MenuPicker.tsx +2 -15
  115. package/src/TestComponents/Common/MenuPicker.types.tsx +14 -0
  116. package/src/TestComponents/Common/MenuPicker.windows.tsx +2 -1
  117. package/src/TestComponents/FocusZone/FocusZoneE2ETest.tsx +15 -14
  118. package/tsconfig.json +2 -1
@@ -0,0 +1,189 @@
1
+ import { __awaiter, __extends, __generator } from "tslib";
2
+ import { BasePage, By } from '../../common/BasePage';
3
+ import { FOCUSZONE_CIRCLE_NAV_SWITCH, FOCUSZONE_DEFAULT_TABBABLE_SWITCH, FOCUSZONE_DIRECTION_ID, FOCUSZONE_DIRECTION_PICKER, FOCUSZONE_DISABLED_SWITCH, FOCUSZONE_GRID_AFTER, FOCUSZONE_GRID_BEFORE, FOCUSZONE_GRID_BUTTON, FOCUSZONE_TESTPAGE, FOCUSZONE_TEST_COMPONENT, FOCUSZONE_TWO_DIM_SWITCH, HOMEPAGE_FOCUSZONE_BUTTON, } from '../consts';
4
+ var FocusZonePageObject = /** @class */ (function (_super) {
5
+ __extends(FocusZonePageObject, _super);
6
+ function FocusZonePageObject() {
7
+ return _super !== null && _super.apply(this, arguments) || this;
8
+ }
9
+ FocusZonePageObject.prototype.resetTest = function () {
10
+ return __awaiter(this, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4 /*yield*/, this.configureGridFocusZone('SetDirection', 'bidirectional')];
14
+ case 1:
15
+ _a.sent();
16
+ return [4 /*yield*/, this.configureGridFocusZone('Set2DNavigation', false)];
17
+ case 2:
18
+ _a.sent();
19
+ return [4 /*yield*/, this.configureGridFocusZone('SetCircularNavigation', false)];
20
+ case 3:
21
+ _a.sent();
22
+ return [4 /*yield*/, this.configureGridFocusZone('Disable', false)];
23
+ case 4:
24
+ _a.sent();
25
+ return [2 /*return*/];
26
+ }
27
+ });
28
+ });
29
+ };
30
+ FocusZonePageObject.prototype.configureGridFocusZone = function (option, arg) {
31
+ return __awaiter(this, void 0, void 0, function () {
32
+ var switchElement, _a, switchValue;
33
+ var _this = this;
34
+ return __generator(this, function (_b) {
35
+ switch (_b.label) {
36
+ case 0:
37
+ _a = option;
38
+ switch (_a) {
39
+ case 'SetDirection': return [3 /*break*/, 1];
40
+ case 'Set2DNavigation': return [3 /*break*/, 7];
41
+ case 'SetCircularNavigation': return [3 /*break*/, 9];
42
+ case 'UseDefaultTabbableElement': return [3 /*break*/, 11];
43
+ case 'Disable': return [3 /*break*/, 13];
44
+ }
45
+ return [3 /*break*/, 15];
46
+ case 1: return [4 /*yield*/, this._directionPicker];
47
+ case 2: return [4 /*yield*/, (_b.sent()).click()];
48
+ case 3:
49
+ _b.sent();
50
+ return [4 /*yield*/, browser.waitUntil(function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
51
+ switch (_a.label) {
52
+ case 0: return [4 /*yield*/, this._getGridFocusZoneMenuOption(arg)];
53
+ case 1: return [4 /*yield*/, (_a.sent()).isDisplayed()];
54
+ case 2: return [2 /*return*/, _a.sent()];
55
+ }
56
+ }); }); })];
57
+ case 4:
58
+ _b.sent();
59
+ return [4 /*yield*/, this._getGridFocusZoneMenuOption(arg)];
60
+ case 5: return [4 /*yield*/, (_b.sent()).click()];
61
+ case 6:
62
+ _b.sent();
63
+ return [2 /*return*/];
64
+ case 7: return [4 /*yield*/, this._twoDimSwitch];
65
+ case 8:
66
+ switchElement = _b.sent();
67
+ return [3 /*break*/, 15];
68
+ case 9: return [4 /*yield*/, this._circleNavSwitch];
69
+ case 10:
70
+ switchElement = _b.sent();
71
+ return [3 /*break*/, 15];
72
+ case 11: return [4 /*yield*/, this._defaultTabbableElementSwitch];
73
+ case 12:
74
+ switchElement = _b.sent();
75
+ return [3 /*break*/, 15];
76
+ case 13: return [4 /*yield*/, this._disabledSwitch];
77
+ case 14:
78
+ switchElement = _b.sent();
79
+ return [3 /*break*/, 15];
80
+ case 15: return [4 /*yield*/, switchElement.isSelected()];
81
+ case 16:
82
+ switchValue = _b.sent();
83
+ if (!(switchValue !== arg)) return [3 /*break*/, 18];
84
+ return [4 /*yield*/, switchElement.click()];
85
+ case 17:
86
+ _b.sent();
87
+ _b.label = 18;
88
+ case 18: return [2 /*return*/];
89
+ }
90
+ });
91
+ });
92
+ };
93
+ FocusZonePageObject.prototype.gridButton = function (button) {
94
+ return __awaiter(this, void 0, void 0, function () {
95
+ return __generator(this, function (_a) {
96
+ switch (_a.label) {
97
+ case 0: return [4 /*yield*/, By(FOCUSZONE_GRID_BUTTON(button))];
98
+ case 1: return [2 /*return*/, _a.sent()];
99
+ }
100
+ });
101
+ });
102
+ };
103
+ FocusZonePageObject.prototype._getGridFocusZoneMenuOption = function (direction) {
104
+ return __awaiter(this, void 0, void 0, function () {
105
+ return __generator(this, function (_a) {
106
+ switch (_a.label) {
107
+ case 0: return [4 /*yield*/, By(FOCUSZONE_DIRECTION_ID(direction))];
108
+ case 1: return [2 /*return*/, _a.sent()];
109
+ }
110
+ });
111
+ });
112
+ };
113
+ Object.defineProperty(FocusZonePageObject.prototype, "_pageName", {
114
+ /*****************************************/
115
+ /**************** Getters ****************/
116
+ /*****************************************/
117
+ get: function () {
118
+ return FOCUSZONE_TESTPAGE;
119
+ },
120
+ enumerable: false,
121
+ configurable: true
122
+ });
123
+ Object.defineProperty(FocusZonePageObject.prototype, "_primaryComponentName", {
124
+ get: function () {
125
+ return FOCUSZONE_TEST_COMPONENT;
126
+ },
127
+ enumerable: false,
128
+ configurable: true
129
+ });
130
+ Object.defineProperty(FocusZonePageObject.prototype, "_pageButtonName", {
131
+ get: function () {
132
+ return HOMEPAGE_FOCUSZONE_BUTTON;
133
+ },
134
+ enumerable: false,
135
+ configurable: true
136
+ });
137
+ Object.defineProperty(FocusZonePageObject.prototype, "_directionPicker", {
138
+ get: function () {
139
+ return By(FOCUSZONE_DIRECTION_PICKER);
140
+ },
141
+ enumerable: false,
142
+ configurable: true
143
+ });
144
+ Object.defineProperty(FocusZonePageObject.prototype, "_twoDimSwitch", {
145
+ get: function () {
146
+ return By(FOCUSZONE_TWO_DIM_SWITCH);
147
+ },
148
+ enumerable: false,
149
+ configurable: true
150
+ });
151
+ Object.defineProperty(FocusZonePageObject.prototype, "_disabledSwitch", {
152
+ get: function () {
153
+ return By(FOCUSZONE_DISABLED_SWITCH);
154
+ },
155
+ enumerable: false,
156
+ configurable: true
157
+ });
158
+ Object.defineProperty(FocusZonePageObject.prototype, "_circleNavSwitch", {
159
+ get: function () {
160
+ return By(FOCUSZONE_CIRCLE_NAV_SWITCH);
161
+ },
162
+ enumerable: false,
163
+ configurable: true
164
+ });
165
+ Object.defineProperty(FocusZonePageObject.prototype, "_defaultTabbableElementSwitch", {
166
+ get: function () {
167
+ return By(FOCUSZONE_DEFAULT_TABBABLE_SWITCH);
168
+ },
169
+ enumerable: false,
170
+ configurable: true
171
+ });
172
+ Object.defineProperty(FocusZonePageObject.prototype, "_beforeButton", {
173
+ get: function () {
174
+ return By(FOCUSZONE_GRID_BEFORE);
175
+ },
176
+ enumerable: false,
177
+ configurable: true
178
+ });
179
+ Object.defineProperty(FocusZonePageObject.prototype, "_afterButton", {
180
+ get: function () {
181
+ return By(FOCUSZONE_GRID_AFTER);
182
+ },
183
+ enumerable: false,
184
+ configurable: true
185
+ });
186
+ return FocusZonePageObject;
187
+ }(BasePage));
188
+ export default new FocusZonePageObject();
189
+ //# sourceMappingURL=FocusZonePageObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FocusZonePageObject.js","sourceRoot":"","sources":["../../../../../../E2E/src/FocusZone/pages/FocusZonePageObject.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EACL,2BAA2B,EAC3B,iCAAiC,EACjC,sBAAsB,EACtB,0BAA0B,EAC1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CAAC;QACnC,CAAC;;;OAAA;IAED,sBAAI,iDAAgB;aAApB;YACE,OAAO,EAAE,CAAC,0BAA0B,CAAC,CAAC;QACxC,CAAC;;;OAAA;IAED,sBAAI,8CAAa;aAAjB;YACE,OAAO,EAAE,CAAC,wBAAwB,CAAC,CAAC;QACtC,CAAC;;;OAAA;IAED,sBAAI,gDAAe;aAAnB;YACE,OAAO,EAAE,CAAC,yBAAyB,CAAC,CAAC;QACvC,CAAC;;;OAAA;IAED,sBAAI,iDAAgB;aAApB;YACE,OAAO,EAAE,CAAC,2BAA2B,CAAC,CAAC;QACzC,CAAC;;;OAAA;IAED,sBAAI,8DAA6B;aAAjC;YACE,OAAO,EAAE,CAAC,iCAAiC,CAAC,CAAC;QAC/C,CAAC;;;OAAA;IAED,sBAAI,8CAAa;aAAjB;YACE,OAAO,EAAE,CAAC,qBAAqB,CAAC,CAAC;QACnC,CAAC;;;OAAA;IAED,sBAAI,6CAAY;aAAhB;YACE,OAAO,EAAE,CAAC,oBAAoB,CAAC,CAAC;QAClC,CAAC;;;OAAA;IACH,0BAAC;AAAD,CAAC,AAxFD,CAAkC,QAAQ,GAwFzC;AAED,eAAe,IAAI,mBAAmB,EAAE,CAAC"}
@@ -0,0 +1,67 @@
1
+ /// <reference types="webdriverio/async" />
2
+ import type { AndroidAttribute } from './consts';
3
+ import { Keys } from './consts';
4
+ import { Attribute } from './consts';
5
+ export declare const COMPONENT_SCROLL_COORDINATES: {
6
+ x: number;
7
+ y: number;
8
+ };
9
+ export declare function By(identifier: string): Promise<WebdriverIO.Element>;
10
+ type ComponentSelector = 'Primary' | 'Secondary';
11
+ type MobilePlatform = 'android' | 'ios';
12
+ type DesktopPlatform = 'win32' | 'windows' | 'macos';
13
+ type Platform = MobilePlatform | DesktopPlatform;
14
+ /****************************** IMPORTANT! PLEASE READ! **************************************************
15
+ * Every component's page object extends this. We can assume each test page will interact with at least
16
+ * two UI elements, so we'll add integration for two UI elements in this file (See *Getters* section below).
17
+ * Every additional UI element that a test page wants to interact with should be handled in that respective
18
+ * component's page object.
19
+ *********************************************************************************************************/
20
+ export declare abstract class BasePage {
21
+ protected platform?: Platform;
22
+ constructor();
23
+ /******************************************************************/
24
+ /**************** UI Element Interaction Methods ******************/
25
+ /******************************************************************/
26
+ /**
27
+ * Checks to see if an element attribute is strictly equal to an expected value the user passes in.
28
+ * The advantage to this over testing using .isEqual in a spec is that this throws a detailed error if
29
+ * the expected and actual values don't match. This should be called for attribute tests in specs. */
30
+ compareAttribute(element: Promise<WebdriverIO.Element>, attribute: Attribute | AndroidAttribute, expectedValue: any): Promise<boolean>;
31
+ getAccessibilityRole(): Promise<string>;
32
+ getAccessibilityLabel(componentSelector: ComponentSelector): Promise<string>;
33
+ isPageLoaded(): Promise<boolean>;
34
+ isButtonInView(): Promise<boolean>;
35
+ clickComponent(): Promise<void>;
36
+ click(element: Promise<WebdriverIO.Element>): Promise<void>;
37
+ sendKeys(element: Promise<WebdriverIO.Element>, keys: Keys[]): Promise<void>;
38
+ getElementAttribute(element: WebdriverIO.Element, attribute: Attribute): Promise<string>;
39
+ mobileScrollToComponentButton(): Promise<void>;
40
+ waitForPageDisplayed(timeout?: number): Promise<void>;
41
+ waitForButtonDisplayed(timeout?: number): Promise<void>;
42
+ waitForPrimaryElementDisplayed(timeout?: number): Promise<void>;
43
+ scrollToTestElement(component?: WebdriverIO.Element): Promise<void>;
44
+ mobileScrollToTestElement(componentIdentifier?: string): Promise<void>;
45
+ waitForCondition(condition: () => Promise<boolean>, errorMsg?: string, timeout?: number, interval?: number): Promise<void>;
46
+ didAssertPopup(): Promise<boolean>;
47
+ /*****************************************/
48
+ /**************** Getters ****************/
49
+ /*****************************************/
50
+ get _testPage(): Promise<WebdriverIO.Element>;
51
+ get _primaryComponent(): Promise<WebdriverIO.Element>;
52
+ get _secondaryComponent(): Promise<WebdriverIO.Element>;
53
+ get _pageButton(): Promise<WebdriverIO.Element>;
54
+ abstract get _pageName(): string;
55
+ abstract get _pageButtonName(): string;
56
+ get _primaryComponentName(): string;
57
+ get _secondaryComponentName(): string;
58
+ get _testPageButtonScrollViewer(): Promise<WebdriverIO.Element>;
59
+ /****************** Error Messages ******************/
60
+ get ERRORMESSAGE_SUFFIX(): string;
61
+ get ERRORMESSAGE_APPLOAD(): string;
62
+ get ERRORMESSAGE_PAGELOAD(): string;
63
+ get ERRORMESSAGE_ASSERT(): string;
64
+ waitForUiEvent: number;
65
+ }
66
+ export {};
67
+ //# sourceMappingURL=BasePage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BasePage.d.ts","sourceRoot":"","sources":["../../../../../E2E/src/common/BasePage.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,IAAI,EAA4C,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAsD,MAAM,UAAU,CAAC;AAKzF,eAAO,MAAM,4BAA4B;;;CAAqB,CAAC;AAK/D,wBAAsB,EAAE,CAAC,UAAU,EAAE,MAAM,gCAM1C;AAoBD,KAAK,iBAAiB,GAClB,SAAS,GACT,WAAW,CAAC;AAEhB,KAAK,cAAc,GAAG,SAAS,GAAG,KAAK,CAAC;AAExC,KAAK,eAAe,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAErD,KAAK,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC;AAEjD;;;;;2GAK2G;AAE3G,8BAAsB,QAAQ;IAC5B,SAAS,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;;IAO9B,oEAAoE;IACpE,oEAAoE;IACpE,oEAAoE;IAEpE;;;yGAGqG;IAC/F,gBAAgB,CACpB,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,EACrC,SAAS,EAAE,SAAS,GAAG,gBAAgB,EACvC,aAAa,EAAE,GAAG,GACjB,OAAO,CAAC,OAAO,CAAC;IAeb,oBAAoB,IAAI,OAAO,CAAC,MAAM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