@fluentui-react-native/tester 0.51.5 → 0.52.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 +136 -1
- package/CHANGELOG.md +30 -2
- package/lib/E2E/Button/pages/ButtonPageObject.d.ts +5 -0
- package/lib/E2E/Button/pages/ButtonPageObject.d.ts.map +1 -1
- package/lib/E2E/Button/pages/ButtonPageObject.js +11 -0
- package/lib/E2E/Button/pages/ButtonPageObject.js.map +1 -1
- package/lib/E2E/Button/specs/Button.spec.win.js +3 -3
- package/lib/E2E/Button/specs/Button.spec.win.js.map +1 -1
- package/lib/E2E/Checkbox/pages/CheckboxPageObject.d.ts +5 -0
- package/lib/E2E/Checkbox/pages/CheckboxPageObject.d.ts.map +1 -1
- package/lib/E2E/Checkbox/pages/CheckboxPageObject.js +11 -0
- package/lib/E2E/Checkbox/pages/CheckboxPageObject.js.map +1 -1
- package/lib/E2E/Checkbox/specs/Checkbox.spec.win.js +2 -2
- package/lib/E2E/Checkbox/specs/Checkbox.spec.win.js.map +1 -1
- package/lib/E2E/ContextualMenu/pages/ContextualMenuPageObject.win.d.ts +12 -0
- package/lib/E2E/ContextualMenu/pages/ContextualMenuPageObject.win.d.ts.map +1 -1
- package/lib/E2E/ContextualMenu/pages/ContextualMenuPageObject.win.js +41 -1
- package/lib/E2E/ContextualMenu/pages/ContextualMenuPageObject.win.js.map +1 -1
- package/lib/E2E/ContextualMenu/specs/ContextualMenu.spec.win.js +24 -2
- package/lib/E2E/ContextualMenu/specs/ContextualMenu.spec.win.js.map +1 -1
- package/lib/E2E/MenuButton/pages/MenuButtonPageObject.win.d.ts +12 -0
- package/lib/E2E/MenuButton/pages/MenuButtonPageObject.win.d.ts.map +1 -1
- package/lib/E2E/MenuButton/pages/MenuButtonPageObject.win.js +39 -1
- package/lib/E2E/MenuButton/pages/MenuButtonPageObject.win.js.map +1 -1
- package/lib/E2E/MenuButton/specs/MenuButton.spec.win.js +27 -4
- package/lib/E2E/MenuButton/specs/MenuButton.spec.win.js.map +1 -1
- package/lib/E2E/RadioGroup/pages/RadioGroupPageObject.macos.js +3 -3
- package/lib/E2E/RadioGroup/pages/RadioGroupPageObject.macos.js.map +1 -1
- package/lib/E2E/RadioGroup/pages/RadioGroupPageObject.win.d.ts +13 -3
- package/lib/E2E/RadioGroup/pages/RadioGroupPageObject.win.d.ts.map +1 -1
- package/lib/E2E/RadioGroup/pages/RadioGroupPageObject.win.js +61 -11
- package/lib/E2E/RadioGroup/pages/RadioGroupPageObject.win.js.map +1 -1
- package/lib/E2E/RadioGroup/specs/RadioGroup.spec.win.js +36 -12
- package/lib/E2E/RadioGroup/specs/RadioGroup.spec.win.js.map +1 -1
- package/lib/E2E/Tabs/pages/TabsPageObject.macos.js +2 -2
- package/lib/E2E/Tabs/pages/TabsPageObject.macos.js.map +1 -1
- package/lib/E2E/Tabs/pages/TabsPageObject.win.d.ts +18 -3
- package/lib/E2E/Tabs/pages/TabsPageObject.win.d.ts.map +1 -1
- package/lib/E2E/Tabs/pages/TabsPageObject.win.js +86 -8
- package/lib/E2E/Tabs/pages/TabsPageObject.win.js.map +1 -1
- package/lib/E2E/Tabs/specs/Tabs.spec.win.js +35 -2
- package/lib/E2E/Tabs/specs/Tabs.spec.win.js.map +1 -1
- package/lib/E2E/Tabs/specs/Tabs.spec.windows.d.ts +2 -0
- package/lib/E2E/Tabs/specs/Tabs.spec.windows.d.ts.map +1 -0
- package/lib/E2E/Tabs/specs/Tabs.spec.windows.js +66 -0
- package/lib/E2E/Tabs/specs/Tabs.spec.windows.js.map +1 -0
- package/lib/E2E/common/BasePage.win.d.ts +0 -1
- package/lib/E2E/common/BasePage.win.d.ts.map +1 -1
- package/lib/E2E/common/BasePage.win.js +0 -7
- package/lib/E2E/common/BasePage.win.js.map +1 -1
- package/lib/FluentTester/TestComponents/ContextualMenu/E2EContextualMenuTest.d.ts.map +1 -1
- package/lib/FluentTester/TestComponents/ContextualMenu/E2EContextualMenuTest.js +2 -2
- package/lib/FluentTester/TestComponents/ContextualMenu/E2EContextualMenuTest.js.map +1 -1
- package/lib/FluentTester/TestComponents/MenuButton/consts.d.ts +3 -2
- package/lib/FluentTester/TestComponents/MenuButton/consts.d.ts.map +1 -1
- package/lib/FluentTester/TestComponents/MenuButton/consts.js +3 -2
- package/lib/FluentTester/TestComponents/MenuButton/consts.js.map +1 -1
- package/lib/FluentTester/TestComponents/MenuButton/testData.d.ts.map +1 -1
- package/lib/FluentTester/TestComponents/MenuButton/testData.js +2 -0
- package/lib/FluentTester/TestComponents/MenuButton/testData.js.map +1 -1
- package/lib/FluentTester/TestComponents/RadioGroup/RadioGroupE2ETest.d.ts.map +1 -1
- package/lib/FluentTester/TestComponents/RadioGroup/RadioGroupE2ETest.js +6 -6
- package/lib/FluentTester/TestComponents/RadioGroup/RadioGroupE2ETest.js.map +1 -1
- package/lib/FluentTester/TestComponents/RadioGroup/consts.d.ts +12 -4
- package/lib/FluentTester/TestComponents/RadioGroup/consts.d.ts.map +1 -1
- package/lib/FluentTester/TestComponents/RadioGroup/consts.js +17 -9
- package/lib/FluentTester/TestComponents/RadioGroup/consts.js.map +1 -1
- package/lib/FluentTester/TestComponents/Tabs/TabsE2ETest.d.ts.map +1 -1
- package/lib/FluentTester/TestComponents/Tabs/TabsE2ETest.js +8 -8
- package/lib/FluentTester/TestComponents/Tabs/TabsE2ETest.js.map +1 -1
- package/lib/FluentTester/TestComponents/Tabs/consts.d.ts +8 -4
- package/lib/FluentTester/TestComponents/Tabs/consts.d.ts.map +1 -1
- package/lib/FluentTester/TestComponents/Tabs/consts.js +13 -8
- package/lib/FluentTester/TestComponents/Tabs/consts.js.map +1 -1
- package/lib-commonjs/E2E/Button/pages/ButtonPageObject.d.ts +5 -0
- package/lib-commonjs/E2E/Button/pages/ButtonPageObject.d.ts.map +1 -1
- package/lib-commonjs/E2E/Button/pages/ButtonPageObject.js +11 -0
- package/lib-commonjs/E2E/Button/pages/ButtonPageObject.js.map +1 -1
- package/lib-commonjs/E2E/Button/specs/Button.spec.win.js +2 -2
- package/lib-commonjs/E2E/Button/specs/Button.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/Checkbox/pages/CheckboxPageObject.d.ts +5 -0
- package/lib-commonjs/E2E/Checkbox/pages/CheckboxPageObject.d.ts.map +1 -1
- package/lib-commonjs/E2E/Checkbox/pages/CheckboxPageObject.js +11 -0
- package/lib-commonjs/E2E/Checkbox/pages/CheckboxPageObject.js.map +1 -1
- package/lib-commonjs/E2E/Checkbox/specs/Checkbox.spec.win.js +1 -1
- package/lib-commonjs/E2E/Checkbox/specs/Checkbox.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/ContextualMenu/pages/ContextualMenuPageObject.win.d.ts +12 -0
- package/lib-commonjs/E2E/ContextualMenu/pages/ContextualMenuPageObject.win.d.ts.map +1 -1
- package/lib-commonjs/E2E/ContextualMenu/pages/ContextualMenuPageObject.win.js +40 -0
- package/lib-commonjs/E2E/ContextualMenu/pages/ContextualMenuPageObject.win.js.map +1 -1
- package/lib-commonjs/E2E/ContextualMenu/specs/ContextualMenu.spec.win.js +24 -2
- package/lib-commonjs/E2E/ContextualMenu/specs/ContextualMenu.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/MenuButton/pages/MenuButtonPageObject.win.d.ts +12 -0
- package/lib-commonjs/E2E/MenuButton/pages/MenuButtonPageObject.win.d.ts.map +1 -1
- package/lib-commonjs/E2E/MenuButton/pages/MenuButtonPageObject.win.js +38 -0
- package/lib-commonjs/E2E/MenuButton/pages/MenuButtonPageObject.win.js.map +1 -1
- package/lib-commonjs/E2E/MenuButton/specs/MenuButton.spec.win.js +27 -4
- package/lib-commonjs/E2E/MenuButton/specs/MenuButton.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/RadioGroup/pages/RadioGroupPageObject.macos.js +2 -2
- package/lib-commonjs/E2E/RadioGroup/pages/RadioGroupPageObject.macos.js.map +1 -1
- package/lib-commonjs/E2E/RadioGroup/pages/RadioGroupPageObject.win.d.ts +13 -3
- package/lib-commonjs/E2E/RadioGroup/pages/RadioGroupPageObject.win.d.ts.map +1 -1
- package/lib-commonjs/E2E/RadioGroup/pages/RadioGroupPageObject.win.js +60 -10
- package/lib-commonjs/E2E/RadioGroup/pages/RadioGroupPageObject.win.js.map +1 -1
- package/lib-commonjs/E2E/RadioGroup/specs/RadioGroup.spec.win.js +35 -11
- package/lib-commonjs/E2E/RadioGroup/specs/RadioGroup.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/Tabs/pages/TabsPageObject.macos.js +1 -1
- package/lib-commonjs/E2E/Tabs/pages/TabsPageObject.macos.js.map +1 -1
- package/lib-commonjs/E2E/Tabs/pages/TabsPageObject.win.d.ts +18 -3
- package/lib-commonjs/E2E/Tabs/pages/TabsPageObject.win.d.ts.map +1 -1
- package/lib-commonjs/E2E/Tabs/pages/TabsPageObject.win.js +85 -7
- package/lib-commonjs/E2E/Tabs/pages/TabsPageObject.win.js.map +1 -1
- package/lib-commonjs/E2E/Tabs/specs/Tabs.spec.win.js +35 -2
- package/lib-commonjs/E2E/Tabs/specs/Tabs.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/Tabs/specs/Tabs.spec.windows.d.ts +2 -0
- package/lib-commonjs/E2E/Tabs/specs/Tabs.spec.windows.d.ts.map +1 -0
- package/lib-commonjs/E2E/Tabs/specs/Tabs.spec.windows.js +69 -0
- package/lib-commonjs/E2E/Tabs/specs/Tabs.spec.windows.js.map +1 -0
- package/lib-commonjs/E2E/common/BasePage.win.d.ts +0 -1
- package/lib-commonjs/E2E/common/BasePage.win.d.ts.map +1 -1
- package/lib-commonjs/E2E/common/BasePage.win.js +0 -7
- package/lib-commonjs/E2E/common/BasePage.win.js.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/ContextualMenu/E2EContextualMenuTest.d.ts.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/ContextualMenu/E2EContextualMenuTest.js +1 -1
- package/lib-commonjs/FluentTester/TestComponents/ContextualMenu/E2EContextualMenuTest.js.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/MenuButton/consts.d.ts +3 -2
- package/lib-commonjs/FluentTester/TestComponents/MenuButton/consts.d.ts.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/MenuButton/consts.js +4 -3
- package/lib-commonjs/FluentTester/TestComponents/MenuButton/consts.js.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/MenuButton/testData.d.ts.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/MenuButton/testData.js +2 -0
- package/lib-commonjs/FluentTester/TestComponents/MenuButton/testData.js.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/RadioGroup/RadioGroupE2ETest.d.ts.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/RadioGroup/RadioGroupE2ETest.js +5 -5
- package/lib-commonjs/FluentTester/TestComponents/RadioGroup/RadioGroupE2ETest.js.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/RadioGroup/consts.d.ts +12 -4
- package/lib-commonjs/FluentTester/TestComponents/RadioGroup/consts.d.ts.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/RadioGroup/consts.js +18 -10
- package/lib-commonjs/FluentTester/TestComponents/RadioGroup/consts.js.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Tabs/TabsE2ETest.d.ts.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Tabs/TabsE2ETest.js +7 -7
- package/lib-commonjs/FluentTester/TestComponents/Tabs/TabsE2ETest.js.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Tabs/consts.d.ts +8 -4
- package/lib-commonjs/FluentTester/TestComponents/Tabs/consts.d.ts.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Tabs/consts.js +14 -9
- package/lib-commonjs/FluentTester/TestComponents/Tabs/consts.js.map +1 -1
- package/package.json +21 -21
- package/src/E2E/Button/pages/ButtonPageObject.ts +19 -0
- package/src/E2E/Button/specs/Button.spec.win.ts +4 -8
- package/src/E2E/Checkbox/pages/CheckboxPageObject.ts +19 -0
- package/src/E2E/Checkbox/specs/Checkbox.spec.win.ts +3 -7
- package/src/E2E/ContextualMenu/pages/ContextualMenuPageObject.win.ts +49 -0
- package/src/E2E/ContextualMenu/specs/ContextualMenu.spec.win.ts +33 -4
- package/src/E2E/MenuButton/pages/MenuButtonPageObject.win.ts +46 -0
- package/src/E2E/MenuButton/specs/MenuButton.spec.win.ts +37 -6
- package/src/E2E/RadioGroup/pages/RadioGroupPageObject.macos.ts +4 -4
- package/src/E2E/RadioGroup/pages/RadioGroupPageObject.win.ts +70 -14
- package/src/E2E/RadioGroup/specs/RadioGroup.spec.win.ts +48 -14
- package/src/E2E/Tabs/pages/TabsPageObject.macos.ts +2 -2
- package/src/E2E/Tabs/pages/TabsPageObject.win.ts +90 -8
- package/src/E2E/Tabs/specs/Tabs.spec.win.ts +50 -4
- package/src/E2E/Tabs/specs/Tabs.spec.windows.ts +84 -0
- package/src/E2E/common/BasePage.win.ts +0 -8
- package/src/FluentTester/TestComponents/ContextualMenu/E2EContextualMenuTest.tsx +7 -2
- package/src/FluentTester/TestComponents/MenuButton/consts.ts +3 -2
- package/src/FluentTester/TestComponents/MenuButton/testData.ts +2 -0
- package/src/FluentTester/TestComponents/RadioGroup/RadioGroupE2ETest.tsx +14 -12
- package/src/FluentTester/TestComponents/RadioGroup/consts.ts +21 -11
- package/src/FluentTester/TestComponents/Tabs/TabsE2ETest.tsx +15 -11
- package/src/FluentTester/TestComponents/Tabs/consts.ts +16 -10
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RADIOGROUP_ON_PRESS = exports.
|
|
3
|
+
exports.RADIOGROUP_ON_PRESS = exports.RADIOGROUP_TEST_COMPONENT_LABEL = exports.RADIOGROUP_NO_A11Y_LABEL_COMPONENT = exports.FOURTH_RADIO_BUTTON = exports.THIRD_RADIO_BUTTON = exports.SECOND_RADIO_BUTTON_LABEL = exports.SECOND_RADIO_BUTTON = exports.FIRST_RADIO_BUTTON_ACCESSIBILITY_LABEL = exports.FIRST_RADIO_BUTTON = exports.RADIOGROUP_ACCESSIBILITY_LABEL = exports.RADIOGROUP_TEST_COMPONENT = exports.RADIOGROUP_TESTPAGE = exports.HOMEPAGE_RADIOGROUP_BUTTON = void 0;
|
|
4
4
|
exports.HOMEPAGE_RADIOGROUP_BUTTON = 'Homepage_RadioGroup_Button';
|
|
5
5
|
exports.RADIOGROUP_TESTPAGE = 'RadioGroup_TestPage';
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
/********************************************************************/
|
|
7
|
+
/********************* E2E Testing RadioGroup 1 *********************/
|
|
8
|
+
/********************************************************************/
|
|
9
|
+
exports.RADIOGROUP_TEST_COMPONENT = 'RadioGroup_Test_Component';
|
|
8
10
|
exports.RADIOGROUP_ACCESSIBILITY_LABEL = 'E2E testing RadioGroup accessibility label';
|
|
9
|
-
/* E2E Testing
|
|
11
|
+
/* E2E Testing RadioButton 1 (1 of 4) */
|
|
12
|
+
exports.FIRST_RADIO_BUTTON = 'First_Radio_Button';
|
|
13
|
+
exports.FIRST_RADIO_BUTTON_ACCESSIBILITY_LABEL = 'E2E testing RadioButton accessibility label';
|
|
14
|
+
/* E2E Testing RadioButton 1 (2 of 4) No accessibilityLabel */
|
|
15
|
+
exports.SECOND_RADIO_BUTTON = 'Second_Radio_Button';
|
|
16
|
+
exports.SECOND_RADIO_BUTTON_LABEL = 'Test RadioGroup2 - No Accessibility Label';
|
|
17
|
+
/* E2E Testing RadioButton 1 (3 of 4) */
|
|
18
|
+
exports.THIRD_RADIO_BUTTON = 'Third_Radio_Button';
|
|
19
|
+
/* E2E Testing RadioButton 1 (4 of 4) */
|
|
20
|
+
exports.FOURTH_RADIO_BUTTON = 'Fourth_Radio_Button';
|
|
21
|
+
/********************************************************************/
|
|
22
|
+
/********************* E2E Testing RadioGroup 2 *********************/
|
|
23
|
+
/********************************************************************/
|
|
10
24
|
exports.RADIOGROUP_NO_A11Y_LABEL_COMPONENT = 'RadioGroup_No_A11y_label_Component';
|
|
11
25
|
exports.RADIOGROUP_TEST_COMPONENT_LABEL = 'Test RadioGroup2 - No Accessibility Label'; // A component on each specific test page
|
|
12
|
-
/* E2E Testing RadioButton 1 */
|
|
13
|
-
exports.RADIOBUTTON_TEST_COMPONENT = 'RadioButton_Test_Component'; // A component on each specific test page
|
|
14
|
-
exports.RADIOBUTTON_ACCESSIBILITY_LABEL = 'E2E testing RadioButton accessibility label';
|
|
15
|
-
/* E2E Testing RadioButton 2 */
|
|
16
|
-
exports.RADIOBUTTON_NO_A11Y_LABEL_COMPONENT = 'RadioButton_No_A11y_label_Component';
|
|
17
|
-
exports.RADIOBUTTON_TEST_COMPONENT_LABEL = 'Test RadioButton2 - No Accessibility Label'; // A component on each specific test page
|
|
18
26
|
exports.RADIOGROUP_ON_PRESS = 'RadioGroup_On_Press'; // For testing the press functionality on a button
|
|
19
27
|
//# sourceMappingURL=consts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/RadioGroup/consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG,4BAA4B,CAAC;AAC1D,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAEzD,
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/RadioGroup/consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG,4BAA4B,CAAC;AAC1D,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAEzD,sEAAsE;AACtE,sEAAsE;AACtE,sEAAsE;AACzD,QAAA,yBAAyB,GAAG,2BAA2B,CAAC;AACxD,QAAA,8BAA8B,GAAG,4CAA4C,CAAC;AAE3F,wCAAwC;AAC3B,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,sCAAsC,GAAG,6CAA6C,CAAC;AAEpG,8DAA8D;AACjD,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAC5C,QAAA,yBAAyB,GAAG,2CAA2C,CAAC;AAErF,wCAAwC;AAC3B,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAEvD,wCAAwC;AAC3B,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAEzD,sEAAsE;AACtE,sEAAsE;AACtE,sEAAsE;AACzD,QAAA,kCAAkC,GAAG,oCAAoC,CAAC;AAC1E,QAAA,+BAA+B,GAAG,2CAA2C,CAAC,CAAC,yCAAyC;AAExH,QAAA,mBAAmB,GAAG,qBAAqB,CAAC,CAAC,kDAAkD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsE2ETest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Tabs/TabsE2ETest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TabsE2ETest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Tabs/TabsE2ETest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAmB/B,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,iBA+B/B,CAAC"}
|
|
@@ -11,15 +11,15 @@ var E2ETabsTest = function () {
|
|
|
11
11
|
return (React.createElement(react_native_1.View, null,
|
|
12
12
|
React.createElement(react_native_1.View, { style: styles_1.stackStyle },
|
|
13
13
|
React.createElement(react_native_2.Tabs, { label: "Tabs", testID: consts_1.TABS_TEST_COMPONENT, accessibilityLabel: consts_1.TABS_ACCESSIBILITY_LABEL },
|
|
14
|
-
React.createElement(react_native_2.TabsItem, { headerText: "Home", itemKey: "A", testID: consts_1.
|
|
15
|
-
React.createElement(react_native_2.Text,
|
|
16
|
-
React.createElement(react_native_2.TabsItem, { headerText: "Files", itemKey: "B" },
|
|
17
|
-
React.createElement(react_native_2.Text,
|
|
18
|
-
React.createElement(react_native_2.TabsItem, { headerText:
|
|
19
|
-
React.createElement(react_native_2.Text,
|
|
14
|
+
React.createElement(react_native_2.TabsItem, { headerText: "Home", itemKey: "A", testID: consts_1.FIRST_TABS_ITEM, accessibilityLabel: consts_1.FIRST_TABS_ITEM_ACCESSIBILITY_LABEL },
|
|
15
|
+
React.createElement(react_native_2.Text, { testID: consts_1.FIRST_TABS_ITEM_CONTENT }, "Tabs #1")),
|
|
16
|
+
React.createElement(react_native_2.TabsItem, { headerText: "Files", itemKey: "B", testID: consts_1.SECOND_TABS_ITEM },
|
|
17
|
+
React.createElement(react_native_2.Text, { testID: consts_1.SECOND_TABS_ITEM_CONTENT }, "Tabs #2")),
|
|
18
|
+
React.createElement(react_native_2.TabsItem, { headerText: consts_1.THIRD_TABS_ITEM_LABEL, itemKey: "C", testID: consts_1.THIRD_TABS_ITEM },
|
|
19
|
+
React.createElement(react_native_2.Text, { testID: consts_1.THIRD_TABS_ITEM_CONTENT }, "Tabs #3")))),
|
|
20
20
|
React.createElement(react_native_1.View, { style: styles_1.stackStyle },
|
|
21
21
|
React.createElement(react_native_2.Tabs, { label: consts_1.TABS_TEST_COMPONENT_LABEL, testID: consts_1.TABS_NO_A11Y_LABEL_COMPONENT },
|
|
22
|
-
React.createElement(react_native_2.TabsItem, { headerText:
|
|
22
|
+
React.createElement(react_native_2.TabsItem, { headerText: "Home", itemKey: "A" },
|
|
23
23
|
React.createElement(react_native_2.Text, null, "Tabs #1")),
|
|
24
24
|
React.createElement(react_native_2.TabsItem, { headerText: "Files", itemKey: "B" },
|
|
25
25
|
React.createElement(react_native_2.Text, null, "Tabs #2")),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsE2ETest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Tabs/TabsE2ETest.tsx"],"names":[],"mappings":";;;;AAAA,wDAA+B;AAC/B,6CAAoC;AACpC,uDAA8D;AAC9D,2CAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"TabsE2ETest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Tabs/TabsE2ETest.tsx"],"names":[],"mappings":";;;;AAAA,wDAA+B;AAC/B,6CAAoC;AACpC,uDAA8D;AAC9D,2CAA8C;AAC9C,mCAakB;AAEX,IAAM,WAAW,GAA4B;IAClD,OAAO,CACL,oBAAC,mBAAI;QACH,oBAAC,mBAAI,IAAC,KAAK,EAAE,mBAAU;YACrB,oBAAC,mBAAI,IAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAE,4BAAmB,EAAE,kBAAkB,EAAE,iCAAwB;gBAC1F,oBAAC,uBAAQ,IAAC,UAAU,EAAC,MAAM,EAAC,OAAO,EAAC,GAAG,EAAC,MAAM,EAAE,wBAAe,EAAE,kBAAkB,EAAE,4CAAmC;oBACtH,oBAAC,mBAAI,IAAC,MAAM,EAAE,gCAAuB,cAAgB,CAC5C;gBACX,oBAAC,uBAAQ,IAAC,UAAU,EAAC,OAAO,EAAC,OAAO,EAAC,GAAG,EAAC,MAAM,EAAE,yBAAgB;oBAC/D,oBAAC,mBAAI,IAAC,MAAM,EAAE,iCAAwB,cAAgB,CAC7C;gBACX,oBAAC,uBAAQ,IAAC,UAAU,EAAE,8BAAqB,EAAE,OAAO,EAAC,GAAG,EAAC,MAAM,EAAE,wBAAe;oBAC9E,oBAAC,mBAAI,IAAC,MAAM,EAAE,gCAAuB,cAAgB,CAC5C,CACN,CACF;QACP,oBAAC,mBAAI,IAAC,KAAK,EAAE,mBAAU;YACrB,oBAAC,mBAAI,IAAC,KAAK,EAAE,kCAAyB,EAAE,MAAM,EAAE,qCAA4B;gBAC1E,oBAAC,uBAAQ,IAAC,UAAU,EAAC,MAAM,EAAC,OAAO,EAAC,GAAG;oBACrC,oBAAC,mBAAI,kBAAe,CACX;gBACX,oBAAC,uBAAQ,IAAC,UAAU,EAAC,OAAO,EAAC,OAAO,EAAC,GAAG;oBACtC,oBAAC,mBAAI,kBAAe,CACX;gBACX,oBAAC,uBAAQ,IAAC,UAAU,EAAC,UAAU,EAAC,OAAO,EAAC,GAAG;oBACzC,oBAAC,mBAAI,kBAAe,CACX,CACN,CACF,CACF,CACR,CAAC;AACJ,CAAC,CAAC;AA/BW,QAAA,WAAW,eA+BtB"}
|
|
@@ -2,10 +2,14 @@ export declare const HOMEPAGE_TABS_BUTTON = "Homepage_Tabs_Button";
|
|
|
2
2
|
export declare const TABS_TESTPAGE = "Tabs_TestPage";
|
|
3
3
|
export declare const TABS_TEST_COMPONENT = "Tabs_Test_Component";
|
|
4
4
|
export declare const TABS_ACCESSIBILITY_LABEL = "E2E testing Tabs accessibility label";
|
|
5
|
+
export declare const FIRST_TABS_ITEM = "First_Tabs_Item";
|
|
6
|
+
export declare const FIRST_TABS_ITEM_ACCESSIBILITY_LABEL = "E2E testing TabItem accessibility label";
|
|
7
|
+
export declare const FIRST_TABS_ITEM_CONTENT = "Tabs #1 content";
|
|
8
|
+
export declare const SECOND_TABS_ITEM = "Second_Tabs_Item";
|
|
9
|
+
export declare const SECOND_TABS_ITEM_CONTENT = "Tabs #2 content";
|
|
10
|
+
export declare const THIRD_TABS_ITEM = "Third_Tabs_Item";
|
|
11
|
+
export declare const THIRD_TABS_ITEM_LABEL = "Test TabItem2 - No Accessibility Label";
|
|
12
|
+
export declare const THIRD_TABS_ITEM_CONTENT = "Tabs #3 content";
|
|
5
13
|
export declare const TABS_NO_A11Y_LABEL_COMPONENT = "Tabs_No_A11y_label_Component";
|
|
6
14
|
export declare const TABS_TEST_COMPONENT_LABEL = "Test Tabs2 - No Accessibility Label";
|
|
7
|
-
export declare const TABS_ITEM_TEST_COMPONENT = "TabItem_Test_Component";
|
|
8
|
-
export declare const TABS_ITEM_ACCESSIBILITY_LABEL = "E2E testing TabItem accessibility label";
|
|
9
|
-
export declare const TABS_ITEM_NO_A11Y_LABEL_COMPONENT = "TabItem_No_A11y_label_Component";
|
|
10
|
-
export declare const TABS_ITEM_TEST_COMPONENT_LABEL = "Test TabItem2 - No Accessibility Label";
|
|
11
15
|
//# sourceMappingURL=consts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Tabs/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAG7C,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,wBAAwB,yCAAyC,CAAC;AAG/E,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Tabs/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAG7C,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,wBAAwB,yCAAyC,CAAC;AAG/E,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,mCAAmC,4CAA4C,CAAC;AAC7F,eAAO,MAAM,uBAAuB,oBAAoB,CAAC;AAGzD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,wBAAwB,oBAAoB,CAAC;AAG1D,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,qBAAqB,2CAA2C,CAAC;AAC9E,eAAO,MAAM,uBAAuB,oBAAoB,CAAC;AAGzD,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAC3E,eAAO,MAAM,yBAAyB,wCAAwC,CAAC"}
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TABS_TEST_COMPONENT_LABEL = exports.TABS_NO_A11Y_LABEL_COMPONENT = exports.THIRD_TABS_ITEM_CONTENT = exports.THIRD_TABS_ITEM_LABEL = exports.THIRD_TABS_ITEM = exports.SECOND_TABS_ITEM_CONTENT = exports.SECOND_TABS_ITEM = exports.FIRST_TABS_ITEM_CONTENT = exports.FIRST_TABS_ITEM_ACCESSIBILITY_LABEL = exports.FIRST_TABS_ITEM = exports.TABS_ACCESSIBILITY_LABEL = exports.TABS_TEST_COMPONENT = exports.TABS_TESTPAGE = exports.HOMEPAGE_TABS_BUTTON = void 0;
|
|
4
4
|
exports.HOMEPAGE_TABS_BUTTON = 'Homepage_Tabs_Button';
|
|
5
5
|
exports.TABS_TESTPAGE = 'Tabs_TestPage';
|
|
6
|
-
/* E2E Testing Tabs 1 */
|
|
7
|
-
exports.TABS_TEST_COMPONENT = 'Tabs_Test_Component';
|
|
6
|
+
/* E2E Testing Tabs 1. This Tabs group has THREE Tab Items, all listed below. */
|
|
7
|
+
exports.TABS_TEST_COMPONENT = 'Tabs_Test_Component';
|
|
8
8
|
exports.TABS_ACCESSIBILITY_LABEL = 'E2E testing Tabs accessibility label';
|
|
9
|
+
/* E2E Testing TabItem 1 (1 of 3) */
|
|
10
|
+
exports.FIRST_TABS_ITEM = 'First_Tabs_Item';
|
|
11
|
+
exports.FIRST_TABS_ITEM_ACCESSIBILITY_LABEL = 'E2E testing TabItem accessibility label';
|
|
12
|
+
exports.FIRST_TABS_ITEM_CONTENT = 'Tabs #1 content'; // Content to be shown when TabItem is clicked
|
|
13
|
+
/* E2E Testing TabItem 2 (2 of 3) */
|
|
14
|
+
exports.SECOND_TABS_ITEM = 'Second_Tabs_Item';
|
|
15
|
+
exports.SECOND_TABS_ITEM_CONTENT = 'Tabs #2 content'; // Content to be shown when TabItem is clicked
|
|
16
|
+
/* E2E Testing TabItem 3 (3 of 3) This is used to test the case of not setting accessibilityLabel */
|
|
17
|
+
exports.THIRD_TABS_ITEM = 'Third_Tabs_Item';
|
|
18
|
+
exports.THIRD_TABS_ITEM_LABEL = 'Test TabItem2 - No Accessibility Label';
|
|
19
|
+
exports.THIRD_TABS_ITEM_CONTENT = 'Tabs #3 content'; // Content to be shown when TabItem is clicked
|
|
9
20
|
/* E2E Testing Tabs 2 */
|
|
10
21
|
exports.TABS_NO_A11Y_LABEL_COMPONENT = 'Tabs_No_A11y_label_Component';
|
|
11
22
|
exports.TABS_TEST_COMPONENT_LABEL = 'Test Tabs2 - No Accessibility Label'; // A component on each specific test page
|
|
12
|
-
/* E2E Testing TabItem 1 */
|
|
13
|
-
exports.TABS_ITEM_TEST_COMPONENT = 'TabItem_Test_Component'; // A component on each specific test page
|
|
14
|
-
exports.TABS_ITEM_ACCESSIBILITY_LABEL = 'E2E testing TabItem accessibility label';
|
|
15
|
-
/* E2E Testing TabItem 2 */
|
|
16
|
-
exports.TABS_ITEM_NO_A11Y_LABEL_COMPONENT = 'TabItem_No_A11y_label_Component';
|
|
17
|
-
exports.TABS_ITEM_TEST_COMPONENT_LABEL = 'Test TabItem2 - No Accessibility Label'; // A component on each specific test page
|
|
18
23
|
//# sourceMappingURL=consts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Tabs/consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,sBAAsB,CAAC;AAC9C,QAAA,aAAa,GAAG,eAAe,CAAC;AAE7C,
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Tabs/consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,sBAAsB,CAAC;AAC9C,QAAA,aAAa,GAAG,eAAe,CAAC;AAE7C,gFAAgF;AACnE,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAC5C,QAAA,wBAAwB,GAAG,sCAAsC,CAAC;AAE/E,oCAAoC;AACvB,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,mCAAmC,GAAG,yCAAyC,CAAC;AAChF,QAAA,uBAAuB,GAAG,iBAAiB,CAAC,CAAC,8CAA8C;AAExG,oCAAoC;AACvB,QAAA,gBAAgB,GAAG,kBAAkB,CAAC;AACtC,QAAA,wBAAwB,GAAG,iBAAiB,CAAC,CAAC,8CAA8C;AAEzG,oGAAoG;AACvF,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,qBAAqB,GAAG,wCAAwC,CAAC;AACjE,QAAA,uBAAuB,GAAG,iBAAiB,CAAC,CAAC,8CAA8C;AAExG,wBAAwB;AACX,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAC9D,QAAA,yBAAyB,GAAG,qCAAqC,CAAC,CAAC,yCAAyC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.52.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>",
|
|
@@ -28,30 +28,30 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@fluentui-react-native/android-theme": ">=0.5.4 <1.0.0",
|
|
31
|
-
"@fluentui-react-native/apple-theme": ">=0.9.
|
|
32
|
-
"@fluentui-react-native/badge": ">=0.0.
|
|
33
|
-
"@fluentui-react-native/button": ">=0.21.
|
|
34
|
-
"@fluentui-react-native/default-theme": ">=0.9.
|
|
35
|
-
"@fluentui-react-native/experimental-activity-indicator": ">=0.5.
|
|
36
|
-
"@fluentui-react-native/experimental-avatar": ">=0.14.
|
|
37
|
-
"@fluentui-react-native/experimental-button": "0.12.
|
|
38
|
-
"@fluentui-react-native/experimental-checkbox": "0.6.
|
|
31
|
+
"@fluentui-react-native/apple-theme": ">=0.9.9 <1.0.0",
|
|
32
|
+
"@fluentui-react-native/badge": ">=0.0.8 <1.0.0",
|
|
33
|
+
"@fluentui-react-native/button": ">=0.21.19 <1.0.0",
|
|
34
|
+
"@fluentui-react-native/default-theme": ">=0.9.9 <1.0.0",
|
|
35
|
+
"@fluentui-react-native/experimental-activity-indicator": ">=0.5.11 <1.0.0",
|
|
36
|
+
"@fluentui-react-native/experimental-avatar": ">=0.14.3 <1.0.0",
|
|
37
|
+
"@fluentui-react-native/experimental-button": "0.12.1",
|
|
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
|
-
"@fluentui-react-native/experimental-expander": "0.3.
|
|
41
|
-
"@fluentui-react-native/experimental-menu-button": ">=0.3.
|
|
42
|
-
"@fluentui-react-native/experimental-shimmer": "0.6.
|
|
43
|
-
"@fluentui-react-native/experimental-tabs": "0.4.
|
|
44
|
-
"@fluentui-react-native/experimental-text": ">=0.7.
|
|
45
|
-
"@fluentui-react-native/framework": ">=0.7.
|
|
46
|
-
"@fluentui-react-native/icon": "0.11.
|
|
47
|
-
"@fluentui-react-native/interactive-hooks": ">=0.12.
|
|
48
|
-
"@fluentui-react-native/stack": ">=0.6.
|
|
40
|
+
"@fluentui-react-native/experimental-expander": "0.3.12",
|
|
41
|
+
"@fluentui-react-native/experimental-menu-button": ">=0.3.2 <1.0.0",
|
|
42
|
+
"@fluentui-react-native/experimental-shimmer": "0.6.14",
|
|
43
|
+
"@fluentui-react-native/experimental-tabs": "0.4.18",
|
|
44
|
+
"@fluentui-react-native/experimental-text": ">=0.7.12 <1.0.0",
|
|
45
|
+
"@fluentui-react-native/framework": ">=0.7.12 <1.0.0",
|
|
46
|
+
"@fluentui-react-native/icon": "0.11.6",
|
|
47
|
+
"@fluentui-react-native/interactive-hooks": ">=0.12.2 <1.0.0",
|
|
48
|
+
"@fluentui-react-native/stack": ">=0.6.12 <1.0.0",
|
|
49
49
|
"@fluentui-react-native/theme": ">=0.6.4 <1.0.0",
|
|
50
50
|
"@fluentui-react-native/theme-types": ">=0.13.3 <1.0.0",
|
|
51
51
|
"@fluentui-react-native/themed-stylesheet": "^1.3.2",
|
|
52
|
-
"@fluentui-react-native/theming-utils": ">=0.8.
|
|
53
|
-
"@fluentui-react-native/win32-theme": ">=0.14.
|
|
54
|
-
"@fluentui/react-native": ">=0.27.
|
|
52
|
+
"@fluentui-react-native/theming-utils": ">=0.8.9 <1.0.0",
|
|
53
|
+
"@fluentui-react-native/win32-theme": ">=0.14.10 <1.0.0",
|
|
54
|
+
"@fluentui/react-native": ">=0.27.24 <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",
|
|
@@ -7,6 +7,12 @@ import {
|
|
|
7
7
|
} from '../../../FluentTester/TestComponents/Button/consts';
|
|
8
8
|
import { BasePage, By } from '../../common/BasePage.win';
|
|
9
9
|
|
|
10
|
+
/* This enum gives the spec file an EASY way to interact with SPECIFIC UI elements on the page.
|
|
11
|
+
* The spec file should import this enum and use it when wanting to interact with different elements on the page. */
|
|
12
|
+
export const enum ButtonSelector {
|
|
13
|
+
PrimaryButton, //this._primaryComponent
|
|
14
|
+
}
|
|
15
|
+
|
|
10
16
|
class ButtonPageObject extends BasePage {
|
|
11
17
|
/******************************************************************/
|
|
12
18
|
/**************** UI Element Interaction Methods ******************/
|
|
@@ -27,6 +33,19 @@ class ButtonPageObject extends BasePage {
|
|
|
27
33
|
return callbackText.isDisplayed();
|
|
28
34
|
}
|
|
29
35
|
|
|
36
|
+
/* Sends a Keyboarding command on a specific UI element */
|
|
37
|
+
sendKey(buttonSelector: ButtonSelector, key: string): void {
|
|
38
|
+
this.getButtonSelector(buttonSelector).addValue(key);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Returns the correct WebDriverIO element from the Button Selector */
|
|
42
|
+
getButtonSelector(buttonSelector?: ButtonSelector): WebdriverIO.Element {
|
|
43
|
+
if (buttonSelector == ButtonSelector.PrimaryButton) {
|
|
44
|
+
return this._primaryComponent;
|
|
45
|
+
}
|
|
46
|
+
return this._primaryComponent;
|
|
47
|
+
}
|
|
48
|
+
|
|
30
49
|
/*****************************************/
|
|
31
50
|
/**************** Getters ****************/
|
|
32
51
|
/*****************************************/
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import NavigateAppPage from '../../common/NavigateAppPage.win';
|
|
2
|
-
import ButtonPageObject from '../pages/ButtonPageObject';
|
|
2
|
+
import ButtonPageObject, { ButtonSelector } from '../pages/ButtonPageObject';
|
|
3
3
|
import { ComponentSelector } from '../../common/BasePage.win';
|
|
4
4
|
import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT, BUTTON_A11Y_ROLE, Keys } from '../../common/consts';
|
|
5
|
-
import {
|
|
6
|
-
BUTTON_TEST_COMPONENT,
|
|
7
|
-
BUTTON_ACCESSIBILITY_LABEL,
|
|
8
|
-
BUTTON_TEST_COMPONENT_LABEL,
|
|
9
|
-
} from '../../../FluentTester/TestComponents/Button/consts';
|
|
5
|
+
import { BUTTON_ACCESSIBILITY_LABEL, BUTTON_TEST_COMPONENT_LABEL } from '../../../FluentTester/TestComponents/Button/consts';
|
|
10
6
|
|
|
11
7
|
// Before testing begins, allow up to 60 seconds for app to open
|
|
12
8
|
describe('Button Testing Initialization', function () {
|
|
@@ -63,14 +59,14 @@ describe('Button Functional Testing', () => {
|
|
|
63
59
|
});
|
|
64
60
|
|
|
65
61
|
it('Validate OnClick() callback was fired -> Type "Enter"', () => {
|
|
66
|
-
ButtonPageObject.sendKey(
|
|
62
|
+
ButtonPageObject.sendKey(ButtonSelector.PrimaryButton, Keys.Enter);
|
|
67
63
|
expect(ButtonPageObject.didOnClickCallbackFire()).toBeTruthy();
|
|
68
64
|
|
|
69
65
|
ButtonPageObject.clickComponent(); // Reset Button State
|
|
70
66
|
});
|
|
71
67
|
|
|
72
68
|
it('Validate OnClick() callback was fired -> Type "Spacebar"', () => {
|
|
73
|
-
ButtonPageObject.sendKey(
|
|
69
|
+
ButtonPageObject.sendKey(ButtonSelector.PrimaryButton, Keys.Spacebar);
|
|
74
70
|
expect(ButtonPageObject.didOnClickCallbackFire()).toBeTruthy();
|
|
75
71
|
});
|
|
76
72
|
});
|
|
@@ -7,6 +7,12 @@ import {
|
|
|
7
7
|
} from '../../../FluentTester/TestComponents/Checkbox/consts';
|
|
8
8
|
import { BasePage, By } from '../../common/BasePage.win';
|
|
9
9
|
|
|
10
|
+
/* This enum gives the spec file an EASY way to interact with SPECIFIC UI elements on the page.
|
|
11
|
+
* The spec file should import this enum and use it when wanting to interact with different elements on the page. */
|
|
12
|
+
export const enum CheckboxSelector {
|
|
13
|
+
Primary, //this._primaryComponent
|
|
14
|
+
}
|
|
15
|
+
|
|
10
16
|
class CheckboxPageObject extends BasePage {
|
|
11
17
|
/******************************************************************/
|
|
12
18
|
/**************** UI Element Interaction Methods ******************/
|
|
@@ -51,6 +57,19 @@ class CheckboxPageObject extends BasePage {
|
|
|
51
57
|
return callbackText.isDisplayed();
|
|
52
58
|
}
|
|
53
59
|
|
|
60
|
+
/* Sends a Keyboarding command on a specific UI element */
|
|
61
|
+
sendKey(selector: CheckboxSelector, key: string): void {
|
|
62
|
+
this.getCheckboxSelector(selector).addValue(key);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Returns the correct WebDriverIO element from the Checkbox Selector */
|
|
66
|
+
getCheckboxSelector(selector?: CheckboxSelector): WebdriverIO.Element {
|
|
67
|
+
if (selector == CheckboxSelector.Primary) {
|
|
68
|
+
return this._primaryComponent;
|
|
69
|
+
}
|
|
70
|
+
return this._primaryComponent;
|
|
71
|
+
}
|
|
72
|
+
|
|
54
73
|
/*****************************************/
|
|
55
74
|
/**************** Getters ****************/
|
|
56
75
|
/*****************************************/
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import NavigateAppPage from '../../common/NavigateAppPage.win';
|
|
2
|
-
import CheckboxPageObject from '../pages/CheckboxPageObject';
|
|
2
|
+
import CheckboxPageObject, { CheckboxSelector } from '../pages/CheckboxPageObject';
|
|
3
3
|
import { ComponentSelector } from '../../common/BasePage.win';
|
|
4
|
-
import {
|
|
5
|
-
CHECKBOX_TEST_COMPONENT_LABEL,
|
|
6
|
-
CHECKBOX_ACCESSIBILITY_LABEL,
|
|
7
|
-
CHECKBOX_TEST_COMPONENT,
|
|
8
|
-
} from '../../../FluentTester/TestComponents/Checkbox/consts';
|
|
4
|
+
import { CHECKBOX_TEST_COMPONENT_LABEL, CHECKBOX_ACCESSIBILITY_LABEL } from '../../../FluentTester/TestComponents/Checkbox/consts';
|
|
9
5
|
import { CHECKBOX_A11Y_ROLE, PAGE_TIMEOUT, BOOT_APP_TIMEOUT, Keys } from '../../common/consts';
|
|
10
6
|
|
|
11
7
|
describe('Checkbox Testing Initialization', () => {
|
|
@@ -77,7 +73,7 @@ describe('Checkbox Functional Testing', () => {
|
|
|
77
73
|
|
|
78
74
|
it('Click the "Spacebar" on a Checkbox and verify it toggles', () => {
|
|
79
75
|
/* Presses the "space bar" to select the Checkbox */
|
|
80
|
-
CheckboxPageObject.sendKey(
|
|
76
|
+
CheckboxPageObject.sendKey(CheckboxSelector.Primary, Keys.Spacebar);
|
|
81
77
|
CheckboxPageObject.waitForCheckboxChecked(PAGE_TIMEOUT);
|
|
82
78
|
|
|
83
79
|
/* Validate the Checkbox is selected */
|
|
@@ -2,10 +2,55 @@ import {
|
|
|
2
2
|
CONTEXTUALMENU_TESTPAGE,
|
|
3
3
|
CONTEXTUALMENU_TEST_COMPONENT,
|
|
4
4
|
HOMEPAGE_CONTEXTUALMENU_BUTTON,
|
|
5
|
+
CONTEXTUALMENUITEM_TEST_COMPONENT,
|
|
5
6
|
} from '../../../FluentTester/TestComponents/ContextualMenu/consts';
|
|
6
7
|
import { BasePage, By } from '../../common/BasePage.win';
|
|
7
8
|
|
|
9
|
+
/* This enum gives the spec file an EASY way to interact with SPECIFIC UI elements on the page.
|
|
10
|
+
* The spec file should import this enum and use it when wanting to interact with different elements on the page. */
|
|
11
|
+
export const enum ContextualMenuSelector {
|
|
12
|
+
ContextualMenu = 0, //this._primaryComponent
|
|
13
|
+
ContextualMenuItem, //this._contextualMenuItem
|
|
14
|
+
}
|
|
15
|
+
|
|
8
16
|
class ContextualMenuPageObject extends BasePage {
|
|
17
|
+
/******************************************************************/
|
|
18
|
+
/**************** UI Element Interaction Methods ******************/
|
|
19
|
+
/******************************************************************/
|
|
20
|
+
waitForContextualMenuItemsToOpen(timeout?: number): void {
|
|
21
|
+
browser.waitUntil(
|
|
22
|
+
() => {
|
|
23
|
+
return this.contextualMenuItemDisplayed();
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
timeout: timeout ?? this.waitForPageTimeout,
|
|
27
|
+
timeoutMsg: 'The Contextual Menu Items did not open.',
|
|
28
|
+
interval: 1000,
|
|
29
|
+
},
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Whether the contextual menu item is displayed or not. It should be displayed after clicking on the MenuButton */
|
|
34
|
+
contextualMenuItemDisplayed(): boolean {
|
|
35
|
+
return this._contextualMenuItem.isDisplayed();
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* Sends a Keyboarding command on a specific UI element */
|
|
39
|
+
sendKey(contextualMenuSelector: ContextualMenuSelector, key: string): void {
|
|
40
|
+
this.getContextualMenuSelector(contextualMenuSelector).addValue(key);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Returns the correct WebDriverIO element from the ContextualMenuSelector string */
|
|
44
|
+
getContextualMenuSelector(contextualMenuSelector?: ContextualMenuSelector): WebdriverIO.Element {
|
|
45
|
+
if (contextualMenuSelector == ContextualMenuSelector.ContextualMenu) {
|
|
46
|
+
return this._primaryComponent;
|
|
47
|
+
} else if (contextualMenuSelector == ContextualMenuSelector.ContextualMenuItem) {
|
|
48
|
+
return this._contextualMenuItem;
|
|
49
|
+
} else {
|
|
50
|
+
return this._primaryComponent;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
9
54
|
/*****************************************/
|
|
10
55
|
/**************** Getters ****************/
|
|
11
56
|
/*****************************************/
|
|
@@ -24,6 +69,10 @@ class ContextualMenuPageObject extends BasePage {
|
|
|
24
69
|
get _pageButton() {
|
|
25
70
|
return By(HOMEPAGE_CONTEXTUALMENU_BUTTON);
|
|
26
71
|
}
|
|
72
|
+
|
|
73
|
+
get _contextualMenuItem() {
|
|
74
|
+
return By(CONTEXTUALMENUITEM_TEST_COMPONENT);
|
|
75
|
+
}
|
|
27
76
|
}
|
|
28
77
|
|
|
29
78
|
export default new ContextualMenuPageObject();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import NavigateAppPage from '../../common/NavigateAppPage.win';
|
|
2
|
-
import ContextualMenuPageObjectObject from '../pages/ContextualMenuPageObject.win';
|
|
3
|
-
import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT } from '../../common/consts';
|
|
2
|
+
import ContextualMenuPageObjectObject, { ContextualMenuSelector } from '../pages/ContextualMenuPageObject.win';
|
|
3
|
+
import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT, Keys } from '../../common/consts';
|
|
4
4
|
|
|
5
5
|
// Before testing begins, allow up to 60 seconds for app to open
|
|
6
6
|
describe('ContextualMenu Testing Initialization', function () {
|
|
@@ -8,9 +8,7 @@ describe('ContextualMenu Testing Initialization', function () {
|
|
|
8
8
|
NavigateAppPage.waitForPageDisplayed(BOOT_APP_TIMEOUT);
|
|
9
9
|
expect(NavigateAppPage.isPageLoaded()).toBeTruthy();
|
|
10
10
|
});
|
|
11
|
-
});
|
|
12
11
|
|
|
13
|
-
describe('ContextualMenu Functional Tests', () => {
|
|
14
12
|
it('Click and navigate to ContextualMenu test page', () => {
|
|
15
13
|
/* Scroll to component test page button in scrollview if not already visible*/
|
|
16
14
|
ContextualMenuPageObjectObject.scrollToComponentButton();
|
|
@@ -23,3 +21,34 @@ describe('ContextualMenu Functional Tests', () => {
|
|
|
23
21
|
expect(ContextualMenuPageObjectObject.isPageLoaded()).toBeTruthy();
|
|
24
22
|
});
|
|
25
23
|
});
|
|
24
|
+
|
|
25
|
+
describe('ContextualMenu Functional Tests', () => {
|
|
26
|
+
/* Scrolls and waits for the ContextualMenu to be visible on the Test Page */
|
|
27
|
+
beforeEach(() => {
|
|
28
|
+
ContextualMenuPageObjectObject.scrollToTestElement();
|
|
29
|
+
ContextualMenuPageObjectObject.waitForPrimaryElementDisplayed(PAGE_TIMEOUT);
|
|
30
|
+
|
|
31
|
+
ContextualMenuPageObjectObject.sendKey(ContextualMenuSelector.ContextualMenu, Keys.Escape); // Reset ContextualMenu state for next test
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
it('Click on ContextualMenu Button and validate that the list of ContextualMenu Items open', () => {
|
|
35
|
+
/* Click on the ContextualMenu */
|
|
36
|
+
ContextualMenuPageObjectObject.clickComponent();
|
|
37
|
+
ContextualMenuPageObjectObject.waitForContextualMenuItemsToOpen(PAGE_TIMEOUT);
|
|
38
|
+
|
|
39
|
+
expect(ContextualMenuPageObjectObject.contextualMenuItemDisplayed()).toBeTruthy();
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it('Type "SpaceBar" to select the ContextualMenu and validate that the list of ContextualMenu Items open', () => {
|
|
43
|
+
/* Type a space on the ContextualMenu */
|
|
44
|
+
ContextualMenuPageObjectObject.sendKey(ContextualMenuSelector.ContextualMenu, Keys.Spacebar);
|
|
45
|
+
ContextualMenuPageObjectObject.waitForContextualMenuItemsToOpen(PAGE_TIMEOUT);
|
|
46
|
+
|
|
47
|
+
expect(ContextualMenuPageObjectObject.contextualMenuItemDisplayed()).toBeTruthy();
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
/* 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 */
|
|
51
|
+
afterAll(() => {
|
|
52
|
+
ContextualMenuPageObjectObject.sendKey(ContextualMenuSelector.ContextualMenu, Keys.Escape); // Reset ContextualMenu state for next test
|
|
53
|
+
});
|
|
54
|
+
});
|
|
@@ -3,10 +3,52 @@ import {
|
|
|
3
3
|
MENU_BUTTON_TEST_COMPONENT,
|
|
4
4
|
HOMEPAGE_MENU_BUTTON,
|
|
5
5
|
MENU_BUTTON_NO_A11Y_LABEL_COMPONENT,
|
|
6
|
+
MENU_ITEM_1_COMPONENT,
|
|
6
7
|
} from '../../../FluentTester/TestComponents/MenuButton/consts';
|
|
7
8
|
import { BasePage, By } from '../../common/BasePage.win';
|
|
8
9
|
|
|
10
|
+
export const enum MenuButtonSelector {
|
|
11
|
+
MenuButton = 0, // this._primarySelector
|
|
12
|
+
MenuItem1, // this._menuItem
|
|
13
|
+
}
|
|
14
|
+
|
|
9
15
|
class MenuButtonPageObject extends BasePage {
|
|
16
|
+
/******************************************************************/
|
|
17
|
+
/**************** UI Element Interaction Methods ******************/
|
|
18
|
+
/******************************************************************/
|
|
19
|
+
waitForMenuItemsToOpen(timeout?: number): void {
|
|
20
|
+
browser.waitUntil(
|
|
21
|
+
() => {
|
|
22
|
+
return this.menuItemDisplayed();
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
timeout: timeout ?? this.waitForPageTimeout,
|
|
26
|
+
timeoutMsg: 'The Menu Items did not open.',
|
|
27
|
+
interval: 1000,
|
|
28
|
+
},
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Whether the menu item is displayed or not. It should be displayed after clicking on the MenuButton */
|
|
33
|
+
menuItemDisplayed(): boolean {
|
|
34
|
+
return this._menuItem.isDisplayed();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Sends a Keyboarding command on a specific UI element */
|
|
38
|
+
sendKey(selector: MenuButtonSelector, key: string): void {
|
|
39
|
+
this.getMenuButtonSelector(selector).addValue(key);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Returns the correct WebDriverIO element from the MenuButton Selector */
|
|
43
|
+
getMenuButtonSelector(selector?: MenuButtonSelector): WebdriverIO.Element {
|
|
44
|
+
if (selector == MenuButtonSelector.MenuButton) {
|
|
45
|
+
return this._primaryComponent;
|
|
46
|
+
} else if (selector == MenuButtonSelector.MenuItem1) {
|
|
47
|
+
return this._menuItem;
|
|
48
|
+
}
|
|
49
|
+
return this._primaryComponent;
|
|
50
|
+
}
|
|
51
|
+
|
|
10
52
|
/*****************************************/
|
|
11
53
|
/**************** Getters ****************/
|
|
12
54
|
/*****************************************/
|
|
@@ -29,6 +71,10 @@ class MenuButtonPageObject extends BasePage {
|
|
|
29
71
|
get _pageButton() {
|
|
30
72
|
return By(HOMEPAGE_MENU_BUTTON);
|
|
31
73
|
}
|
|
74
|
+
|
|
75
|
+
get _menuItem() {
|
|
76
|
+
return By(MENU_ITEM_1_COMPONENT);
|
|
77
|
+
}
|
|
32
78
|
}
|
|
33
79
|
|
|
34
80
|
export default new MenuButtonPageObject();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import NavigateAppPage from '../../common/NavigateAppPage.win';
|
|
2
|
-
import MenuButtonPageObject from '../pages/MenuButtonPageObject.win';
|
|
3
|
-
import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT, MENUBUTTON_A11Y_ROLE } from '../../common/consts';
|
|
2
|
+
import MenuButtonPageObject, { MenuButtonSelector } from '../pages/MenuButtonPageObject.win';
|
|
3
|
+
import { PAGE_TIMEOUT, BOOT_APP_TIMEOUT, MENUBUTTON_A11Y_ROLE, Keys } from '../../common/consts';
|
|
4
4
|
import { MENU_BUTTON_ACCESSIBILITY_LABEL, MENU_BUTTON_TEST_COMPONENT_LABEL } from '../../../FluentTester/TestComponents/MenuButton/consts';
|
|
5
5
|
import { ComponentSelector } from '../../common/BasePage.win';
|
|
6
6
|
|
|
@@ -26,21 +26,52 @@ describe('MenuButton Testing Initialization', function () {
|
|
|
26
26
|
|
|
27
27
|
/* This will be re-enabled with a MenuButton Bug is fixed. Currently in PR - "Integrating accessibilityLabel functionality for MenuButton #1117" */
|
|
28
28
|
describe('MenuButton Accessibility Testing', () => {
|
|
29
|
-
|
|
29
|
+
/* Scrolls and waits for the MenuButton to be visible on the Test Page */
|
|
30
|
+
beforeEach(() => {
|
|
30
31
|
MenuButtonPageObject.scrollToTestElement();
|
|
31
32
|
MenuButtonPageObject.waitForPrimaryElementDisplayed(PAGE_TIMEOUT);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it('MenuButton - Validate accessibilityRole is correct', () => {
|
|
32
36
|
expect(MenuButtonPageObject.getAccessibilityRole()).toEqual(MENUBUTTON_A11Y_ROLE);
|
|
33
37
|
});
|
|
34
38
|
|
|
35
39
|
it('MenuButton - Set accessibilityLabel', () => {
|
|
36
|
-
MenuButtonPageObject.scrollToTestElement();
|
|
37
|
-
MenuButtonPageObject.waitForPrimaryElementDisplayed(PAGE_TIMEOUT);
|
|
38
40
|
expect(MenuButtonPageObject.getAccessibilityLabel(ComponentSelector.Primary)).toEqual(MENU_BUTTON_ACCESSIBILITY_LABEL);
|
|
39
41
|
});
|
|
40
42
|
|
|
41
43
|
it('Do not set accessibilityLabel -> Default to MenuButton label', () => {
|
|
44
|
+
expect(MenuButtonPageObject.getAccessibilityLabel(ComponentSelector.Secondary)).toEqual(MENU_BUTTON_TEST_COMPONENT_LABEL);
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
describe('MenuButton Functional Testing', () => {
|
|
49
|
+
/* Scrolls and waits for the MenuButton to be visible on the Test Page */
|
|
50
|
+
beforeEach(() => {
|
|
42
51
|
MenuButtonPageObject.scrollToTestElement();
|
|
43
52
|
MenuButtonPageObject.waitForPrimaryElementDisplayed(PAGE_TIMEOUT);
|
|
44
|
-
|
|
53
|
+
|
|
54
|
+
MenuButtonPageObject.sendKey(MenuButtonSelector.MenuButton, Keys.Escape); // Reset MenuButton state for next test
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it('Click on MenuButton and validate that the list of Menu Items open', () => {
|
|
58
|
+
/* Click on the MenuButton */
|
|
59
|
+
MenuButtonPageObject.clickComponent();
|
|
60
|
+
MenuButtonPageObject.waitForMenuItemsToOpen(PAGE_TIMEOUT);
|
|
61
|
+
|
|
62
|
+
expect(MenuButtonPageObject.menuItemDisplayed()).toBeTruthy();
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
it('Type "SpaceBar" to select the MenuButton and validate that the list of Menu Items open', () => {
|
|
66
|
+
/* Type a space on the MenuButton */
|
|
67
|
+
MenuButtonPageObject.sendKey(MenuButtonSelector.MenuButton, Keys.Spacebar);
|
|
68
|
+
MenuButtonPageObject.waitForMenuItemsToOpen(PAGE_TIMEOUT);
|
|
69
|
+
|
|
70
|
+
expect(MenuButtonPageObject.menuItemDisplayed()).toBeTruthy();
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
/* 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 */
|
|
74
|
+
afterAll(() => {
|
|
75
|
+
MenuButtonPageObject.sendKey(MenuButtonSelector.MenuButton, Keys.Escape);
|
|
45
76
|
});
|
|
46
77
|
});
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
RADIOGROUP_TESTPAGE,
|
|
3
3
|
RADIOGROUP_TEST_COMPONENT,
|
|
4
4
|
RADIOGROUP_NO_A11Y_LABEL_COMPONENT,
|
|
5
|
-
RADIOBUTTON_TEST_COMPONENT,
|
|
6
5
|
HOMEPAGE_RADIOGROUP_BUTTON,
|
|
7
|
-
|
|
6
|
+
FIRST_RADIO_BUTTON,
|
|
7
|
+
SECOND_RADIO_BUTTON,
|
|
8
8
|
} from '../../../FluentTester/TestComponents/RadioGroup/consts';
|
|
9
9
|
import { BasePage, By } from '../../common/BasePage.macos';
|
|
10
10
|
|
|
@@ -59,11 +59,11 @@ class RadioGroupPage extends BasePage {
|
|
|
59
59
|
/* RadioButton *
|
|
60
60
|
/**************/
|
|
61
61
|
get _radioButton() {
|
|
62
|
-
return By(
|
|
62
|
+
return By(FIRST_RADIO_BUTTON);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
get _secondRadioButton() {
|
|
66
|
-
return By(
|
|
66
|
+
return By(SECOND_RADIO_BUTTON);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|