File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 12
12
#### Properties
13
13
14
14
* ` id ` : No longer generates a random UUID when empty
15
- * ` lang ` : Replaced ` toggle ` key with ` collapseNode ` and ` expandNode `
15
+ * ` lang ` : Replaced ` toggle ` key with ` collapseNode ` and ` expandNode ` to better reflect state ( # 275 )
16
16
17
17
#### Styling
18
18
28
28
29
29
### Other
30
30
31
- * [ #329 ] Add React 18 to the peer dependency list (** Note** : React 18 is not part of the automatic testing, but should work)
31
+ * [ #329 ] : Add React 18 to the peer dependency list (** Note** : React 18 is not part of the automatic testing, but should work)
32
32
33
33
## [ v1.7.3] ( https://github.com/jakezatecky/react-checkbox-tree/compare/v1.7.2...v1.7.3 ) (2022-05-23)
34
34
Original file line number Diff line number Diff line change 1
1
export default {
2
2
collapseAll : 'Collapse all' ,
3
- collapseNode : 'Collapse' ,
3
+ collapseNode : 'Collapse node ' ,
4
4
expandAll : 'Expand all' ,
5
- expandNode : 'Expand' ,
5
+ expandNode : 'Expand node ' ,
6
6
} ;
Original file line number Diff line number Diff line change @@ -938,7 +938,7 @@ describe('<CheckboxTree />', () => {
938
938
) ;
939
939
940
940
const user = userEvent . setup ( ) ;
941
- await user . click ( screen . getByLabelText ( 'Expand' ) ) ;
941
+ await user . click ( screen . getByLabelText ( 'Expand node ' ) ) ;
942
942
943
943
assert . deepEqual ( actualExpanded , [ 'jupiter' ] ) ;
944
944
} ) ;
@@ -965,7 +965,7 @@ describe('<CheckboxTree />', () => {
965
965
) ;
966
966
967
967
const user = userEvent . setup ( ) ;
968
- await user . click ( screen . getByLabelText ( 'Expand' ) ) ;
968
+ await user . click ( screen . getByLabelText ( 'Expand node ' ) ) ;
969
969
970
970
assert . equal ( actualNode . value , 'jupiter' ) ;
971
971
} ) ;
@@ -1052,7 +1052,7 @@ describe('<CheckboxTree />', () => {
1052
1052
assert . deepEqual ( getNodeMetadata ( clickNode ) , expectedLeafMetadata ) ;
1053
1053
1054
1054
// onExpand
1055
- await user . click ( screen . getByLabelText ( 'Collapse' ) ) ;
1055
+ await user . click ( screen . getByLabelText ( 'Collapse node ' ) ) ;
1056
1056
assert . deepEqual ( getNodeMetadata ( expandNode ) , expectedParentMetadata ) ;
1057
1057
} ) ;
1058
1058
} ) ;
You can’t perform that action at this time.
0 commit comments