@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,191 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ var BasePage_1 = require("../../common/BasePage");
5
+ var consts_1 = require("../consts");
6
+ var FocusZonePageObject = /** @class */ (function (_super) {
7
+ tslib_1.__extends(FocusZonePageObject, _super);
8
+ function FocusZonePageObject() {
9
+ return _super !== null && _super.apply(this, arguments) || this;
10
+ }
11
+ FocusZonePageObject.prototype.resetTest = function () {
12
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
13
+ return tslib_1.__generator(this, function (_a) {
14
+ switch (_a.label) {
15
+ case 0: return [4 /*yield*/, this.configureGridFocusZone('SetDirection', 'bidirectional')];
16
+ case 1:
17
+ _a.sent();
18
+ return [4 /*yield*/, this.configureGridFocusZone('Set2DNavigation', false)];
19
+ case 2:
20
+ _a.sent();
21
+ return [4 /*yield*/, this.configureGridFocusZone('SetCircularNavigation', false)];
22
+ case 3:
23
+ _a.sent();
24
+ return [4 /*yield*/, this.configureGridFocusZone('Disable', false)];
25
+ case 4:
26
+ _a.sent();
27
+ return [2 /*return*/];
28
+ }
29
+ });
30
+ });
31
+ };
32
+ FocusZonePageObject.prototype.configureGridFocusZone = function (option, arg) {
33
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
34
+ var switchElement, _a, switchValue;
35
+ var _this = this;
36
+ return tslib_1.__generator(this, function (_b) {
37
+ switch (_b.label) {
38
+ case 0:
39
+ _a = option;
40
+ switch (_a) {
41
+ case 'SetDirection': return [3 /*break*/, 1];
42
+ case 'Set2DNavigation': return [3 /*break*/, 7];
43
+ case 'SetCircularNavigation': return [3 /*break*/, 9];
44
+ case 'UseDefaultTabbableElement': return [3 /*break*/, 11];
45
+ case 'Disable': return [3 /*break*/, 13];
46
+ }
47
+ return [3 /*break*/, 15];
48
+ case 1: return [4 /*yield*/, this._directionPicker];
49
+ case 2: return [4 /*yield*/, (_b.sent()).click()];
50
+ case 3:
51
+ _b.sent();
52
+ return [4 /*yield*/, browser.waitUntil(function () { return tslib_1.__awaiter(_this, void 0, void 0, function () { return tslib_1.__generator(this, function (_a) {
53
+ switch (_a.label) {
54
+ case 0: return [4 /*yield*/, this._getGridFocusZoneMenuOption(arg)];
55
+ case 1: return [4 /*yield*/, (_a.sent()).isDisplayed()];
56
+ case 2: return [2 /*return*/, _a.sent()];
57
+ }
58
+ }); }); })];
59
+ case 4:
60
+ _b.sent();
61
+ return [4 /*yield*/, this._getGridFocusZoneMenuOption(arg)];
62
+ case 5: return [4 /*yield*/, (_b.sent()).click()];
63
+ case 6:
64
+ _b.sent();
65
+ return [2 /*return*/];
66
+ case 7: return [4 /*yield*/, this._twoDimSwitch];
67
+ case 8:
68
+ switchElement = _b.sent();
69
+ return [3 /*break*/, 15];
70
+ case 9: return [4 /*yield*/, this._circleNavSwitch];
71
+ case 10:
72
+ switchElement = _b.sent();
73
+ return [3 /*break*/, 15];
74
+ case 11: return [4 /*yield*/, this._defaultTabbableElementSwitch];
75
+ case 12:
76
+ switchElement = _b.sent();
77
+ return [3 /*break*/, 15];
78
+ case 13: return [4 /*yield*/, this._disabledSwitch];
79
+ case 14:
80
+ switchElement = _b.sent();
81
+ return [3 /*break*/, 15];
82
+ case 15: return [4 /*yield*/, switchElement.isSelected()];
83
+ case 16:
84
+ switchValue = _b.sent();
85
+ if (!(switchValue !== arg)) return [3 /*break*/, 18];
86
+ return [4 /*yield*/, switchElement.click()];
87
+ case 17:
88
+ _b.sent();
89
+ _b.label = 18;
90
+ case 18: return [2 /*return*/];
91
+ }
92
+ });
93
+ });
94
+ };
95
+ FocusZonePageObject.prototype.gridButton = function (button) {
96
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
97
+ return tslib_1.__generator(this, function (_a) {
98
+ switch (_a.label) {
99
+ case 0: return [4 /*yield*/, (0, BasePage_1.By)((0, consts_1.FOCUSZONE_GRID_BUTTON)(button))];
100
+ case 1: return [2 /*return*/, _a.sent()];
101
+ }
102
+ });
103
+ });
104
+ };
105
+ FocusZonePageObject.prototype._getGridFocusZoneMenuOption = function (direction) {
106
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
107
+ return tslib_1.__generator(this, function (_a) {
108
+ switch (_a.label) {
109
+ case 0: return [4 /*yield*/, (0, BasePage_1.By)((0, consts_1.FOCUSZONE_DIRECTION_ID)(direction))];
110
+ case 1: return [2 /*return*/, _a.sent()];
111
+ }
112
+ });
113
+ });
114
+ };
115
+ Object.defineProperty(FocusZonePageObject.prototype, "_pageName", {
116
+ /*****************************************/
117
+ /**************** Getters ****************/
118
+ /*****************************************/
119
+ get: function () {
120
+ return consts_1.FOCUSZONE_TESTPAGE;
121
+ },
122
+ enumerable: false,
123
+ configurable: true
124
+ });
125
+ Object.defineProperty(FocusZonePageObject.prototype, "_primaryComponentName", {
126
+ get: function () {
127
+ return consts_1.FOCUSZONE_TEST_COMPONENT;
128
+ },
129
+ enumerable: false,
130
+ configurable: true
131
+ });
132
+ Object.defineProperty(FocusZonePageObject.prototype, "_pageButtonName", {
133
+ get: function () {
134
+ return consts_1.HOMEPAGE_FOCUSZONE_BUTTON;
135
+ },
136
+ enumerable: false,
137
+ configurable: true
138
+ });
139
+ Object.defineProperty(FocusZonePageObject.prototype, "_directionPicker", {
140
+ get: function () {
141
+ return (0, BasePage_1.By)(consts_1.FOCUSZONE_DIRECTION_PICKER);
142
+ },
143
+ enumerable: false,
144
+ configurable: true
145
+ });
146
+ Object.defineProperty(FocusZonePageObject.prototype, "_twoDimSwitch", {
147
+ get: function () {
148
+ return (0, BasePage_1.By)(consts_1.FOCUSZONE_TWO_DIM_SWITCH);
149
+ },
150
+ enumerable: false,
151
+ configurable: true
152
+ });
153
+ Object.defineProperty(FocusZonePageObject.prototype, "_disabledSwitch", {
154
+ get: function () {
155
+ return (0, BasePage_1.By)(consts_1.FOCUSZONE_DISABLED_SWITCH);
156
+ },
157
+ enumerable: false,
158
+ configurable: true
159
+ });
160
+ Object.defineProperty(FocusZonePageObject.prototype, "_circleNavSwitch", {
161
+ get: function () {
162
+ return (0, BasePage_1.By)(consts_1.FOCUSZONE_CIRCLE_NAV_SWITCH);
163
+ },
164
+ enumerable: false,
165
+ configurable: true
166
+ });
167
+ Object.defineProperty(FocusZonePageObject.prototype, "_defaultTabbableElementSwitch", {
168
+ get: function () {
169
+ return (0, BasePage_1.By)(consts_1.FOCUSZONE_DEFAULT_TABBABLE_SWITCH);
170
+ },
171
+ enumerable: false,
172
+ configurable: true
173
+ });
174
+ Object.defineProperty(FocusZonePageObject.prototype, "_beforeButton", {
175
+ get: function () {
176
+ return (0, BasePage_1.By)(consts_1.FOCUSZONE_GRID_BEFORE);
177
+ },
178
+ enumerable: false,
179
+ configurable: true
180
+ });
181
+ Object.defineProperty(FocusZonePageObject.prototype, "_afterButton", {
182
+ get: function () {
183
+ return (0, BasePage_1.By)(consts_1.FOCUSZONE_GRID_AFTER);
184
+ },
185
+ enumerable: false,
186
+ configurable: true
187
+ });
188
+ return FocusZonePageObject;
189
+ }(BasePage_1.BasePage));
190
+ exports.default = new FocusZonePageObject();
191
+ //# sourceMappingURL=FocusZonePageObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FocusZonePageObject.js","sourceRoot":"","sources":["../../../../../../E2E/src/FocusZone/pages/FocusZonePageObject.ts"],"names":[],"mappings":";;;AACA,kDAAqD;AACrD,oCAamB;AAMnB;IAAkC,+CAAQ;IAA1C;;IAwFA,CAAC;IAvFO,uCAAS,GAAf;;;;4BACE,qBAAM,IAA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QACtC,CAAC;;;OAAA;IAED,sBAAI,gDAAe;aAAnB;YACE,OAAO,IAAA,aAAE,EAAC,kCAAyB,CAAC,CAAC;QACvC,CAAC;;;OAAA;IAED,sBAAI,iDAAgB;aAApB;YACE,OAAO,IAAA,aAAE,EAAC,oCAA2B,CAAC,CAAC;QACzC,CAAC;;;OAAA;IAED,sBAAI,8DAA6B;aAAjC;YACE,OAAO,IAAA,aAAE,EAAC,0CAAiC,CAAC,CAAC;QAC/C,CAAC;;;OAAA;IAED,sBAAI,8CAAa;aAAjB;YACE,OAAO,IAAA,aAAE,EAAC,8BAAqB,CAAC,CAAC;QACnC,CAAC;;;OAAA;IAED,sBAAI,6CAAY;aAAhB;YACE,OAAO,IAAA,aAAE,EAAC,6BAAoB,CAAC,CAAC;QAClC,CAAC;;;OAAA;IACH,0BAAC;AAAD,CAAC,AAxFD,CAAkC,mBAAQ,GAwFzC;AAED,kBAAe,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,CAAC;IAKvC,qBAAqB,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC;IAa5E,YAAY,IAAI,OAAO,CAAC,OAAO,CAAC;IAMhC,cAAc,IAAI,OAAO,CAA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