This repository was archived by the owner on Jun 3, 2024. It is now read-only.
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ test('Loading renders', () => {
14
14
</ Loading >
15
15
) ;
16
16
17
- expect ( loading . html ( ) ) . toMatchSnapshot ( 'Loading with is_loading=true' ) ;
17
+ expect ( loading . find ( '.dash-spinner' ) . parent ( ) . html ( ) ) . toMatchSnapshot ( 'Loading with is_loading=true' ) ;
18
18
} ) ;
19
19
test ( 'Loading renders without loading_state' , ( ) => {
20
20
const loading = render (
@@ -49,7 +49,7 @@ test('Loading renders without prop_name', () => {
49
49
</ Loading >
50
50
) ;
51
51
52
- expect ( loading . html ( ) ) . toMatchSnapshot ( 'Loading with is_loading=true' ) ;
52
+ expect ( loading . find ( '.dash-spinner' ) . parent ( ) . html ( ) ) . toMatchSnapshot ( 'Loading with is_loading=true' ) ;
53
53
} ) ;
54
54
test ( 'Loading renders without loading_state.component_name' , ( ) => {
55
55
const statusMock = {
@@ -62,7 +62,7 @@ test('Loading renders without loading_state.component_name', () => {
62
62
</ Loading >
63
63
) ;
64
64
65
- expect ( loading . html ( ) ) . toMatchSnapshot ( 'Loading with is_loading=true' ) ;
65
+ expect ( loading . find ( '.dash-spinner' ) . parent ( ) . html ( ) ) . toMatchSnapshot ( 'Loading with is_loading=true' ) ;
66
66
} ) ;
67
67
test ( 'Loading renders with multiple children' , ( ) => {
68
68
const statusMock = {
@@ -78,7 +78,7 @@ test('Loading renders with multiple children', () => {
78
78
</ Loading >
79
79
) ;
80
80
81
- expect ( loading . html ( ) ) . toMatchSnapshot ( 'Loading with is_loading=true' ) ;
81
+ expect ( loading . find ( '.dash-spinner' ) . parent ( ) . html ( ) ) . toMatchSnapshot ( 'Loading with is_loading=true' ) ;
82
82
} ) ;
83
83
84
84
test ( "Loading checks all it's children for a loading_state" , ( ) => {
You can’t perform that action at this time.
0 commit comments