File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,11 @@ export class TreeTestFunctions {
3030 expanded : boolean
3131 ) : void => {
3232 expect ( slot ) . lightDom . to . equal (
33- `<igc-icon name=${
34- expanded ? 'tree_collapse' : 'tree_expand'
35- } collection="default"></igc-icon>`,
33+ `<igc-icon
34+ aria-label=${ expanded ? 'Collapse' : 'Expand' }
35+ name=${ expanded ? 'tree_collapse' : 'tree_expand' }
36+ collection="default">
37+ </igc-icon>` ,
3638 DIFF_OPTIONS
3739 ) ;
3840 } ;
Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ describe('Tree', () => {
290290 els = indSlot2 . assignedElements ( { flatten : true } ) ;
291291 expect ( els . length ) . to . equal ( 1 ) ;
292292 expect ( els [ 0 ] ) . dom . to . equal (
293- `<igc-icon collection="default" name="tree_collapse">
293+ `<igc-icon collection="default" aria-label="Collapse" name="tree_collapse">
294294 </igc-icon>` ,
295295 DIFF_OPTIONS
296296 ) ;
You can’t perform that action at this time.
0 commit comments