@@ -53,34 +53,34 @@ describe('SplitterLayout', () => {
53
53
cy . viewport ( 2000 , 2000 ) ;
54
54
cy . mount ( < TestComp vertical = { vertical } dir = { dir } /> ) ;
55
55
56
- cy . findByTestId ( 'se1' ) . should ( 'have.css' , 'flex' , '0 0 calc(70% - 16px)' ) ;
57
- cy . findByTestId ( 'se2' ) . should ( 'have.css' , 'flex' , '0 0 30%' ) ;
56
+ cy . findByTestId ( 'se1' ) . should ( 'have.css' , 'flex' , '0 1 calc(70% - 16px)' ) ;
57
+ cy . findByTestId ( 'se2' ) . should ( 'have.css' , 'flex' , '0 1 30%' ) ;
58
58
59
59
moveSpacer ( dir , vertical ) ;
60
60
cy . findByTestId ( 'se1' ) . should ( 'have.css' , 'flex' , '0 0 1184px' ) ;
61
61
cy . findByTestId ( 'se2' ) . should ( 'have.css' , 'flex' , '0 0 800px' ) ;
62
62
63
63
cy . findByText ( 'Trigger dep' ) . click ( { force : true } ) ;
64
64
65
- cy . findByTestId ( 'se1' ) . should ( 'have.css' , 'flex' , '0 0 calc(70% - 16px)' ) ;
66
- cy . findByTestId ( 'se2' ) . should ( 'have.css' , 'flex' , '0 0 30%' ) ;
65
+ cy . findByTestId ( 'se1' ) . should ( 'have.css' , 'flex' , '0 1 calc(70% - 16px)' ) ;
66
+ cy . findByTestId ( 'se2' ) . should ( 'have.css' , 'flex' , '0 1 30%' ) ;
67
67
68
68
moveSpacer ( dir , vertical ) ;
69
69
cy . findByTestId ( 'se1' ) . should ( 'have.css' , 'flex' , '0 0 1184px' ) ;
70
70
cy . findByTestId ( 'se2' ) . should ( 'have.css' , 'flex' , '0 0 800px' ) ;
71
71
72
72
cy . findByText ( 'Add child' ) . click ( { force : true } ) ;
73
- cy . findByTestId ( 'se1' ) . should ( 'have.css' , 'flex' , '0 0 calc(70% - 16px)' ) ;
74
- cy . findByTestId ( 'se2' ) . should ( 'have.css' , 'flex' , '0 0 calc(25% - 16px)' ) ;
75
- cy . findByTestId ( 'se3' ) . should ( 'have.css' , 'flex' , '0 0 5%' ) ;
73
+ cy . findByTestId ( 'se1' ) . should ( 'have.css' , 'flex' , '0 1 calc(70% - 16px)' ) ;
74
+ cy . findByTestId ( 'se2' ) . should ( 'have.css' , 'flex' , '0 1 calc(25% - 16px)' ) ;
75
+ cy . findByTestId ( 'se3' ) . should ( 'have.css' , 'flex' , '0 1 5%' ) ;
76
76
77
77
moveSpacer ( dir , vertical ) ;
78
78
79
79
cy . viewport ( 1000 , 1000 ) ;
80
80
81
- cy . findByTestId ( 'se1' ) . should ( 'have.css' , 'flex' , '0 0 calc(70% - 16px)' ) ;
82
- cy . findByTestId ( 'se2' ) . should ( 'have.css' , 'flex' , '0 0 calc(25% - 16px)' ) ;
83
- cy . findByTestId ( 'se3' ) . should ( 'have.css' , 'flex' , '0 0 5%' ) ;
81
+ cy . findByTestId ( 'se1' ) . should ( 'have.css' , 'flex' , '0 1 calc(70% - 16px)' ) ;
82
+ cy . findByTestId ( 'se2' ) . should ( 'have.css' , 'flex' , '0 1 calc(25% - 16px)' ) ;
83
+ cy . findByTestId ( 'se3' ) . should ( 'have.css' , 'flex' , '0 1 5%' ) ;
84
84
} ) ;
85
85
} ) ;
86
86
} ) ;
@@ -113,7 +113,7 @@ describe('SplitterLayout', () => {
113
113
. should ( 'have.css' , 'border-style' , 'dotted' ) ;
114
114
cy . findByTestId ( 'sl' ) . should ( 'have.css' , 'width' , '800px' ) . should ( 'have.css' , 'height' , '800px' ) ;
115
115
cy . findByTestId ( 'se2' )
116
- . should ( 'have.css' , 'flex' , '0 0 400px' )
116
+ . should ( 'have.css' , 'flex' , '0 1 400px' )
117
117
. should ( 'have.css' , vertical ? 'min-height' : 'min-width' , '300px' ) ;
118
118
cy . findByTestId ( 'se3' )
119
119
. should ( 'have.css' , 'flex' , '0 0 200px' )
0 commit comments