File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed
packages/plugin-image-button-response/src Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -159,34 +159,6 @@ describe("image-button-response", () => {
159
159
expect ( btns [ i ] . hasAttribute ( "disabled" ) ) . toBe ( false ) ;
160
160
}
161
161
} ) ;
162
-
163
- test ( "buttons should be disabled and re-enabled with enable_button_after parameter" , async ( ) => {
164
- const { displayElement } = await startTimeline ( [
165
- {
166
- type : imageButtonResponse ,
167
- stimulus : "../media/blue.png" ,
168
- choices : [ "Choice A" , "Choice B" ] ,
169
- enable_button_after : 1000 ,
170
- render_on_canvas : false ,
171
- } ,
172
- ] ) ;
173
-
174
- const buttons = displayElement . querySelectorAll ( "button" ) ;
175
-
176
- // All buttons should be disabled initially
177
- buttons . forEach ( ( button ) => {
178
- expect ( button . hasAttribute ( "disabled" ) ) . toBe ( true ) ;
179
- expect ( button . getAttribute ( "disabled" ) ) . toBe ( "disabled" ) ;
180
- } ) ;
181
-
182
- // Advance time by 1000ms
183
- jest . advanceTimersByTime ( 1000 ) ;
184
-
185
- // All buttons should be enabled after the delay
186
- buttons . forEach ( ( button ) => {
187
- expect ( button . hasAttribute ( "disabled" ) ) . toBe ( false ) ;
188
- } ) ;
189
- } ) ;
190
162
} ) ;
191
163
192
164
describe ( "image-button-response simulation" , ( ) => {
You can’t perform that action at this time.
0 commit comments