@@ -16,20 +16,6 @@ describe('icon', () => {
1616 ` ) ;
1717 } ) ;
1818
19- it ( 'renders aria-hidden and no aria-label' , async ( ) => {
20- const { root } = await newSpecPage ( {
21- components : [ Icon ] ,
22- html : `<ion-icon aria-hidden="true"></ion-icon>` ,
23- } ) ;
24- expect ( root ) . toEqualHtml ( `
25- <ion-icon class="md" role="img" aria-hidden="true">
26- <mock:shadow-root>
27- <div class="icon-inner"></div>
28- </mock:shadow-root>
29- </ion-icon>
30- ` ) ;
31- } ) ;
32-
3319 it ( 'renders rtl with aria-hidden' , async ( ) => {
3420 const { root } = await newSpecPage ( {
3521 components : [ Icon ] ,
@@ -46,21 +32,6 @@ describe('icon', () => {
4632 ` ) ;
4733 } ) ;
4834
49- it ( 'renders default aria-label' , async ( ) => {
50- const { root } = await newSpecPage ( {
51- components : [ Icon ] ,
52- html : `<ion-icon name="chevron-forward"></ion-icon>` ,
53- } ) ;
54-
55- expect ( root ) . toEqualHtml ( `
56- <ion-icon class="md" name="chevron-forward" role="img" aria-label="chevron forward">
57- <mock:shadow-root>
58- <div class="icon-inner"></div>
59- </mock:shadow-root>
60- </ion-icon>
61- ` ) ;
62- } ) ;
63-
6435 it ( 'renders custom aria-label' , async ( ) => {
6536 const { root } = await newSpecPage ( {
6637 components : [ Icon ] ,
@@ -105,34 +76,4 @@ describe('icon', () => {
10576 </ion-icon>
10677 ` ) ;
10778 } ) ;
108-
109- it ( 'renders default label after changing source' , async ( ) => {
110- const page = await newSpecPage ( {
111- components : [ Icon ] ,
112- html : `<ion-icon name="chevron-forward"></ion-icon>` ,
113- } ) ;
114-
115- const icon = page . root ;
116-
117- expect ( icon ) . toEqualHtml ( `
118- <ion-icon class="md" name="chevron-forward" role="img" aria-label="chevron forward">
119- <mock:shadow-root>
120- <div class="icon-inner"></div>
121- </mock:shadow-root>
122- </ion-icon>
123- ` ) ;
124-
125- if ( icon ) {
126- icon . name = 'trash' ;
127- }
128- await page . waitForChanges ( ) ;
129-
130- expect ( icon ) . toEqualHtml ( `
131- <ion-icon class="md" name="trash" role="img" aria-label="trash">
132- <mock:shadow-root>
133- <div class="icon-inner"></div>
134- </mock:shadow-root>
135- </ion-icon>
136- ` ) ;
137- } ) ;
13879} ) ;
0 commit comments