File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
CheckoutAgreements/Test/Mftf/Test
Swatches/view/adminhtml/web/js Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 2020 <group value =" mtf_migrated" />
2121 </annotations >
2222 <before >
23+ <magentoCLI command =" config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey =" enableFlatRate" />
2324 <magentoCLI command =" config:set checkout/options/enable_agreements 1" stepKey =" setEnableTermsOnCheckout" />
2425 <actionGroup ref =" AdminLoginActionGroup" stepKey =" LoginAsAdmin" />
2526 <createData entity =" SimpleTwo" stepKey =" createdProduct" />
3031 <actionGroup ref =" AdminTermsConditionsSaveTermActionGroup" stepKey =" saveNewTerm" />
3132 </before >
3233 <after >
34+ <!-- Disable shipping method for customer with default address -->
35+ <magentoCLI command =" config:set {{DisableFlatRateConfigData.path}} {{DisableFlatRateConfigData.value}}" stepKey =" disableFlatRate" />
3336 <magentoCLI command =" config:set checkout/options/enable_agreements 0" stepKey =" setDisableTermsOnCheckout" />
3437 <deleteData createDataKey =" createdProduct" stepKey =" deletedProduct" />
3538 <actionGroup ref =" AdminLogoutActionGroup" stepKey =" logout" />
Original file line number Diff line number Diff line change @@ -362,6 +362,7 @@ define([
362362 * @this {iframe}
363363 */
364364 iframeHandler = function ( ) {
365+ console . log ( $ ( this ) . contents ( ) . find ( 'body' ) . html ( ) ) ;
365366 var imageParams = $ . parseJSON ( $ ( this ) . contents ( ) . find ( 'body' ) . html ( ) ) ,
366367 fullMediaUrl = imageParams [ 'swatch_path' ] + imageParams [ 'file_path' ] ;
367368
@@ -374,7 +375,7 @@ define([
374375 } ;
375376
376377 swatchComponents . iframe . off ( 'load' ) ;
377- swatchComponents . iframe . load ( iframeHandler ) ;
378+ swatchComponents . iframe . on ( 'load' , iframeHandler ) ;
378379 swatchComponents . form . submit ( ) ;
379380 $ ( this ) . val ( '' ) ;
380381 } ) ;
You can’t perform that action at this time.
0 commit comments