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([
143143 expect ( $ . fn . trigger ) . toHaveBeenCalledWith ( 'updatePrice' , { } ) ;
144144 } ) ;
145145
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 ) ;
149148 widget . _configureElement ( selectElement ) ;
150149 expect ( widget ) . toBeTruthy ( ) ;
151150 } ) ;
152151
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 ( ) {
155153 selectElement . empty ( ) ;
156154 widget . _clearSelect ( selectElement ) ;
157155 expect ( widget ) . toBeTruthy ( ) ;
158156 } ) ;
159157
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 ( ) {
162159 widget . _getSimpleProductId ( selectElement ) ;
163160 expect ( widget ) . toBeTruthy ( ) ;
164161 } ) ;
You can’t perform that action at this time.
0 commit comments