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 20
20
<group value =" mtf_migrated" />
21
21
</annotations >
22
22
<before >
23
+ <magentoCLI command =" config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey =" enableFlatRate" />
23
24
<magentoCLI command =" config:set checkout/options/enable_agreements 1" stepKey =" setEnableTermsOnCheckout" />
24
25
<actionGroup ref =" AdminLoginActionGroup" stepKey =" LoginAsAdmin" />
25
26
<createData entity =" SimpleTwo" stepKey =" createdProduct" />
30
31
<actionGroup ref =" AdminTermsConditionsSaveTermActionGroup" stepKey =" saveNewTerm" />
31
32
</before >
32
33
<after >
34
+ <!-- Disable shipping method for customer with default address -->
35
+ <magentoCLI command =" config:set {{DisableFlatRateConfigData.path}} {{DisableFlatRateConfigData.value}}" stepKey =" disableFlatRate" />
33
36
<magentoCLI command =" config:set checkout/options/enable_agreements 0" stepKey =" setDisableTermsOnCheckout" />
34
37
<deleteData createDataKey =" createdProduct" stepKey =" deletedProduct" />
35
38
<actionGroup ref =" AdminLogoutActionGroup" stepKey =" logout" />
Original file line number Diff line number Diff line change @@ -362,6 +362,7 @@ define([
362
362
* @this {iframe}
363
363
*/
364
364
iframeHandler = function ( ) {
365
+ console . log ( $ ( this ) . contents ( ) . find ( 'body' ) . html ( ) ) ;
365
366
var imageParams = $ . parseJSON ( $ ( this ) . contents ( ) . find ( 'body' ) . html ( ) ) ,
366
367
fullMediaUrl = imageParams [ 'swatch_path' ] + imageParams [ 'file_path' ] ;
367
368
@@ -374,7 +375,7 @@ define([
374
375
} ;
375
376
376
377
swatchComponents . iframe . off ( 'load' ) ;
377
- swatchComponents . iframe . load ( iframeHandler ) ;
378
+ swatchComponents . iframe . on ( 'load' , iframeHandler ) ;
378
379
swatchComponents . form . submit ( ) ;
379
380
$ ( this ) . val ( '' ) ;
380
381
} ) ;
You can’t perform that action at this time.
0 commit comments