File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
dev/tests/js/jasmine/tests/app/code/Magento/ConfigurableProduct/view/frontend/js Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -143,22 +143,19 @@ define([
143
143
expect ( $ . fn . trigger ) . toHaveBeenCalledWith ( 'updatePrice' , { } ) ;
144
144
} ) ;
145
145
146
- it ( 'check that configure element method' , function ( ) {
147
- expect ( $ . mage . configurable ) . toBeDefined ( ) ;
148
- selectElement . value = 14 ;
146
+ it ( 'check if the _configureElement method is enabling configurable option or not' , function ( ) {
147
+ selectElement . val ( 14 ) ;
149
148
widget . _configureElement ( selectElement ) ;
150
149
expect ( widget ) . toBeTruthy ( ) ;
151
150
} ) ;
152
151
153
- it ( 'check that clear select method' , function ( ) {
154
- expect ( $ . mage . configurable ) . toBeDefined ( ) ;
152
+ it ( 'check if the _clearSelect method is clearing the option selections or not' , function ( ) {
155
153
selectElement . empty ( ) ;
156
154
widget . _clearSelect ( selectElement ) ;
157
155
expect ( widget ) . toBeTruthy ( ) ;
158
156
} ) ;
159
157
160
- it ( 'check that get simple product id method' , function ( ) {
161
- expect ( $ . mage . configurable ) . toBeDefined ( ) ;
158
+ it ( 'check if the _getSimpleProductId method is returning simple product id or not' , function ( ) {
162
159
widget . _getSimpleProductId ( selectElement ) ;
163
160
expect ( widget ) . toBeTruthy ( ) ;
164
161
} ) ;
You can’t perform that action at this time.
0 commit comments