@fluentui-react-native/tester 0.129.6 → 0.129.8
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 +280 -1
- package/CHANGELOG.md +57 -2
- package/lib/E2E/src/FocusZone/consts.d.ts +3 -2
- package/lib/E2E/src/FocusZone/consts.d.ts.map +1 -1
- package/lib/E2E/src/FocusZone/consts.js.map +1 -1
- package/lib/E2E/src/FocusZone/pages/FocusZonePageObject.d.ts +28 -0
- package/lib/E2E/src/FocusZone/pages/FocusZonePageObject.d.ts.map +1 -0
- package/lib/E2E/src/FocusZone/pages/FocusZonePageObject.js +189 -0
- package/lib/E2E/src/FocusZone/pages/FocusZonePageObject.js.map +1 -0
- package/lib/E2E/src/TabsV1/consts.d.ts +7 -2
- package/lib/E2E/src/TabsV1/consts.d.ts.map +1 -1
- package/lib/E2E/src/TabsV1/consts.js +7 -2
- package/lib/E2E/src/TabsV1/consts.js.map +1 -1
- package/lib/E2E/src/common/BasePage.d.ts +67 -0
- package/lib/E2E/src/common/BasePage.d.ts.map +1 -0
- package/lib/E2E/src/common/BasePage.js +654 -0
- package/lib/E2E/src/common/BasePage.js.map +1 -0
- package/lib/E2E/src/common/consts.d.ts.map +1 -1
- package/lib/E2E/src/common/consts.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Button/ButtonSizeTestSection.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Button/ButtonSizeTestSection.js +2 -1
- package/lib/fluent-tester/src/TestComponents/Button/ButtonSizeTestSection.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Button/ButtonTest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Button/ButtonTest.js +4 -2
- package/lib/fluent-tester/src/TestComponents/Button/ButtonTest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.d.ts +1 -2
- package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.js +1 -22
- package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.d.ts +2 -0
- package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.d.ts.map +1 -0
- package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.js +2 -0
- package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.js.map +1 -0
- package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.d.ts +3 -0
- package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.d.ts.map +1 -0
- package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.js +23 -0
- package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.js.map +1 -0
- package/lib/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.d.ts +1 -1
- package/lib/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.js +5 -5
- package/lib/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/TabsV1/TabsV1E2ETest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/TabsV1/TabsV1E2ETest.js +7 -7
- package/lib/fluent-tester/src/TestComponents/TabsV1/TabsV1E2ETest.js.map +1 -1
- package/lib-commonjs/E2E/src/FocusZone/consts.d.ts +3 -2
- package/lib-commonjs/E2E/src/FocusZone/consts.d.ts.map +1 -1
- package/lib-commonjs/E2E/src/FocusZone/consts.js.map +1 -1
- package/lib-commonjs/E2E/src/FocusZone/pages/FocusZonePageObject.d.ts +28 -0
- package/lib-commonjs/E2E/src/FocusZone/pages/FocusZonePageObject.d.ts.map +1 -0
- package/lib-commonjs/E2E/src/FocusZone/pages/FocusZonePageObject.js +191 -0
- package/lib-commonjs/E2E/src/FocusZone/pages/FocusZonePageObject.js.map +1 -0
- package/lib-commonjs/E2E/src/TabsV1/consts.d.ts +7 -2
- package/lib-commonjs/E2E/src/TabsV1/consts.d.ts.map +1 -1
- package/lib-commonjs/E2E/src/TabsV1/consts.js +8 -3
- package/lib-commonjs/E2E/src/TabsV1/consts.js.map +1 -1
- package/lib-commonjs/E2E/src/common/BasePage.d.ts +67 -0
- package/lib-commonjs/E2E/src/common/BasePage.d.ts.map +1 -0
- package/lib-commonjs/E2E/src/common/BasePage.js +658 -0
- package/lib-commonjs/E2E/src/common/BasePage.js.map +1 -0
- package/lib-commonjs/E2E/src/common/consts.d.ts.map +1 -1
- package/lib-commonjs/E2E/src/common/consts.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonSizeTestSection.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonSizeTestSection.js +2 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonSizeTestSection.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonTest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonTest.js +4 -2
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonTest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.d.ts +1 -2
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.js +2 -24
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.d.ts +2 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.d.ts.map +1 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.js +6 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.js.map +1 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.d.ts +3 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.d.ts.map +1 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.js +28 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.js.map +1 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.d.ts +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 +14 -14
- package/lib-commonjs/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/TabsV1/TabsV1E2ETest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/TabsV1/TabsV1E2ETest.js +6 -6
- package/lib-commonjs/fluent-tester/src/TestComponents/TabsV1/TabsV1E2ETest.js.map +1 -1
- package/package.json +33 -33
- package/src/TestComponents/Button/ButtonSizeTestSection.tsx +3 -1
- package/src/TestComponents/Button/ButtonTest.tsx +4 -2
- package/src/TestComponents/Button/ButtonVariantTestSection.android.tsx +1 -45
- package/src/TestComponents/Button/ButtonVariantTestSection.ios.tsx +1 -0
- package/src/TestComponents/Button/ButtonVariantTestSection.mobile.tsx +45 -0
- package/src/TestComponents/FocusZone/FocusZoneE2ETest.tsx +15 -14
- package/src/TestComponents/TabsV1/TabsV1E2ETest.tsx +14 -9
- package/tsconfig.json +2 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Button, FAB } from '@fluentui-react-native/experimental-button';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
import { commonTestStyles, testContentRootViewStyle } from '../Common/styles';
|
|
5
|
+
import { iconProps } from '../Common/iconExamples';
|
|
6
|
+
|
|
7
|
+
export const ButtonVariantTest: React.FunctionComponent = () => {
|
|
8
|
+
const [showFABText, setShowFABText] = React.useState(true);
|
|
9
|
+
const flipFABcontent = React.useCallback(() => setShowFABText(!showFABText), [showFABText]);
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<View style={testContentRootViewStyle}>
|
|
13
|
+
<Button style={commonTestStyles.vmargin}>Default</Button>
|
|
14
|
+
<Button disabled style={commonTestStyles.vmargin}>
|
|
15
|
+
Default Disabled
|
|
16
|
+
</Button>
|
|
17
|
+
<Button appearance="accent" style={commonTestStyles.vmargin}>
|
|
18
|
+
Accent
|
|
19
|
+
</Button>
|
|
20
|
+
<Button disabled appearance="accent" style={commonTestStyles.vmargin}>
|
|
21
|
+
Accent Disabled
|
|
22
|
+
</Button>
|
|
23
|
+
<Button appearance="outline" style={commonTestStyles.vmargin}>
|
|
24
|
+
Outline
|
|
25
|
+
</Button>
|
|
26
|
+
<Button appearance="outline" disabled style={commonTestStyles.vmargin}>
|
|
27
|
+
Outline Disabled
|
|
28
|
+
</Button>
|
|
29
|
+
<Button appearance="subtle" style={commonTestStyles.vmargin}>
|
|
30
|
+
Subtle
|
|
31
|
+
</Button>
|
|
32
|
+
<Button appearance="subtle" disabled style={commonTestStyles.vmargin}>
|
|
33
|
+
Subtle Disabled
|
|
34
|
+
</Button>
|
|
35
|
+
<FAB icon={iconProps} iconOnly disabled style={commonTestStyles.vmargin} />
|
|
36
|
+
<FAB icon={iconProps} style={commonTestStyles.vmargin} showContent={showFABText} onClick={flipFABcontent}>
|
|
37
|
+
Click Me!
|
|
38
|
+
</FAB>
|
|
39
|
+
<FAB appearance="subtle" iconOnly disabled icon={iconProps} style={commonTestStyles.vmargin} />
|
|
40
|
+
<FAB appearance="subtle" icon={iconProps} style={commonTestStyles.vmargin} showContent={showFABText} onClick={flipFABcontent}>
|
|
41
|
+
Click Me!
|
|
42
|
+
</FAB>
|
|
43
|
+
</View>
|
|
44
|
+
);
|
|
45
|
+
};
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import type { FocusZoneDirection } from '@fluentui/react-native';
|
|
4
|
-
import { FocusZone, MenuButton, Text } from '@fluentui/react-native';
|
|
5
|
-
import { Switch } from '@fluentui-react-native/switch';
|
|
6
1
|
import type { ButtonProps } from '@fluentui-react-native/button';
|
|
7
2
|
import { ButtonV1 as Button } from '@fluentui-react-native/button';
|
|
8
|
-
import {
|
|
3
|
+
import { Switch } from '@fluentui-react-native/switch';
|
|
4
|
+
import type { FocusZoneDirection } from '@fluentui/react-native';
|
|
5
|
+
import { FocusZone, MenuButton, Text } from '@fluentui/react-native';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { View } from 'react-native';
|
|
9
8
|
import {
|
|
10
|
-
FOCUSZONE_TEST_COMPONENT,
|
|
11
|
-
FOCUSZONE_DIRECTION_ID,
|
|
12
|
-
FOCUSZONE_TWO_DIM_SWITCH,
|
|
13
|
-
FOCUSZONE_DISABLED_SWITCH,
|
|
14
9
|
FOCUSZONE_CIRCLE_NAV_SWITCH,
|
|
15
10
|
FOCUSZONE_DEFAULT_TABBABLE_SWITCH,
|
|
16
|
-
|
|
11
|
+
FOCUSZONE_DIRECTION_ID,
|
|
12
|
+
FOCUSZONE_DIRECTION_PICKER,
|
|
13
|
+
FOCUSZONE_DISABLED_SWITCH,
|
|
17
14
|
FOCUSZONE_GRID_AFTER,
|
|
15
|
+
FOCUSZONE_GRID_BEFORE,
|
|
18
16
|
FOCUSZONE_GRID_BUTTON,
|
|
19
|
-
|
|
17
|
+
FOCUSZONE_TEST_COMPONENT,
|
|
18
|
+
FOCUSZONE_TWO_DIM_SWITCH,
|
|
20
19
|
} from '../../../../E2E/src/FocusZone/consts';
|
|
21
|
-
import {
|
|
20
|
+
import type { GridButton as GridButtonIndex } from '../../../../E2E/src/FocusZone/pages/FocusZonePageObject';
|
|
21
|
+
import { commonTestStyles } from '../Common/styles';
|
|
22
22
|
import { testProps } from '../Common/TestProps';
|
|
23
|
+
import { focusZoneTestStyles, GridButton } from './styles';
|
|
23
24
|
|
|
24
25
|
export const FocusZoneDirections: FocusZoneDirection[] = ['bidirectional', 'horizontal', 'vertical', 'none'];
|
|
25
26
|
|
|
@@ -68,7 +69,7 @@ export const GridOfButtons: React.FunctionComponent<GridOfButtonsProps> = (props
|
|
|
68
69
|
style={focusZoneTestStyles.focusZoneButton}
|
|
69
70
|
componentRef={gridIndex === props.tabbableIdx ? props.tabRef : undefined}
|
|
70
71
|
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
71
|
-
{...testProps(props.e2etesting ? FOCUSZONE_GRID_BUTTON(gridIndex) : undefined)}
|
|
72
|
+
{...testProps(props.e2etesting ? FOCUSZONE_GRID_BUTTON(gridIndex as GridButtonIndex) : undefined)}
|
|
72
73
|
>
|
|
73
74
|
<Text>{gridIndex}</Text>
|
|
74
75
|
</GridButton>
|
|
@@ -8,8 +8,13 @@ import {
|
|
|
8
8
|
TABSV1_ACCESSIBILITY_LABEL,
|
|
9
9
|
TABSV1_NO_A11Y_LABEL_COMPONENT,
|
|
10
10
|
TABSV1_TEST_COMPONENT_LABEL,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
TABSITEMV1_ITEM_1,
|
|
12
|
+
TABSITEMV1_ITEM_2,
|
|
13
|
+
TABSITEMV1_ITEM_3,
|
|
14
|
+
TABSITEMV1_CONTENT_1,
|
|
15
|
+
TABSITEMV1_CONTENT_2,
|
|
16
|
+
TABSITEMV1_CONTENT_3,
|
|
17
|
+
TABSITEMV1_ITEM_1_ACCESSIBILITY_LABEL,
|
|
13
18
|
TABSITEMV1_NO_A11Y_LABEL_COMPONENT,
|
|
14
19
|
TABSITEMV1_TEST_COMPONENT_LABEL,
|
|
15
20
|
} from '../../../../E2E/src/TabsV1/consts';
|
|
@@ -28,17 +33,17 @@ export const TabsV1E2ETest: React.FunctionComponent = () => {
|
|
|
28
33
|
<TabsItem
|
|
29
34
|
headerText="Home"
|
|
30
35
|
itemKey="A"
|
|
31
|
-
accessibilityLabel={
|
|
36
|
+
accessibilityLabel={TABSITEMV1_ITEM_1_ACCESSIBILITY_LABEL}
|
|
32
37
|
/* For Android E2E testing purposes, testProps must be passed in after accessibilityLabel. */
|
|
33
|
-
{...testProps(
|
|
38
|
+
{...testProps(TABSITEMV1_ITEM_1)}
|
|
34
39
|
>
|
|
35
|
-
<Text>Tabs #1</Text>
|
|
40
|
+
<Text {...testProps(TABSITEMV1_CONTENT_1)}>Tabs #1</Text>
|
|
36
41
|
</TabsItem>
|
|
37
|
-
<TabsItem headerText="Files" itemKey="B">
|
|
38
|
-
<Text>Tabs #2</Text>
|
|
42
|
+
<TabsItem headerText="Files" itemKey="B" {...testProps(TABSITEMV1_ITEM_2)}>
|
|
43
|
+
<Text {...testProps(TABSITEMV1_CONTENT_2)}>Tabs #2</Text>
|
|
39
44
|
</TabsItem>
|
|
40
|
-
<TabsItem headerText="Settings" itemKey="C">
|
|
41
|
-
<Text>Tabs #3</Text>
|
|
45
|
+
<TabsItem headerText="Settings" itemKey="C" {...testProps(TABSITEMV1_ITEM_3)}>
|
|
46
|
+
<Text {...testProps(TABSITEMV1_CONTENT_3)}>Tabs #3</Text>
|
|
42
47
|
</TabsItem>
|
|
43
48
|
</Tabs>
|
|
44
49
|
</View>
|