Skip to content

Commit 2759e99

Browse files
committed
tests(tree): Update tests to reflect localized aria label.
1 parent 921d7cf commit 2759e99

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/components/tree/tree-utils.spec.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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
};

src/components/tree/tree.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)