@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.
Files changed (72) hide show
  1. package/CHANGELOG.json +177 -1
  2. package/CHANGELOG.md +45 -2
  3. package/assets/dismissIcon.svg +3 -0
  4. package/assets/filledIcon.svg +3 -0
  5. package/assets/outlineIcon.svg +3 -0
  6. package/lib/E2E/src/Input/consts.d.ts +6 -0
  7. package/lib/E2E/src/Input/consts.d.ts.map +1 -0
  8. package/lib/E2E/src/Input/consts.js +8 -0
  9. package/lib/E2E/src/Input/consts.js.map +1 -0
  10. package/lib/E2E/src/index.consts.d.ts +1 -0
  11. package/lib/E2E/src/index.consts.d.ts.map +1 -1
  12. package/lib/E2E/src/index.consts.js +1 -0
  13. package/lib/E2E/src/index.consts.js.map +1 -1
  14. package/lib/fluent-tester/src/FluentTester.d.ts.map +1 -1
  15. package/lib/fluent-tester/src/FluentTester.js +2 -1
  16. package/lib/fluent-tester/src/FluentTester.js.map +1 -1
  17. package/lib/fluent-tester/src/TestComponents/Input/InputDefault.d.ts +7 -0
  18. package/lib/fluent-tester/src/TestComponents/Input/InputDefault.d.ts.map +1 -0
  19. package/lib/fluent-tester/src/TestComponents/Input/InputDefault.js +26 -0
  20. package/lib/fluent-tester/src/TestComponents/Input/InputDefault.js.map +1 -0
  21. package/lib/fluent-tester/src/TestComponents/Input/InputTest.d.ts +3 -0
  22. package/lib/fluent-tester/src/TestComponents/Input/InputTest.d.ts.map +1 -0
  23. package/lib/fluent-tester/src/TestComponents/Input/InputTest.js +23 -0
  24. package/lib/fluent-tester/src/TestComponents/Input/InputTest.js.map +1 -0
  25. package/lib/fluent-tester/src/TestComponents/Input/index.d.ts +2 -0
  26. package/lib/fluent-tester/src/TestComponents/Input/index.d.ts.map +1 -0
  27. package/lib/fluent-tester/src/TestComponents/Input/index.js +2 -0
  28. package/lib/fluent-tester/src/TestComponents/Input/index.js.map +1 -0
  29. package/lib/fluent-tester/src/TestComponents/Spinner/SpinnerTest.win32.d.ts +3 -0
  30. package/lib/fluent-tester/src/TestComponents/Spinner/SpinnerTest.win32.d.ts.map +1 -0
  31. package/lib/fluent-tester/src/TestComponents/Spinner/SpinnerTest.win32.js +68 -0
  32. package/lib/fluent-tester/src/TestComponents/Spinner/SpinnerTest.win32.js.map +1 -0
  33. package/lib/fluent-tester/src/testPages.d.ts.map +1 -1
  34. package/lib/fluent-tester/src/testPages.js +8 -1
  35. package/lib/fluent-tester/src/testPages.js.map +1 -1
  36. package/lib-commonjs/E2E/src/Input/consts.d.ts +6 -0
  37. package/lib-commonjs/E2E/src/Input/consts.d.ts.map +1 -0
  38. package/lib-commonjs/E2E/src/Input/consts.js +11 -0
  39. package/lib-commonjs/E2E/src/Input/consts.js.map +1 -0
  40. package/lib-commonjs/E2E/src/index.consts.d.ts +1 -0
  41. package/lib-commonjs/E2E/src/index.consts.d.ts.map +1 -1
  42. package/lib-commonjs/E2E/src/index.consts.js +1 -0
  43. package/lib-commonjs/E2E/src/index.consts.js.map +1 -1
  44. package/lib-commonjs/fluent-tester/src/FluentTester.d.ts.map +1 -1
  45. package/lib-commonjs/fluent-tester/src/FluentTester.js +2 -1
  46. package/lib-commonjs/fluent-tester/src/FluentTester.js.map +1 -1
  47. package/lib-commonjs/fluent-tester/src/TestComponents/Input/InputDefault.d.ts +7 -0
  48. package/lib-commonjs/fluent-tester/src/TestComponents/Input/InputDefault.d.ts.map +1 -0
  49. package/lib-commonjs/fluent-tester/src/TestComponents/Input/InputDefault.js +31 -0
  50. package/lib-commonjs/fluent-tester/src/TestComponents/Input/InputDefault.js.map +1 -0
  51. package/lib-commonjs/fluent-tester/src/TestComponents/Input/InputTest.d.ts +3 -0
  52. package/lib-commonjs/fluent-tester/src/TestComponents/Input/InputTest.d.ts.map +1 -0
  53. package/lib-commonjs/fluent-tester/src/TestComponents/Input/InputTest.js +28 -0
  54. package/lib-commonjs/fluent-tester/src/TestComponents/Input/InputTest.js.map +1 -0
  55. package/lib-commonjs/fluent-tester/src/TestComponents/Input/index.d.ts +2 -0
  56. package/lib-commonjs/fluent-tester/src/TestComponents/Input/index.d.ts.map +1 -0
  57. package/lib-commonjs/fluent-tester/src/TestComponents/Input/index.js +5 -0
  58. package/lib-commonjs/fluent-tester/src/TestComponents/Input/index.js.map +1 -0
  59. package/lib-commonjs/fluent-tester/src/TestComponents/Spinner/SpinnerTest.win32.d.ts +3 -0
  60. package/lib-commonjs/fluent-tester/src/TestComponents/Spinner/SpinnerTest.win32.d.ts.map +1 -0
  61. package/lib-commonjs/fluent-tester/src/TestComponents/Spinner/SpinnerTest.win32.js +73 -0
  62. package/lib-commonjs/fluent-tester/src/TestComponents/Spinner/SpinnerTest.win32.js.map +1 -0
  63. package/lib-commonjs/fluent-tester/src/testPages.d.ts.map +1 -1
  64. package/lib-commonjs/fluent-tester/src/testPages.js +8 -1
  65. package/lib-commonjs/fluent-tester/src/testPages.js.map +1 -1
  66. package/package.json +28 -25
  67. package/src/FluentTester.tsx +1 -0
  68. package/src/TestComponents/Input/InputDefault.tsx +44 -0
  69. package/src/TestComponents/Input/InputTest.tsx +28 -0
  70. package/src/TestComponents/Input/index.ts +1 -0
  71. package/src/TestComponents/Spinner/SpinnerTest.win32.tsx +92 -0
  72. 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',