@fluentui-react-native/tester 0.126.11 → 0.126.13
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 +31 -1
- package/CHANGELOG.md +18 -2
- package/lib/fluent-tester/src/FluentTester.d.ts.map +1 -1
- package/lib/fluent-tester/src/FluentTester.js +8 -9
- package/lib/fluent-tester/src/FluentTester.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Avatar/E2EAvatarTest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Avatar/E2EAvatarTest.js +4 -2
- package/lib/fluent-tester/src/TestComponents/Avatar/E2EAvatarTest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Badge/E2EBadgeTest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Badge/E2EBadgeTest.js +8 -2
- package/lib/fluent-tester/src/TestComponents/Badge/E2EBadgeTest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Button/E2EButtonTest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Button/E2EButtonTest.js +10 -7
- package/lib/fluent-tester/src/TestComponents/Button/E2EButtonTest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Button/deprecated/E2EButtonTest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Button/deprecated/E2EButtonTest.js +7 -3
- package/lib/fluent-tester/src/TestComponents/Button/deprecated/E2EButtonTest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Callout/CalloutE2ETest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Callout/CalloutE2ETest.js +3 -2
- package/lib/fluent-tester/src/TestComponents/Callout/CalloutE2ETest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Checkbox/CheckboxE2ETest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Checkbox/CheckboxE2ETest.js +5 -3
- package/lib/fluent-tester/src/TestComponents/Checkbox/CheckboxE2ETest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/CheckboxExperimental/E2ECheckboxExperimentalTest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/CheckboxExperimental/E2ECheckboxExperimentalTest.js +7 -3
- package/lib/fluent-tester/src/TestComponents/CheckboxExperimental/E2ECheckboxExperimentalTest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.js +2 -1
- package/lib/fluent-tester/src/TestComponents/Common/MenuPicker.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Common/TestProps.d.ts +19 -0
- package/lib/fluent-tester/src/TestComponents/Common/TestProps.d.ts.map +1 -0
- package/lib/fluent-tester/src/TestComponents/Common/TestProps.js +23 -0
- package/lib/fluent-tester/src/TestComponents/Common/TestProps.js.map +1 -0
- package/lib/fluent-tester/src/TestComponents/ContextualMenu/E2EContextualMenuTest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/ContextualMenu/E2EContextualMenuTest.js +4 -2
- package/lib/fluent-tester/src/TestComponents/ContextualMenu/E2EContextualMenuTest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.js +17 -10
- package/lib/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Link/E2ELinkTest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Link/E2ELinkTest.js +4 -2
- package/lib/fluent-tester/src/TestComponents/Link/E2ELinkTest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/LinkExperimental/E2ELinkTest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/LinkExperimental/E2ELinkTest.js +4 -2
- package/lib/fluent-tester/src/TestComponents/LinkExperimental/E2ELinkTest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Menu/E2EMenuTest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Menu/E2EMenuTest.js +19 -9
- package/lib/fluent-tester/src/TestComponents/Menu/E2EMenuTest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/MenuButton/MenuButtonE2ETest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/MenuButton/MenuButtonE2ETest.js +3 -2
- package/lib/fluent-tester/src/TestComponents/MenuButton/MenuButtonE2ETest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/MenuButtonExperimental/ExperimentalMenuButtonE2ETest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/MenuButtonExperimental/ExperimentalMenuButtonE2ETest.js +3 -2
- package/lib/fluent-tester/src/TestComponents/MenuButtonExperimental/ExperimentalMenuButtonE2ETest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/RadioGroup/RadioGroupE2ETest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/RadioGroup/RadioGroupE2ETest.js +8 -6
- package/lib/fluent-tester/src/TestComponents/RadioGroup/RadioGroupE2ETest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.js +9 -7
- package/lib/fluent-tester/src/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Shimmer/ShimmerE2ETest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Shimmer/ShimmerE2ETest.js +3 -1
- package/lib/fluent-tester/src/TestComponents/Shimmer/ShimmerE2ETest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Switch/E2ESwitchTest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Switch/E2ESwitchTest.js +6 -3
- package/lib/fluent-tester/src/TestComponents/Switch/E2ESwitchTest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Tabs/TabsE2ETest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Tabs/TabsE2ETest.js +16 -8
- package/lib/fluent-tester/src/TestComponents/Tabs/TabsE2ETest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/TabsExperimental/TabsExperimentalE2ETest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/TabsExperimental/TabsExperimentalE2ETest.js +6 -4
- package/lib/fluent-tester/src/TestComponents/TabsExperimental/TabsExperimentalE2ETest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Test.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Test.js +6 -2
- package/lib/fluent-tester/src/TestComponents/Test.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Text/StandardUsage.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Text/StandardUsage.js +1 -2
- package/lib/fluent-tester/src/TestComponents/Text/StandardUsage.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Text/TextE2ETest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Text/TextE2ETest.js +6 -4
- package/lib/fluent-tester/src/TestComponents/Text/TextE2ETest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Text/TextTest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Text/TextTest.js +2 -0
- package/lib/fluent-tester/src/TestComponents/Text/TextTest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/TextExperimental/ExperimentalTextE2ETest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/TextExperimental/ExperimentalTextE2ETest.js +4 -2
- package/lib/fluent-tester/src/TestComponents/TextExperimental/ExperimentalTextE2ETest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/TextExperimental/StandardUsage.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/TextExperimental/StandardUsage.js +3 -1
- package/lib/fluent-tester/src/TestComponents/TextExperimental/StandardUsage.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Theme/ThemeTest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Theme/ThemeTest.js +2 -1
- package/lib/fluent-tester/src/TestComponents/Theme/ThemeTest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Tokens/TokenTest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Tokens/TokenTest.js +3 -1
- package/lib/fluent-tester/src/TestComponents/Tokens/TokenTest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/FluentTester.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/FluentTester.js +8 -9
- package/lib-commonjs/fluent-tester/src/FluentTester.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Avatar/E2EAvatarTest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Avatar/E2EAvatarTest.js +3 -2
- package/lib-commonjs/fluent-tester/src/TestComponents/Avatar/E2EAvatarTest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Badge/E2EBadgeTest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Badge/E2EBadgeTest.js +7 -2
- package/lib-commonjs/fluent-tester/src/TestComponents/Badge/E2EBadgeTest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/E2EButtonTest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/E2EButtonTest.js +10 -7
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/E2EButtonTest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/deprecated/E2EButtonTest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/deprecated/E2EButtonTest.js +6 -3
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/deprecated/E2EButtonTest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Callout/CalloutE2ETest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Callout/CalloutE2ETest.js +3 -2
- package/lib-commonjs/fluent-tester/src/TestComponents/Callout/CalloutE2ETest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Checkbox/CheckboxE2ETest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Checkbox/CheckboxE2ETest.js +4 -3
- package/lib-commonjs/fluent-tester/src/TestComponents/Checkbox/CheckboxE2ETest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/CheckboxExperimental/E2ECheckboxExperimentalTest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/CheckboxExperimental/E2ECheckboxExperimentalTest.js +6 -3
- package/lib-commonjs/fluent-tester/src/TestComponents/CheckboxExperimental/E2ECheckboxExperimentalTest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.js +2 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/MenuPicker.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/TestProps.d.ts +19 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/TestProps.d.ts.map +1 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/TestProps.js +27 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/TestProps.js.map +1 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/ContextualMenu/E2EContextualMenuTest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/ContextualMenu/E2EContextualMenuTest.js +3 -2
- package/lib-commonjs/fluent-tester/src/TestComponents/ContextualMenu/E2EContextualMenuTest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.js +17 -10
- package/lib-commonjs/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Link/E2ELinkTest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Link/E2ELinkTest.js +3 -2
- package/lib-commonjs/fluent-tester/src/TestComponents/Link/E2ELinkTest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/LinkExperimental/E2ELinkTest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/LinkExperimental/E2ELinkTest.js +3 -2
- package/lib-commonjs/fluent-tester/src/TestComponents/LinkExperimental/E2ELinkTest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Menu/E2EMenuTest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Menu/E2EMenuTest.js +18 -9
- package/lib-commonjs/fluent-tester/src/TestComponents/Menu/E2EMenuTest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/MenuButton/MenuButtonE2ETest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/MenuButton/MenuButtonE2ETest.js +3 -2
- package/lib-commonjs/fluent-tester/src/TestComponents/MenuButton/MenuButtonE2ETest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/MenuButtonExperimental/ExperimentalMenuButtonE2ETest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/MenuButtonExperimental/ExperimentalMenuButtonE2ETest.js +3 -2
- package/lib-commonjs/fluent-tester/src/TestComponents/MenuButtonExperimental/ExperimentalMenuButtonE2ETest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/RadioGroup/RadioGroupE2ETest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/RadioGroup/RadioGroupE2ETest.js +7 -6
- package/lib-commonjs/fluent-tester/src/TestComponents/RadioGroup/RadioGroupE2ETest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.js +8 -7
- package/lib-commonjs/fluent-tester/src/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Shimmer/ShimmerE2ETest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Shimmer/ShimmerE2ETest.js +2 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Shimmer/ShimmerE2ETest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Switch/E2ESwitchTest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Switch/E2ESwitchTest.js +6 -3
- package/lib-commonjs/fluent-tester/src/TestComponents/Switch/E2ESwitchTest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Tabs/TabsE2ETest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Tabs/TabsE2ETest.js +15 -8
- package/lib-commonjs/fluent-tester/src/TestComponents/Tabs/TabsE2ETest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/TabsExperimental/TabsExperimentalE2ETest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/TabsExperimental/TabsExperimentalE2ETest.js +5 -4
- package/lib-commonjs/fluent-tester/src/TestComponents/TabsExperimental/TabsExperimentalE2ETest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Test.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Test.js +5 -2
- package/lib-commonjs/fluent-tester/src/TestComponents/Test.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Text/StandardUsage.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Text/StandardUsage.js +1 -2
- package/lib-commonjs/fluent-tester/src/TestComponents/Text/StandardUsage.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Text/TextE2ETest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Text/TextE2ETest.js +5 -4
- package/lib-commonjs/fluent-tester/src/TestComponents/Text/TextE2ETest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Text/TextTest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Text/TextTest.js +2 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Text/TextTest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/TextExperimental/ExperimentalTextE2ETest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/TextExperimental/ExperimentalTextE2ETest.js +3 -2
- package/lib-commonjs/fluent-tester/src/TestComponents/TextExperimental/ExperimentalTextE2ETest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/TextExperimental/StandardUsage.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/TextExperimental/StandardUsage.js +2 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/TextExperimental/StandardUsage.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Theme/ThemeTest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Theme/ThemeTest.js +2 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Theme/ThemeTest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Tokens/TokenTest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Tokens/TokenTest.js +2 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Tokens/TokenTest.js.map +1 -1
- package/package.json +2 -2
- package/src/FluentTester.tsx +23 -8
- package/src/TestComponents/Avatar/E2EAvatarTest.tsx +9 -2
- package/src/TestComponents/Badge/E2EBadgeTest.tsx +15 -2
- package/src/TestComponents/Button/E2EButtonTest.tsx +30 -6
- package/src/TestComponents/Button/deprecated/E2EButtonTest.tsx +17 -3
- package/src/TestComponents/Callout/CalloutE2ETest.tsx +8 -2
- package/src/TestComponents/Checkbox/CheckboxE2ETest.tsx +15 -3
- package/src/TestComponents/CheckboxExperimental/E2ECheckboxExperimentalTest.tsx +16 -3
- package/src/TestComponents/Common/MenuPicker.tsx +9 -2
- package/src/TestComponents/Common/TestProps.tsx +23 -0
- package/src/TestComponents/ContextualMenu/E2EContextualMenuTest.tsx +13 -2
- package/src/TestComponents/FocusZone/FocusZoneE2ETest.tsx +38 -9
- package/src/TestComponents/Link/E2ELinkTest.tsx +10 -2
- package/src/TestComponents/LinkExperimental/E2ELinkTest.tsx +8 -2
- package/src/TestComponents/Menu/E2EMenuTest.tsx +52 -9
- package/src/TestComponents/MenuButton/MenuButtonE2ETest.tsx +5 -2
- package/src/TestComponents/MenuButtonExperimental/ExperimentalMenuButtonE2ETest.tsx +5 -2
- package/src/TestComponents/RadioGroup/RadioGroupE2ETest.tsx +29 -6
- package/src/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.tsx +41 -7
- package/src/TestComponents/Shimmer/ShimmerE2ETest.tsx +3 -1
- package/src/TestComponents/Switch/E2ESwitchTest.tsx +21 -3
- package/src/TestComponents/Tabs/TabsE2ETest.tsx +49 -8
- package/src/TestComponents/TabsExperimental/TabsExperimentalE2ETest.tsx +16 -4
- package/src/TestComponents/Test.tsx +12 -2
- package/src/TestComponents/Text/StandardUsage.tsx +1 -4
- package/src/TestComponents/Text/TextE2ETest.tsx +19 -4
- package/src/TestComponents/Text/TextTest.tsx +2 -0
- package/src/TestComponents/TextExperimental/ExperimentalTextE2ETest.tsx +8 -2
- package/src/TestComponents/TextExperimental/StandardUsage.tsx +6 -1
- package/src/TestComponents/Theme/ThemeTest.tsx +2 -1
- package/src/TestComponents/Tokens/TokenTest.tsx +6 -1
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
FOCUSZONE_DIRECTION_PICKER,
|
|
18
18
|
} from '../../../../E2E/src/FocusZone/consts';
|
|
19
19
|
import { focusZoneTestStyles, GridButton } from './styles';
|
|
20
|
+
import { testProps } from '../Common/TestProps';
|
|
20
21
|
|
|
21
22
|
export const FocusZoneDirections: FocusZoneDirection[] = ['bidirectional', 'horizontal', 'vertical', 'none'];
|
|
22
23
|
|
|
@@ -28,9 +29,17 @@ export const FocusZoneListWrapper: React.FunctionComponent<FocusZoneListWrapperP
|
|
|
28
29
|
const buttonProps: ButtonProps = { children: 'Click to Focus', style: focusZoneTestStyles.listWrapperButton };
|
|
29
30
|
return (
|
|
30
31
|
<>
|
|
31
|
-
<Button
|
|
32
|
+
<Button
|
|
33
|
+
{...buttonProps}
|
|
34
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
35
|
+
{...testProps(beforeID)}
|
|
36
|
+
/>
|
|
32
37
|
{children}
|
|
33
|
-
<Button
|
|
38
|
+
<Button
|
|
39
|
+
{...buttonProps}
|
|
40
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
41
|
+
{...testProps(afterID)}
|
|
42
|
+
/>
|
|
34
43
|
</>
|
|
35
44
|
);
|
|
36
45
|
};
|
|
@@ -53,10 +62,11 @@ export const GridOfButtons: React.FunctionComponent<GridOfButtonsProps> = (props
|
|
|
53
62
|
const gridIndex = heightIndex * props.gridWidth + widthIndex + 1;
|
|
54
63
|
return (
|
|
55
64
|
<GridButton
|
|
56
|
-
testID={props.e2etesting ? FOCUSZONE_GRID_BUTTON(gridIndex) : undefined}
|
|
57
65
|
key={widthIndex}
|
|
58
66
|
style={focusZoneTestStyles.focusZoneButton}
|
|
59
67
|
componentRef={gridIndex === props.tabbableIdx ? props.tabRef : undefined}
|
|
68
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
69
|
+
{...testProps(props.e2etesting ? FOCUSZONE_GRID_BUTTON(gridIndex) : undefined)}
|
|
60
70
|
>
|
|
61
71
|
<Text>{gridIndex}</Text>
|
|
62
72
|
</GridButton>
|
|
@@ -81,11 +91,14 @@ export const FocusZone2D: React.FunctionComponent = () => {
|
|
|
81
91
|
return (
|
|
82
92
|
<View style={commonTestStyles.root}>
|
|
83
93
|
<View style={commonTestStyles.settings}>
|
|
84
|
-
<Text
|
|
94
|
+
<Text
|
|
95
|
+
variant="subheaderSemibold"
|
|
96
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
97
|
+
{...testProps(FOCUSZONE_TEST_COMPONENT)}
|
|
98
|
+
>
|
|
85
99
|
FocusZone Direction
|
|
86
100
|
</Text>
|
|
87
101
|
<MenuButton
|
|
88
|
-
testID={FOCUSZONE_DIRECTION_PICKER}
|
|
89
102
|
content={`Current direction: ${direction}`}
|
|
90
103
|
menuItems={FocusZoneDirections.map((dir) => ({
|
|
91
104
|
itemKey: dir,
|
|
@@ -93,20 +106,36 @@ export const FocusZone2D: React.FunctionComponent = () => {
|
|
|
93
106
|
testID: FOCUSZONE_DIRECTION_ID(dir),
|
|
94
107
|
}))}
|
|
95
108
|
onItemClick={(dir) => setDirection(dir as FocusZoneDirection)}
|
|
109
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
110
|
+
{...testProps(FOCUSZONE_DIRECTION_PICKER)}
|
|
111
|
+
/>
|
|
112
|
+
<Switch
|
|
113
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
114
|
+
{...testProps(FOCUSZONE_TWO_DIM_SWITCH)}
|
|
115
|
+
label="2D Navigation"
|
|
116
|
+
checked={is2DNav}
|
|
117
|
+
onChange={(_, checked) => set2dNav(checked)}
|
|
118
|
+
/>
|
|
119
|
+
<Switch
|
|
120
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
121
|
+
{...testProps(FOCUSZONE_DISABLED_SWITCH)}
|
|
122
|
+
label="Disabled"
|
|
123
|
+
checked={isDisabled}
|
|
124
|
+
onChange={(_, checked) => setDisabled(checked)}
|
|
96
125
|
/>
|
|
97
|
-
<Switch testID={FOCUSZONE_TWO_DIM_SWITCH} label="2D Navigation" checked={is2DNav} onChange={(_, checked) => set2dNav(checked)} />
|
|
98
|
-
<Switch testID={FOCUSZONE_DISABLED_SWITCH} label="Disabled" checked={isDisabled} onChange={(_, checked) => setDisabled(checked)} />
|
|
99
126
|
<Switch
|
|
100
|
-
|
|
127
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
128
|
+
{...testProps(FOCUSZONE_CIRCLE_NAV_SWITCH)}
|
|
101
129
|
label="Circular Navigation"
|
|
102
130
|
checked={isCircularNav}
|
|
103
131
|
onChange={(_, checked) => setIsCircularNav(checked)}
|
|
104
132
|
/>
|
|
105
133
|
<Switch
|
|
106
|
-
testID={FOCUSZONE_DEFAULT_TABBABLE_SWITCH}
|
|
107
134
|
label="Use Default Tabbable Element"
|
|
108
135
|
checked={useDeffaultTabbableElement}
|
|
109
136
|
onChange={(_, checked) => setUseDeffaultTabbableElement(checked)}
|
|
137
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
138
|
+
{...testProps(FOCUSZONE_DEFAULT_TABBABLE_SWITCH)}
|
|
110
139
|
/>
|
|
111
140
|
</View>
|
|
112
141
|
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
LINK_NO_A11Y_LABEL_COMPONENT,
|
|
10
10
|
LINK_TEST_COMPONENT_LABEL,
|
|
11
11
|
} from '../../../../E2E/src/Link/consts';
|
|
12
|
+
import { testProps } from '../Common/TestProps';
|
|
12
13
|
|
|
13
14
|
export const LinkE2ETest: React.FunctionComponent = () => {
|
|
14
15
|
const doPress = (): void => {
|
|
@@ -20,10 +21,17 @@ export const LinkE2ETest: React.FunctionComponent = () => {
|
|
|
20
21
|
<Link
|
|
21
22
|
url="https://www.bing.com/"
|
|
22
23
|
content="Link with Accessibility Label."
|
|
23
|
-
testID={LINK_TEST_COMPONENT}
|
|
24
24
|
accessibilityLabel={LINK_ACCESSIBILITY_LABEL}
|
|
25
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
26
|
+
{...testProps(LINK_TEST_COMPONENT)}
|
|
27
|
+
/>
|
|
28
|
+
<Link
|
|
29
|
+
url="https://www.bing.com/"
|
|
30
|
+
onPress={doPress}
|
|
31
|
+
content={LINK_TEST_COMPONENT_LABEL}
|
|
32
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
33
|
+
{...testProps(LINK_NO_A11Y_LABEL_COMPONENT)}
|
|
25
34
|
/>
|
|
26
|
-
<Link url="https://www.bing.com/" onPress={doPress} content={LINK_TEST_COMPONENT_LABEL} testID={LINK_NO_A11Y_LABEL_COMPONENT} />
|
|
27
35
|
</Stack>
|
|
28
36
|
);
|
|
29
37
|
};
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
EXPERIMENTAL_LINK_NO_A11Y_LABEL_COMPONENT,
|
|
10
10
|
EXPERIMENTAL_LINK_TEST_COMPONENT_LABEL,
|
|
11
11
|
} from '../../../../E2E/src/LinkExperimental/consts';
|
|
12
|
+
import { testProps } from '../Common/TestProps';
|
|
12
13
|
|
|
13
14
|
export const LinkE2ETest: React.FunctionComponent = () => {
|
|
14
15
|
const doPress = (): void => {
|
|
@@ -19,12 +20,17 @@ export const LinkE2ETest: React.FunctionComponent = () => {
|
|
|
19
20
|
<Stack style={stackStyle}>
|
|
20
21
|
<Link
|
|
21
22
|
url="https://www.bing.com/"
|
|
22
|
-
testID={EXPERIMENTAL_LINK_TEST_COMPONENT}
|
|
23
23
|
accessibilityLabel={EXPERIMENTAL_LINK_ACCESSIBILITY_LABEL}
|
|
24
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
25
|
+
{...testProps(EXPERIMENTAL_LINK_TEST_COMPONENT)}
|
|
24
26
|
>
|
|
25
27
|
Link with Accessibility Label
|
|
26
28
|
</Link>
|
|
27
|
-
<Link
|
|
29
|
+
<Link
|
|
30
|
+
onPress={doPress}
|
|
31
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
32
|
+
{...testProps(EXPERIMENTAL_LINK_NO_A11Y_LABEL_COMPONENT)}
|
|
33
|
+
>
|
|
28
34
|
{EXPERIMENTAL_LINK_TEST_COMPONENT_LABEL}
|
|
29
35
|
</Link>
|
|
30
36
|
</Stack>
|
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
MENUITEM_DISABLED_COMPONENT,
|
|
20
20
|
MENUITEM_CALLBACK_LABEL,
|
|
21
21
|
} from '../../../../E2E/src/Menu/consts';
|
|
22
|
+
import { testProps } from '../Common/TestProps';
|
|
22
23
|
|
|
23
24
|
export const E2EMenuTest: React.FunctionComponent = () => {
|
|
24
25
|
const [menuOpened, setMenuOpened] = React.useState(false);
|
|
@@ -42,34 +43,76 @@ export const E2EMenuTest: React.FunctionComponent = () => {
|
|
|
42
43
|
return (
|
|
43
44
|
<Stack style={stackStyle}>
|
|
44
45
|
<View style={{ flexDirection: 'row' }}>
|
|
45
|
-
{menuOpened ?
|
|
46
|
-
|
|
46
|
+
{menuOpened ? (
|
|
47
|
+
<Text /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */ {...testProps(MENU_ON_OPEN)}>
|
|
48
|
+
Menu opened
|
|
49
|
+
</Text>
|
|
50
|
+
) : (
|
|
51
|
+
<Text /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */ {...testProps(MENU_ON_CLOSE)}>
|
|
52
|
+
Menu closed
|
|
53
|
+
</Text>
|
|
54
|
+
)}
|
|
55
|
+
<Button
|
|
56
|
+
onClick={onResetClick}
|
|
57
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */ {...testProps(
|
|
58
|
+
MENU_CALLBACK_RESET_BUTTON,
|
|
59
|
+
)}
|
|
60
|
+
>
|
|
47
61
|
Reset Item Callback
|
|
48
62
|
</Button>
|
|
49
63
|
<Menu open={menuOpened} onOpenChange={onOpenChange}>
|
|
50
64
|
<MenuTrigger>
|
|
51
|
-
<Button
|
|
65
|
+
<Button
|
|
66
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
67
|
+
{...testProps(MENUTRIGGER_TEST_COMPONENT)}
|
|
68
|
+
>
|
|
69
|
+
Test
|
|
70
|
+
</Button>
|
|
52
71
|
</MenuTrigger>
|
|
53
|
-
<MenuPopover
|
|
72
|
+
<MenuPopover
|
|
73
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
74
|
+
{...testProps(MENUPOPOVER_TEST_COMPONENT)}
|
|
75
|
+
>
|
|
54
76
|
<MenuList>
|
|
55
77
|
<MenuItem
|
|
56
78
|
onClick={onItemClick}
|
|
57
|
-
testID={MENUITEM_TEST_COMPONENT}
|
|
58
79
|
accessibilityLabel={MENUITEM_ACCESSIBILITY_LABEL}
|
|
59
80
|
persistOnClick
|
|
81
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
82
|
+
{...testProps(MENUITEM_TEST_COMPONENT)}
|
|
60
83
|
>
|
|
61
84
|
A plain MenuItem
|
|
62
85
|
</MenuItem>
|
|
63
|
-
<MenuItem
|
|
86
|
+
<MenuItem
|
|
87
|
+
onClick={onItemClick}
|
|
88
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
89
|
+
{...testProps(MENUITEM_DISABLED_COMPONENT)}
|
|
90
|
+
disabled
|
|
91
|
+
persistOnClick
|
|
92
|
+
>
|
|
64
93
|
A second disabled plain MenuItem
|
|
65
94
|
</MenuItem>
|
|
66
|
-
<MenuItem
|
|
67
|
-
|
|
95
|
+
<MenuItem
|
|
96
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
97
|
+
{...testProps(MENUITEM_NO_A11Y_LABEL_COMPONENT)}
|
|
98
|
+
>
|
|
99
|
+
{MENUITEM_TEST_LABEL}
|
|
100
|
+
</MenuItem>
|
|
101
|
+
<MenuItem
|
|
102
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
103
|
+
{...testProps(MENUITEM_FOURTH_COMPONENT)}
|
|
104
|
+
>
|
|
105
|
+
A fourth plain MenuItem
|
|
106
|
+
</MenuItem>
|
|
68
107
|
</MenuList>
|
|
69
108
|
</MenuPopover>
|
|
70
109
|
</Menu>
|
|
71
110
|
</View>
|
|
72
|
-
<Text
|
|
111
|
+
<Text
|
|
112
|
+
style={{ marginVertical: 4 }}
|
|
113
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
114
|
+
{...testProps(MENUITEM_CALLBACK_LABEL)}
|
|
115
|
+
>
|
|
73
116
|
{`onClick fired ${numOnClickCalls} times`}
|
|
74
117
|
</Text>
|
|
75
118
|
</Stack>
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
MENU_BUTTON_NO_A11Y_LABEL_COMPONENT,
|
|
10
10
|
MENU_BUTTON_TEST_COMPONENT_LABEL,
|
|
11
11
|
} from '../../../../E2E/src/MenuButton/consts';
|
|
12
|
+
import { testProps } from '../Common/TestProps';
|
|
12
13
|
|
|
13
14
|
export const E2ETestMenuButton: React.FunctionComponent = () => {
|
|
14
15
|
const [lastMenuItemClicked, setLastMenuItemClicked] = React.useState(null);
|
|
@@ -41,8 +42,9 @@ export const E2ETestMenuButton: React.FunctionComponent = () => {
|
|
|
41
42
|
menuItems={menuItems}
|
|
42
43
|
onItemClick={onItemClick}
|
|
43
44
|
contextualMenu={contextualMenuProps}
|
|
44
|
-
testID={MENU_BUTTON_TEST_COMPONENT}
|
|
45
45
|
accessibilityLabel={MENU_BUTTON_ACCESSIBILITY_LABEL}
|
|
46
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
47
|
+
{...testProps(MENU_BUTTON_TEST_COMPONENT)}
|
|
46
48
|
/>
|
|
47
49
|
</View>
|
|
48
50
|
</View>
|
|
@@ -53,7 +55,8 @@ export const E2ETestMenuButton: React.FunctionComponent = () => {
|
|
|
53
55
|
menuItems={menuItems}
|
|
54
56
|
onItemClick={onItemClick}
|
|
55
57
|
contextualMenu={contextualMenuProps}
|
|
56
|
-
|
|
58
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
59
|
+
{...testProps(MENU_BUTTON_NO_A11Y_LABEL_COMPONENT)}
|
|
57
60
|
/>
|
|
58
61
|
</View>
|
|
59
62
|
</View>
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
EXPERIMENTAL_MENU_BUTTON_NO_A11Y_LABEL_COMPONENT,
|
|
11
11
|
EXPERIMENTAL_MENU_BUTTON_TEST_COMPONENT_LABEL,
|
|
12
12
|
} from '../../../../E2E/src/MenuButtonExperimental/consts';
|
|
13
|
+
import { testProps } from '../Common/TestProps';
|
|
13
14
|
|
|
14
15
|
export const E2ETestExperimentalMenuButton: React.FunctionComponent = () => {
|
|
15
16
|
const [lastMenuItemClicked, setLastMenuItemClicked] = React.useState(null);
|
|
@@ -42,8 +43,9 @@ export const E2ETestExperimentalMenuButton: React.FunctionComponent = () => {
|
|
|
42
43
|
menuItems={menuItems}
|
|
43
44
|
onItemClick={onItemClick}
|
|
44
45
|
contextualMenu={contextualMenuProps}
|
|
45
|
-
testID={EXPERIMENTAL_MENU_BUTTON_TEST_COMPONENT}
|
|
46
46
|
accessibilityLabel={EXPERIMENTAL_MENU_BUTTON_ACCESSIBILITY_LABEL}
|
|
47
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
48
|
+
{...testProps(EXPERIMENTAL_MENU_BUTTON_TEST_COMPONENT)}
|
|
47
49
|
/>
|
|
48
50
|
</View>
|
|
49
51
|
</View>
|
|
@@ -54,7 +56,8 @@ export const E2ETestExperimentalMenuButton: React.FunctionComponent = () => {
|
|
|
54
56
|
menuItems={menuItems}
|
|
55
57
|
onItemClick={onItemClick}
|
|
56
58
|
contextualMenu={contextualMenuProps}
|
|
57
|
-
|
|
59
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
60
|
+
{...testProps(EXPERIMENTAL_MENU_BUTTON_NO_A11Y_LABEL_COMPONENT)}
|
|
58
61
|
/>
|
|
59
62
|
</View>
|
|
60
63
|
</View>
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
} from '../../../../E2E/src/RadioGroup/consts';
|
|
16
16
|
import { Stack } from '@fluentui-react-native/stack';
|
|
17
17
|
import { stackStyle } from '../Common/styles';
|
|
18
|
+
import { testProps } from '../Common/TestProps';
|
|
18
19
|
|
|
19
20
|
export const E2ERadioGroupTest: React.FunctionComponent = () => {
|
|
20
21
|
return (
|
|
@@ -23,19 +24,41 @@ export const E2ERadioGroupTest: React.FunctionComponent = () => {
|
|
|
23
24
|
<RadioGroup
|
|
24
25
|
label="RadioGroup for E2E Testing - Ally Label Set"
|
|
25
26
|
accessibilityLabel={RADIOGROUP_ACCESSIBILITY_LABEL}
|
|
26
|
-
|
|
27
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
28
|
+
{...testProps(RADIOGROUP_TEST_COMPONENT)}
|
|
27
29
|
>
|
|
28
30
|
<RadioButton
|
|
29
31
|
content="Option A"
|
|
30
32
|
buttonKey="A"
|
|
31
|
-
testID={FIRST_RADIO_BUTTON}
|
|
32
33
|
accessibilityLabel={FIRST_RADIO_BUTTON_ACCESSIBILITY_LABEL}
|
|
34
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
35
|
+
{...testProps(FIRST_RADIO_BUTTON)}
|
|
36
|
+
/>
|
|
37
|
+
<RadioButton
|
|
38
|
+
content={SECOND_RADIO_BUTTON_LABEL}
|
|
39
|
+
buttonKey="B"
|
|
40
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
41
|
+
{...testProps(SECOND_RADIO_BUTTON)}
|
|
42
|
+
/>
|
|
43
|
+
<RadioButton
|
|
44
|
+
content="Option C (disabled)"
|
|
45
|
+
buttonKey="C"
|
|
46
|
+
disabled={true}
|
|
47
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
48
|
+
{...testProps(THIRD_RADIO_BUTTON)}
|
|
49
|
+
/>
|
|
50
|
+
<RadioButton
|
|
51
|
+
content="Option D"
|
|
52
|
+
buttonKey="C"
|
|
53
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
54
|
+
{...testProps(FOURTH_RADIO_BUTTON)}
|
|
33
55
|
/>
|
|
34
|
-
<RadioButton content={SECOND_RADIO_BUTTON_LABEL} buttonKey="B" testID={SECOND_RADIO_BUTTON} />
|
|
35
|
-
<RadioButton content="Option C (disabled)" buttonKey="C" disabled={true} testID={THIRD_RADIO_BUTTON} />
|
|
36
|
-
<RadioButton content="Option D" buttonKey="C" testID={FOURTH_RADIO_BUTTON} />
|
|
37
56
|
</RadioGroup>
|
|
38
|
-
<RadioGroup
|
|
57
|
+
<RadioGroup
|
|
58
|
+
label={RADIOGROUP_TEST_COMPONENT_LABEL}
|
|
59
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
60
|
+
{...testProps(RADIOGROUP_NO_A11Y_LABEL_COMPONENT)}
|
|
61
|
+
>
|
|
39
62
|
<RadioButton content="Option W" buttonKey="W" />
|
|
40
63
|
<RadioButton content="Option X" buttonKey="X" />
|
|
41
64
|
<RadioButton content="Option Y (disabled)" buttonKey="C" disabled={true} />
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
} from '../../../../E2E/src/RadioGroupExperimental/consts';
|
|
17
17
|
import { Stack } from '@fluentui-react-native/stack';
|
|
18
18
|
import { stackStyle } from '../Common/styles';
|
|
19
|
+
import { testProps } from '../Common/TestProps';
|
|
19
20
|
|
|
20
21
|
export const E2ERadioGroupExperimentalTest: React.FunctionComponent = () => {
|
|
21
22
|
return (
|
|
@@ -24,15 +25,48 @@ export const E2ERadioGroupExperimentalTest: React.FunctionComponent = () => {
|
|
|
24
25
|
<RadioGroup
|
|
25
26
|
label="RadioGroup for E2E Testing - Ally Label Set"
|
|
26
27
|
accessibilityLabel={EXPERIMENTAL_RADIOGROUP_ACCESSIBILITY_LABEL}
|
|
27
|
-
|
|
28
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
29
|
+
{...testProps(EXPERIMENTAL_RADIOGROUP_TEST_COMPONENT)}
|
|
28
30
|
>
|
|
29
|
-
<Radio
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
<Radio
|
|
32
|
+
label="Option A"
|
|
33
|
+
value="A"
|
|
34
|
+
accessibilityLabel={FIRST_RADIO_ACCESSIBILITY_LABEL}
|
|
35
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
36
|
+
{...testProps(FIRST_RADIO)}
|
|
37
|
+
/>
|
|
38
|
+
<Radio
|
|
39
|
+
label={SECOND_RADIO_LABEL}
|
|
40
|
+
value="B"
|
|
41
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
42
|
+
{...testProps(SECOND_RADIO)}
|
|
43
|
+
/>
|
|
44
|
+
<Radio
|
|
45
|
+
label="Option C (disabled)"
|
|
46
|
+
value="C"
|
|
47
|
+
disabled={true}
|
|
48
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
49
|
+
{...testProps(THIRD_RADIO)}
|
|
50
|
+
/>
|
|
51
|
+
<Radio
|
|
52
|
+
label="Option D"
|
|
53
|
+
value="C"
|
|
54
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
55
|
+
{...testProps(FOURTH_RADIO)}
|
|
56
|
+
/>
|
|
33
57
|
</RadioGroup>
|
|
34
|
-
<RadioGroup
|
|
35
|
-
|
|
58
|
+
<RadioGroup
|
|
59
|
+
label={
|
|
60
|
+
EXPERIMENTAL_RADIOGROUP_TEST_COMPONENT_LABEL
|
|
61
|
+
} /* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
62
|
+
{...testProps(EXPERIMENTAL_RADIOGROUP_NO_A11Y_LABEL_COMPONENT)}
|
|
63
|
+
>
|
|
64
|
+
<Radio
|
|
65
|
+
label="Option W"
|
|
66
|
+
value="W"
|
|
67
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
68
|
+
{...testProps(FIFTH_RADIO)}
|
|
69
|
+
/>
|
|
36
70
|
<Radio label="Option X" value="X" />
|
|
37
71
|
<Radio label="Option Y (disabled)" value="C" disabled={true} />
|
|
38
72
|
<Radio label="Option Z" value="Z" />
|
|
@@ -4,16 +4,18 @@ import { Stack } from '@fluentui-react-native/stack';
|
|
|
4
4
|
import { stackStyle } from '../Common/styles';
|
|
5
5
|
import { shimmerRectsAndRect } from './ShimmerTestElementSets';
|
|
6
6
|
import { SHIMMER_TEST_COMPONENT } from '../../../../E2E/src/Shimmer/consts';
|
|
7
|
+
import { testProps } from '../Common/TestProps';
|
|
7
8
|
|
|
8
9
|
export const E2ETestingShimmer: React.FunctionComponent<Record<string, never>> = () => {
|
|
9
10
|
return (
|
|
10
11
|
<Stack style={stackStyle}>
|
|
11
12
|
<Shimmer
|
|
12
|
-
testID={SHIMMER_TEST_COMPONENT}
|
|
13
13
|
elements={shimmerRectsAndRect()}
|
|
14
14
|
duration={2000}
|
|
15
15
|
delay={1000}
|
|
16
16
|
style={{ width: 300, height: 100 }}
|
|
17
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
18
|
+
{...testProps(SHIMMER_TEST_COMPONENT)}
|
|
17
19
|
/>
|
|
18
20
|
</Stack>
|
|
19
21
|
);
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
SWITCH_ON_PRESS,
|
|
12
12
|
} from '../../../../E2E/src/Switch/consts';
|
|
13
13
|
import { Platform } from 'react-native';
|
|
14
|
+
import { testProps } from '../Common/TestProps';
|
|
14
15
|
|
|
15
16
|
export const E2ESwitchTest: React.FunctionComponent = () => {
|
|
16
17
|
const [switchPressed, setSwitchSwitchPressed] = React.useState(false);
|
|
@@ -29,9 +30,26 @@ export const E2ESwitchTest: React.FunctionComponent = () => {
|
|
|
29
30
|
|
|
30
31
|
return (
|
|
31
32
|
<Stack style={memoizedStyles}>
|
|
32
|
-
<Switch
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
<Switch
|
|
34
|
+
label={'Switch Test'}
|
|
35
|
+
onChange={onToggle}
|
|
36
|
+
accessibilityLabel={SWITCH_ACCESSIBILITY_LABEL}
|
|
37
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
38
|
+
{...testProps(SWITCH_TEST_COMPONENT)}
|
|
39
|
+
/>
|
|
40
|
+
{switchPressed ? (
|
|
41
|
+
<TextV1
|
|
42
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
43
|
+
{...testProps(SWITCH_ON_PRESS)}
|
|
44
|
+
>
|
|
45
|
+
Switch Toggled On
|
|
46
|
+
</TextV1>
|
|
47
|
+
) : null}
|
|
48
|
+
<Switch
|
|
49
|
+
label={SWITCH_TEST_COMPONENT_LABEL}
|
|
50
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
51
|
+
{...testProps(SWITCH_NO_A11Y_LABEL_COMPONENT)}
|
|
52
|
+
/>
|
|
35
53
|
</Stack>
|
|
36
54
|
);
|
|
37
55
|
};
|
|
@@ -16,25 +16,66 @@ import {
|
|
|
16
16
|
THIRD_TABS_ITEM_CONTENT,
|
|
17
17
|
FIRST_TABS_ITEM_CONTENT,
|
|
18
18
|
} from '../../../../E2E/src/Tabs/consts';
|
|
19
|
+
import { testProps } from '../Common/TestProps';
|
|
19
20
|
|
|
20
21
|
export const E2ETabsTest: React.FunctionComponent = () => {
|
|
21
22
|
return (
|
|
22
23
|
<View>
|
|
23
24
|
<View style={stackStyle}>
|
|
24
|
-
<Tabs
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
<Tabs
|
|
26
|
+
label="Tabs"
|
|
27
|
+
accessibilityLabel={TABS_ACCESSIBILITY_LABEL}
|
|
28
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
29
|
+
{...testProps(TABS_TEST_COMPONENT)}
|
|
30
|
+
>
|
|
31
|
+
<TabsItem
|
|
32
|
+
headerText="Home"
|
|
33
|
+
itemKey="A"
|
|
34
|
+
accessibilityLabel={FIRST_TABS_ITEM_ACCESSIBILITY_LABEL}
|
|
35
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
36
|
+
{...testProps(FIRST_TABS_ITEM)}
|
|
37
|
+
>
|
|
38
|
+
<Text
|
|
39
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
40
|
+
{...testProps(FIRST_TABS_ITEM_CONTENT)}
|
|
41
|
+
>
|
|
42
|
+
Tabs #1
|
|
43
|
+
</Text>
|
|
27
44
|
</TabsItem>
|
|
28
|
-
<TabsItem
|
|
29
|
-
|
|
45
|
+
<TabsItem
|
|
46
|
+
headerText="Files"
|
|
47
|
+
itemKey="B"
|
|
48
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
49
|
+
{...testProps(SECOND_TABS_ITEM)}
|
|
50
|
+
>
|
|
51
|
+
<Text
|
|
52
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
53
|
+
{...testProps(SECOND_TABS_ITEM_CONTENT)}
|
|
54
|
+
>
|
|
55
|
+
Tabs #2
|
|
56
|
+
</Text>
|
|
30
57
|
</TabsItem>
|
|
31
|
-
<TabsItem
|
|
32
|
-
|
|
58
|
+
<TabsItem
|
|
59
|
+
headerText={THIRD_TABS_ITEM_LABEL}
|
|
60
|
+
itemKey="C"
|
|
61
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
62
|
+
{...testProps(THIRD_TABS_ITEM)}
|
|
63
|
+
>
|
|
64
|
+
<Text
|
|
65
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
66
|
+
{...testProps(THIRD_TABS_ITEM_CONTENT)}
|
|
67
|
+
>
|
|
68
|
+
Tabs #3
|
|
69
|
+
</Text>
|
|
33
70
|
</TabsItem>
|
|
34
71
|
</Tabs>
|
|
35
72
|
</View>
|
|
36
73
|
<View style={stackStyle}>
|
|
37
|
-
<Tabs
|
|
74
|
+
<Tabs
|
|
75
|
+
label={TABS_TEST_COMPONENT_LABEL}
|
|
76
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
77
|
+
{...testProps(TABS_NO_A11Y_LABEL_COMPONENT)}
|
|
78
|
+
>
|
|
38
79
|
<TabsItem headerText="Home" itemKey="A">
|
|
39
80
|
<Text>Tabs #1</Text>
|
|
40
81
|
</TabsItem>
|
|
@@ -13,17 +13,24 @@ import {
|
|
|
13
13
|
EXPERIMENTAL_TABS_ITEM_NO_A11Y_LABEL_COMPONENT,
|
|
14
14
|
EXPERIMENTAL_TABS_ITEM_TEST_COMPONENT_LABEL,
|
|
15
15
|
} from '../../../../E2E/src/TabsExperimental/consts';
|
|
16
|
+
import { testProps } from '../Common/TestProps';
|
|
16
17
|
|
|
17
18
|
export const E2ETestExperimentalTabs: React.FunctionComponent = () => {
|
|
18
19
|
return (
|
|
19
20
|
<View>
|
|
20
21
|
<View style={stackStyle}>
|
|
21
|
-
<Tabs
|
|
22
|
+
<Tabs
|
|
23
|
+
label="Tabs"
|
|
24
|
+
accessibilityLabel={EXPERIMENTAL_TABS_ACCESSIBILITY_LABEL}
|
|
25
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
26
|
+
{...testProps(EXPERIMENTAL_TABS_TEST_COMPONENT)}
|
|
27
|
+
>
|
|
22
28
|
<TabsItem
|
|
23
29
|
headerText="Home"
|
|
24
30
|
itemKey="A"
|
|
25
|
-
testID={EXPERIMENTAL_TABS_ITEM_TEST_COMPONENT}
|
|
26
31
|
accessibilityLabel={EXPERIMENTAL_TABS_ITEM_ACCESSIBILITY_LABEL}
|
|
32
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
33
|
+
{...testProps(EXPERIMENTAL_TABS_ITEM_TEST_COMPONENT)}
|
|
27
34
|
>
|
|
28
35
|
<Text>Tabs #1</Text>
|
|
29
36
|
</TabsItem>
|
|
@@ -36,11 +43,16 @@ export const E2ETestExperimentalTabs: React.FunctionComponent = () => {
|
|
|
36
43
|
</Tabs>
|
|
37
44
|
</View>
|
|
38
45
|
<View style={stackStyle}>
|
|
39
|
-
<Tabs
|
|
46
|
+
<Tabs
|
|
47
|
+
label={EXPERIMENTAL_TABS_TEST_COMPONENT_LABEL}
|
|
48
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
49
|
+
{...testProps(EXPERIMENTAL_TABS_NO_A11Y_LABEL_COMPONENT)}
|
|
50
|
+
>
|
|
40
51
|
<TabsItem
|
|
41
52
|
headerText={EXPERIMENTAL_TABS_ITEM_TEST_COMPONENT_LABEL}
|
|
42
53
|
itemKey="A"
|
|
43
|
-
|
|
54
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
55
|
+
{...testProps(EXPERIMENTAL_TABS_ITEM_NO_A11Y_LABEL_COMPONENT)}
|
|
44
56
|
>
|
|
45
57
|
<Text>Tabs #1</Text>
|
|
46
58
|
</TabsItem>
|
|
@@ -7,6 +7,7 @@ import { useTheme } from '@fluentui-react-native/theme-types';
|
|
|
7
7
|
import Svg, { G, Path, SvgProps } from 'react-native-svg';
|
|
8
8
|
import { SvgIconProps } from '@fluentui-react-native/icon';
|
|
9
9
|
import { Button } from '@fluentui-react-native/experimental-button';
|
|
10
|
+
import { testProps } from './Common/TestProps';
|
|
10
11
|
|
|
11
12
|
export type TestSection = {
|
|
12
13
|
name: string;
|
|
@@ -119,7 +120,11 @@ export const Test = (props: TestProps): React.ReactElement<Record<string, never>
|
|
|
119
120
|
<Text style={styles.name} variant="heroSemibold">
|
|
120
121
|
{props.name}
|
|
121
122
|
</Text>
|
|
122
|
-
<Button
|
|
123
|
+
<Button
|
|
124
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
125
|
+
{...testProps('Focus_Button')}
|
|
126
|
+
style={styles.e2eFocusButton}
|
|
127
|
+
>
|
|
123
128
|
E2E Testing Button
|
|
124
129
|
</Button>
|
|
125
130
|
{props.spec && <Link url={props.spec} content="SPEC" />}
|
|
@@ -172,7 +177,12 @@ export const Test = (props: TestProps): React.ReactElement<Record<string, never>
|
|
|
172
177
|
const TestComponent = section.component;
|
|
173
178
|
return (
|
|
174
179
|
<View key={index}>
|
|
175
|
-
<Text
|
|
180
|
+
<Text
|
|
181
|
+
style={styles.section}
|
|
182
|
+
variant="headerSemibold"
|
|
183
|
+
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
184
|
+
{...testProps(section.testID)}
|
|
185
|
+
>
|
|
176
186
|
{section.name}
|
|
177
187
|
</Text>
|
|
178
188
|
<Separator />
|