|
1 | 1 | import * as React from 'react';
|
2 |
| -import type { AccessibilityActionName } from 'react-native'; |
3 | 2 | import { Text, View } from 'react-native';
|
4 | 3 |
|
5 | 4 | import type { InteractionEvent } from '@fluentui-react-native/interactive-hooks';
|
6 |
| -import { checkRenderConsistency, checkReRender } from '@fluentui-react-native/test-tools'; |
7 | 5 | import { Svg } from 'react-native-svg';
|
8 | 6 | import * as renderer from 'react-test-renderer';
|
9 | 7 |
|
@@ -80,27 +78,4 @@ describe('Checkbox component tests', () => {
|
80 | 78 | const tree = renderer.create(<ComposedCheckbox label="Composed Button with RNText" />).toJSON();
|
81 | 79 | expect(tree).toMatchSnapshot();
|
82 | 80 | });
|
83 |
| - |
84 |
| - it('Checkbox simple rendering does not invalidate styling', () => { |
85 |
| - checkRenderConsistency(() => <Checkbox>Default button</Checkbox>, 2); |
86 |
| - }); |
87 |
| - |
88 |
| - it('Checkbox re-renders correctly', () => { |
89 |
| - checkReRender(() => <Checkbox>Render twice</Checkbox>, 2); |
90 |
| - }); |
91 |
| - |
92 |
| - it('Checkbox shares produced styles across multiple renders', () => { |
93 |
| - const style = { backgroundColor: 'black' }; |
94 |
| - checkRenderConsistency(() => <Checkbox style={style}>Shared styles</Checkbox>, 2); |
95 |
| - }); |
96 |
| - |
97 |
| - it('Checkbox re-renders correctly with style', () => { |
98 |
| - const style = { borderColor: 'blue' }; |
99 |
| - checkReRender(() => <Checkbox style={style}>Shared Style Render</Checkbox>, 2); |
100 |
| - }); |
101 |
| - |
102 |
| - it('Checkbox re-renders correctly with accessibilityAction', () => { |
103 |
| - const action = [{ name: 'Expand' as AccessibilityActionName }]; |
104 |
| - checkReRender(() => <Checkbox accessibilityActions={action}>Shared Style Render</Checkbox>, 2); |
105 |
| - }); |
106 | 81 | });
|
0 commit comments