@@ -9,8 +9,6 @@ const ACCORDION = {
9
9
CONTENT: ' [data-test-accordion-content]' ,
10
10
BUTTON: ' [data-test-accordion-button]' ,
11
11
SUBTITLE: ' [data-test-accordion-subtitle]' ,
12
- ICON_OPEN: ' [data-test-accordion-icon-open]' ,
13
- ICON_CLOSED: ' [data-test-accordion-icon-closed]' ,
14
12
LOADER: ' [data-test-accordion-loader]' ,
15
13
};
16
14
@@ -87,60 +85,6 @@ module('Integration | Component | au-accordion', function (hooks) {
87
85
assert .dom (ACCORDION .BUTTON ).exists ().hasText (' Foo button' );
88
86
});
89
87
90
- test (' it shows a different icon depending on the open state' , async function (assert ) {
91
- await render (
92
- <template >
93
- <AuAccordion >
94
- Some content
95
- </AuAccordion >
96
- </template >,
97
- );
98
-
99
- assert .dom (ACCORDION .ICON_OPEN ).doesNotExist ();
100
- assert .dom (ACCORDION .ICON_CLOSED ).exists ();
101
-
102
- await toggleAccordion ();
103
- assert .dom (ACCORDION .ICON_OPEN ).exists ();
104
- assert .dom (ACCORDION .ICON_CLOSED ).doesNotExist ();
105
- });
106
-
107
- test (' it supports choosing different icons' , async function (assert ) {
108
- const state = new TestState ();
109
- await render (
110
- <template >
111
- <AuAccordion
112
- @ iconOpen ={{state.iconOpen }}
113
- @ iconClosed ={{state.iconClosed }}
114
- >
115
- Some content
116
- </AuAccordion >
117
- </template >,
118
- );
119
-
120
- assert
121
- .dom (ACCORDION .ICON_CLOSED )
122
- .hasAttribute (' data-test-accordion-icon-closed' , ' nav-right' );
123
-
124
- state .iconClosed = ' other-closed-icon' ;
125
- await settled ();
126
-
127
- assert
128
- .dom (ACCORDION .ICON_CLOSED )
129
- .hasAttribute (' data-test-accordion-icon-closed' , ' other-closed-icon' );
130
-
131
- await toggleAccordion ();
132
- assert
133
- .dom (ACCORDION .ICON_OPEN )
134
- .hasAttribute (' data-test-accordion-icon-open' , ' nav-down' );
135
-
136
- state .iconOpen = ' other-open-icon' ;
137
- await settled ();
138
-
139
- assert
140
- .dom (ACCORDION .ICON_OPEN )
141
- .hasAttribute (' data-test-accordion-icon-open' , ' other-open-icon' );
142
- });
143
-
144
88
test (' it can show a loading indicator instead of content' , async function (assert ) {
145
89
const state = new TestState ();
146
90
state .isLoading = true ;
0 commit comments