@fluentui-react-native/tester 0.138.0 → 0.140.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 +177 -1
- package/CHANGELOG.md +45 -2
- package/assets/dismissIcon.svg +3 -0
- package/assets/filledIcon.svg +3 -0
- package/assets/outlineIcon.svg +3 -0
- package/lib/E2E/src/Input/consts.d.ts +6 -0
- package/lib/E2E/src/Input/consts.d.ts.map +1 -0
- package/lib/E2E/src/Input/consts.js +8 -0
- package/lib/E2E/src/Input/consts.js.map +1 -0
- package/lib/E2E/src/index.consts.d.ts +1 -0
- package/lib/E2E/src/index.consts.d.ts.map +1 -1
- package/lib/E2E/src/index.consts.js +1 -0
- package/lib/E2E/src/index.consts.js.map +1 -1
- package/lib/fluent-tester/src/FluentTester.d.ts.map +1 -1
- package/lib/fluent-tester/src/FluentTester.js +2 -1
- package/lib/fluent-tester/src/FluentTester.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Input/InputDefault.d.ts +7 -0
- package/lib/fluent-tester/src/TestComponents/Input/InputDefault.d.ts.map +1 -0
- package/lib/fluent-tester/src/TestComponents/Input/InputDefault.js +26 -0
- package/lib/fluent-tester/src/TestComponents/Input/InputDefault.js.map +1 -0
- package/lib/fluent-tester/src/TestComponents/Input/InputTest.d.ts +3 -0
- package/lib/fluent-tester/src/TestComponents/Input/InputTest.d.ts.map +1 -0
- package/lib/fluent-tester/src/TestComponents/Input/InputTest.js +23 -0
- package/lib/fluent-tester/src/TestComponents/Input/InputTest.js.map +1 -0
- package/lib/fluent-tester/src/TestComponents/Input/index.d.ts +2 -0
- package/lib/fluent-tester/src/TestComponents/Input/index.d.ts.map +1 -0
- package/lib/fluent-tester/src/TestComponents/Input/index.js +2 -0
- package/lib/fluent-tester/src/TestComponents/Input/index.js.map +1 -0
- package/lib/fluent-tester/src/TestComponents/Spinner/SpinnerTest.win32.d.ts +3 -0
- package/lib/fluent-tester/src/TestComponents/Spinner/SpinnerTest.win32.d.ts.map +1 -0
- package/lib/fluent-tester/src/TestComponents/Spinner/SpinnerTest.win32.js +68 -0
- package/lib/fluent-tester/src/TestComponents/Spinner/SpinnerTest.win32.js.map +1 -0
- package/lib/fluent-tester/src/testPages.d.ts.map +1 -1
- package/lib/fluent-tester/src/testPages.js +8 -1
- package/lib/fluent-tester/src/testPages.js.map +1 -1
- package/lib-commonjs/E2E/src/Input/consts.d.ts +6 -0
- package/lib-commonjs/E2E/src/Input/consts.d.ts.map +1 -0
- package/lib-commonjs/E2E/src/Input/consts.js +11 -0
- package/lib-commonjs/E2E/src/Input/consts.js.map +1 -0
- package/lib-commonjs/E2E/src/index.consts.d.ts +1 -0
- package/lib-commonjs/E2E/src/index.consts.d.ts.map +1 -1
- package/lib-commonjs/E2E/src/index.consts.js +1 -0
- package/lib-commonjs/E2E/src/index.consts.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/FluentTester.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/FluentTester.js +2 -1
- package/lib-commonjs/fluent-tester/src/FluentTester.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Input/InputDefault.d.ts +7 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Input/InputDefault.d.ts.map +1 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Input/InputDefault.js +31 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Input/InputDefault.js.map +1 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Input/InputTest.d.ts +3 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Input/InputTest.d.ts.map +1 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Input/InputTest.js +28 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Input/InputTest.js.map +1 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Input/index.d.ts +2 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Input/index.d.ts.map +1 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Input/index.js +5 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Input/index.js.map +1 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Spinner/SpinnerTest.win32.d.ts +3 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Spinner/SpinnerTest.win32.d.ts.map +1 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Spinner/SpinnerTest.win32.js +73 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Spinner/SpinnerTest.win32.js.map +1 -0
- package/lib-commonjs/fluent-tester/src/testPages.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/testPages.js +8 -1
- package/lib-commonjs/fluent-tester/src/testPages.js.map +1 -1
- package/package.json +28 -25
- package/src/FluentTester.tsx +1 -0
- package/src/TestComponents/Input/InputDefault.tsx +44 -0
- package/src/TestComponents/Input/InputTest.tsx +28 -0
- package/src/TestComponents/Input/index.ts +1 -0
- package/src/TestComponents/Spinner/SpinnerTest.win32.tsx +92 -0
- package/src/testPages.ts +8 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
import { InputDefault } from './InputDefault';
|
|
4
|
+
import { INPUT_TESTPAGE } from '../../../../E2E/src/Input/consts';
|
|
5
|
+
import type { TestSection, PlatformStatus } from '../Test';
|
|
6
|
+
import { Test } from '../Test';
|
|
7
|
+
|
|
8
|
+
const inputSections: TestSection[] = [
|
|
9
|
+
{
|
|
10
|
+
name: 'Input Page',
|
|
11
|
+
testID: INPUT_TESTPAGE,
|
|
12
|
+
component: InputDefault,
|
|
13
|
+
},
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
export const InputTest: React.FunctionComponent = () => {
|
|
17
|
+
const status: PlatformStatus = {
|
|
18
|
+
win32Status: 'Backlog',
|
|
19
|
+
uwpStatus: 'Backlog',
|
|
20
|
+
iosStatus: 'Backlog',
|
|
21
|
+
macosStatus: 'Backlog',
|
|
22
|
+
androidStatus: 'Experimental',
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const description = 'Input allows the user to enter and edit text.';
|
|
26
|
+
|
|
27
|
+
return <Test name="Input Test" description={description} sections={inputSections} status={status}></Test>;
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InputTest';
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View /*Switch */ } from 'react-native';
|
|
3
|
+
|
|
4
|
+
//import type { SpinnerStatus } from '@fluentui-react-native/spinner';
|
|
5
|
+
import { Spinner } from '@fluentui-react-native/spinner';
|
|
6
|
+
import { Stack } from '@fluentui-react-native/stack';
|
|
7
|
+
import { TextV1 as Text } from '@fluentui-react-native/text';
|
|
8
|
+
|
|
9
|
+
import { E2ETestingSpinner } from './SpinnerE2ETest';
|
|
10
|
+
import { SPINNER_TESTPAGE } from '../../../../E2E/src/Spinner/consts';
|
|
11
|
+
import { stackStyle, commonTestStyles as commonStyles } from '../Common/styles';
|
|
12
|
+
import type { TestSection, PlatformStatus } from '../Test';
|
|
13
|
+
import { Test } from '../Test';
|
|
14
|
+
|
|
15
|
+
const BasicSpinnerTest: React.FunctionComponent = () => {
|
|
16
|
+
return (
|
|
17
|
+
<Stack style={stackStyle}>
|
|
18
|
+
<View style={commonStyles.root}>
|
|
19
|
+
<View style={commonStyles.settings}></View>
|
|
20
|
+
<Spinner />
|
|
21
|
+
</View>
|
|
22
|
+
</Stack>
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const SpinnerSizeTest: React.FunctionComponent = () => {
|
|
27
|
+
return (
|
|
28
|
+
<Stack style={stackStyle}>
|
|
29
|
+
<View>
|
|
30
|
+
<View>
|
|
31
|
+
<Text>tiny</Text>
|
|
32
|
+
<Spinner size="tiny" />
|
|
33
|
+
</View>
|
|
34
|
+
<View>
|
|
35
|
+
<Text>x-small</Text>
|
|
36
|
+
<Spinner size="x-small" />
|
|
37
|
+
</View>
|
|
38
|
+
<View>
|
|
39
|
+
<Text>small</Text>
|
|
40
|
+
<Spinner size="small" />
|
|
41
|
+
</View>
|
|
42
|
+
<View>
|
|
43
|
+
<Text>medium</Text>
|
|
44
|
+
<Spinner size="medium" />
|
|
45
|
+
</View>
|
|
46
|
+
<View>
|
|
47
|
+
<Text>large</Text>
|
|
48
|
+
<Spinner size="large" />
|
|
49
|
+
</View>
|
|
50
|
+
<View>
|
|
51
|
+
<Text>x-large</Text>
|
|
52
|
+
<Spinner size="x-large" />
|
|
53
|
+
</View>
|
|
54
|
+
<View>
|
|
55
|
+
<Text>huge</Text>
|
|
56
|
+
<Spinner size="huge" />
|
|
57
|
+
</View>
|
|
58
|
+
</View>
|
|
59
|
+
</Stack>
|
|
60
|
+
);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
const spinnerSections: TestSection[] = [
|
|
64
|
+
{
|
|
65
|
+
name: 'Basic Spinner Test',
|
|
66
|
+
testID: SPINNER_TESTPAGE,
|
|
67
|
+
component: BasicSpinnerTest,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'Spinner Size Test',
|
|
71
|
+
component: SpinnerSizeTest,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: 'Spinner for E2E Testing',
|
|
75
|
+
component: () => <E2ETestingSpinner />,
|
|
76
|
+
},
|
|
77
|
+
];
|
|
78
|
+
|
|
79
|
+
export const SpinnerTest: React.FunctionComponent = () => {
|
|
80
|
+
const status: PlatformStatus = {
|
|
81
|
+
win32Status: 'Experimental',
|
|
82
|
+
uwpStatus: 'Backlog',
|
|
83
|
+
iosStatus: 'Beta',
|
|
84
|
+
macosStatus: 'Backlog',
|
|
85
|
+
androidStatus: 'Backlog',
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const description =
|
|
89
|
+
'Spinner is a visual representation that data is being loaded. It is implemented with a View wrapping an Animated SVG. The View is to ensure that AccessibilityRole works. AccessibilityRole currently does not work on SVGs.';
|
|
90
|
+
|
|
91
|
+
return <Test name="Spinner Test" description={description} sections={spinnerSections} status={status}></Test>;
|
|
92
|
+
};
|
package/src/testPages.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { DropdownTest, HOMEPAGE_DROPDOWN_BUTTON } from './TestComponents/Dropdow
|
|
|
16
16
|
import { FocusTrapTest } from './TestComponents/FocusTrapZone';
|
|
17
17
|
import { FocusZoneTest } from './TestComponents/FocusZone';
|
|
18
18
|
import { IconTest } from './TestComponents/Icon';
|
|
19
|
+
import { InputTest } from './TestComponents/Input';
|
|
19
20
|
import { LinkLegacyTest } from './TestComponents/LinkLegacy';
|
|
20
21
|
import { LinkV1Test } from './TestComponents/LinkV1';
|
|
21
22
|
import { MenuTest } from './TestComponents/Menu';
|
|
@@ -159,6 +160,12 @@ export const tests: TestDescription[] = [
|
|
|
159
160
|
testPageButton: Constants.HOMEPAGE_ICON_BUTTON,
|
|
160
161
|
platforms: ['android', 'ios', 'macos', 'win32'],
|
|
161
162
|
},
|
|
163
|
+
{
|
|
164
|
+
name: 'Input',
|
|
165
|
+
component: InputTest,
|
|
166
|
+
testPageButton: Constants.HOMEPAGE_INPUT_BUTTON,
|
|
167
|
+
platforms: ['android'],
|
|
168
|
+
},
|
|
162
169
|
{
|
|
163
170
|
name: 'Link Legacy',
|
|
164
171
|
component: LinkLegacyTest,
|
|
@@ -253,7 +260,7 @@ export const tests: TestDescription[] = [
|
|
|
253
260
|
name: 'Spinner V1',
|
|
254
261
|
component: SpinnerTest,
|
|
255
262
|
testPageButton: Constants.HOMEPAGE_SPINNER_BUTTON,
|
|
256
|
-
platforms: ['android'],
|
|
263
|
+
platforms: ['android', 'win32'],
|
|
257
264
|
},
|
|
258
265
|
{
|
|
259
266
|
name: 'Stroke Width Tokens',
|