@fluentui-react-native/radio-group 0.16.48 → 0.17.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 +94 -1
- package/CHANGELOG.md +23 -2
- package/lib/Radio/Radio.d.ts.map +1 -1
- package/lib/Radio/Radio.js +1 -0
- package/lib/Radio/Radio.js.map +1 -1
- package/lib/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/lib/RadioGroup/RadioGroup.js.map +1 -1
- package/lib/RadioGroup/__tests__/RadioGroupExperimental.test.js +149 -54
- package/lib/RadioGroup/__tests__/RadioGroupExperimental.test.js.map +1 -1
- package/lib/legacy/RadioButton.d.ts.map +1 -1
- package/lib/legacy/RadioButton.js +1 -0
- package/lib/legacy/RadioButton.js.map +1 -1
- package/lib/legacy/RadioButton.macos.d.ts.map +1 -1
- package/lib/legacy/RadioButton.macos.js +1 -0
- package/lib/legacy/RadioButton.macos.js.map +1 -1
- package/lib/legacy/RadioGroup.d.ts +1 -0
- package/lib/legacy/RadioGroup.d.ts.map +1 -1
- package/lib/legacy/RadioGroup.js +1 -0
- package/lib/legacy/RadioGroup.js.map +1 -1
- package/lib/legacy/RadioGroup.types.d.ts +2 -2
- package/lib/legacy/RadioGroup.types.d.ts.map +1 -1
- package/lib-commonjs/Radio/Radio.d.ts.map +1 -1
- package/lib-commonjs/Radio/Radio.js +1 -0
- package/lib-commonjs/Radio/Radio.js.map +1 -1
- package/lib-commonjs/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/lib-commonjs/RadioGroup/RadioGroup.js.map +1 -1
- package/lib-commonjs/RadioGroup/__tests__/RadioGroupExperimental.test.js +148 -54
- package/lib-commonjs/RadioGroup/__tests__/RadioGroupExperimental.test.js.map +1 -1
- package/lib-commonjs/legacy/RadioButton.d.ts.map +1 -1
- package/lib-commonjs/legacy/RadioButton.js +1 -0
- package/lib-commonjs/legacy/RadioButton.js.map +1 -1
- package/lib-commonjs/legacy/RadioButton.macos.d.ts.map +1 -1
- package/lib-commonjs/legacy/RadioButton.macos.js +1 -0
- package/lib-commonjs/legacy/RadioButton.macos.js.map +1 -1
- package/lib-commonjs/legacy/RadioGroup.d.ts +1 -0
- package/lib-commonjs/legacy/RadioGroup.d.ts.map +1 -1
- package/lib-commonjs/legacy/RadioGroup.js +1 -0
- package/lib-commonjs/legacy/RadioGroup.js.map +1 -1
- package/lib-commonjs/legacy/RadioGroup.types.d.ts +2 -2
- package/lib-commonjs/legacy/RadioGroup.types.d.ts.map +1 -1
- package/package.json +20 -21
- package/src/Radio/Radio.tsx +1 -0
- package/src/Radio/__tests__/__snapshots__/RadioExperimental.test.tsx.snap +68 -17
- package/src/RadioGroup/RadioGroup.tsx +1 -0
- package/src/RadioGroup/__tests__/RadioGroupExperimental.test.tsx +16 -8
- package/src/RadioGroup/__tests__/__snapshots__/RadioGroupExperimental.test.tsx.snap +455 -129
- package/src/legacy/RadioButton.macos.tsx +1 -0
- package/src/legacy/RadioButton.tsx +1 -0
- package/src/legacy/RadioGroup.tsx +1 -0
- package/src/legacy/RadioGroup.types.ts +2 -2
- package/src/legacy/__tests__/__snapshots__/RadioButton.test.tsx.snap +7 -7
- package/src/legacy/__tests__/__snapshots__/RadioButtonGroup.test.tsx.snap +32 -32
|
@@ -9,7 +9,7 @@ import { RadioGroup } from '../RadioGroup';
|
|
|
9
9
|
jest.useFakeTimers();
|
|
10
10
|
|
|
11
11
|
describe('RadioGroup component tests', () => {
|
|
12
|
-
it('RadioGroup default', () => {
|
|
12
|
+
it('RadioGroup default', async () => {
|
|
13
13
|
const tree = renderer
|
|
14
14
|
.create(
|
|
15
15
|
<RadioGroup label="Uncontrolled RadioGroup" defaultValue="key2">
|
|
@@ -19,9 +19,10 @@ describe('RadioGroup component tests', () => {
|
|
|
19
19
|
)
|
|
20
20
|
.toJSON();
|
|
21
21
|
expect(tree).toMatchSnapshot();
|
|
22
|
+
await renderer.act(async () => null);
|
|
22
23
|
});
|
|
23
24
|
|
|
24
|
-
it('Radio not direct child of radio group', () => {
|
|
25
|
+
it('Radio not direct child of radio group', async () => {
|
|
25
26
|
const tree = renderer
|
|
26
27
|
.create(
|
|
27
28
|
<RadioGroup label="Uncontrolled RadioGroup" defaultValue="key2">
|
|
@@ -31,9 +32,10 @@ describe('RadioGroup component tests', () => {
|
|
|
31
32
|
)
|
|
32
33
|
.toJSON();
|
|
33
34
|
expect(tree).toMatchSnapshot();
|
|
35
|
+
await renderer.act(async () => null);
|
|
34
36
|
});
|
|
35
37
|
|
|
36
|
-
it('RadioGroup disabled', () => {
|
|
38
|
+
it('RadioGroup disabled', async () => {
|
|
37
39
|
const tree = renderer
|
|
38
40
|
.create(
|
|
39
41
|
<RadioGroup disabled label="Disabled RadioGroup">
|
|
@@ -43,9 +45,10 @@ describe('RadioGroup component tests', () => {
|
|
|
43
45
|
)
|
|
44
46
|
.toJSON();
|
|
45
47
|
expect(tree).toMatchSnapshot();
|
|
48
|
+
await renderer.act(async () => null);
|
|
46
49
|
});
|
|
47
50
|
|
|
48
|
-
it('RadioGroup required', () => {
|
|
51
|
+
it('RadioGroup required', async () => {
|
|
49
52
|
const tree = renderer
|
|
50
53
|
.create(
|
|
51
54
|
<RadioGroup required label="Required RadioGroup" defaultValue="key2">
|
|
@@ -55,9 +58,10 @@ describe('RadioGroup component tests', () => {
|
|
|
55
58
|
)
|
|
56
59
|
.toJSON();
|
|
57
60
|
expect(tree).toMatchSnapshot();
|
|
61
|
+
await renderer.act(async () => null);
|
|
58
62
|
});
|
|
59
63
|
|
|
60
|
-
it('RadioGroup horizontal', () => {
|
|
64
|
+
it('RadioGroup horizontal', async () => {
|
|
61
65
|
const tree = renderer
|
|
62
66
|
.create(
|
|
63
67
|
<RadioGroup layout="horizontal" label="Horizontal RadioGroup" defaultValue="key2">
|
|
@@ -67,9 +71,10 @@ describe('RadioGroup component tests', () => {
|
|
|
67
71
|
)
|
|
68
72
|
.toJSON();
|
|
69
73
|
expect(tree).toMatchSnapshot();
|
|
74
|
+
await renderer.act(async () => null);
|
|
70
75
|
});
|
|
71
76
|
|
|
72
|
-
it('RadioGroup horizontal-stacked', () => {
|
|
77
|
+
it('RadioGroup horizontal-stacked', async () => {
|
|
73
78
|
const tree = renderer
|
|
74
79
|
.create(
|
|
75
80
|
<RadioGroup layout="horizontal-stacked" label="Horizontal-Stacked RadioGroup" defaultValue="key2">
|
|
@@ -79,13 +84,16 @@ describe('RadioGroup component tests', () => {
|
|
|
79
84
|
)
|
|
80
85
|
.toJSON();
|
|
81
86
|
expect(tree).toMatchSnapshot();
|
|
87
|
+
await renderer.act(async () => null);
|
|
82
88
|
});
|
|
83
89
|
|
|
84
|
-
it('RadioGroup simple rendering does not invalidate styling', () => {
|
|
90
|
+
it('RadioGroup simple rendering does not invalidate styling', async () => {
|
|
85
91
|
checkRenderConsistency(() => <RadioGroup>Default RadioGroup</RadioGroup>, 2);
|
|
92
|
+
await renderer.act(async () => null);
|
|
86
93
|
});
|
|
87
94
|
|
|
88
|
-
it('RadioGroup re-renders correctly', () => {
|
|
95
|
+
it('RadioGroup re-renders correctly', async () => {
|
|
89
96
|
checkReRender(() => <RadioGroup>Render twice</RadioGroup>, 2);
|
|
97
|
+
await renderer.act(async () => null);
|
|
90
98
|
});
|
|
91
99
|
});
|