@@ -39,7 +39,12 @@ assert.ok(indexHtml.includes('optionOverlayMode: "期权层状态"'));
3939assert . ok ( indexHtml . includes ( 'optionOverlayMode: "Option layer"' ) ) ;
4040assert . ok ( indexHtml . includes ( "optionOverlayDefaultsFromProfileItem" ) ) ;
4141assert . ok ( indexHtml . includes ( 'id="cash-only-execution-mode-select"' ) ) ;
42- assert . ok ( indexHtml . includes ( 'class="form-section cash-only-section"' ) ) ;
42+ assert . ok ( indexHtml . includes ( 'class="form-section execution-cash-policy-section"' ) ) ;
43+ assert . ok ( indexHtml . includes ( 'function reconcileExecutionCashPolicy(' ) ) ;
44+ assert . ok ( indexHtml . includes ( 'qmt: { label: "QMT"' ) ) ;
45+ assert . ok ( indexHtml . includes ( 'cn_industry_etf_rotation' ) ) ;
46+ assert . ok ( indexHtml . includes ( 'platformDryRunOnly' ) ) ;
47+ assert . ok ( indexHtml . includes ( 'qmtDryRunOnlyNote' ) ) ;
4348assert . ok ( indexHtml . includes ( 'cashOnlyExecutionMode: "允许融资"' ) ) ;
4449assert . ok ( indexHtml . includes ( 'cashOnlyExecutionValueYes: "允许融资:是"' ) ) ;
4550assert . ok ( indexHtml . includes ( 'cashOnlyExecutionMode: "Allow margin"' ) ) ;
@@ -63,7 +68,7 @@ assert.ok(indexHtml.includes('el("dca-base-investment-usd-input").addEventListen
6368assert . ok ( indexHtml . includes ( 'label_zh: "纳指100 / 标普500 定投"' ) ) ;
6469assert . ok ( indexHtml . includes ( 'class="form-section income-layer-section"' ) ) ;
6570assert . ok ( indexHtml . includes ( 'class="form-section dca-section"' ) ) ;
66- assert . ok ( indexHtml . includes ( 'class="control-block reserve-policy-block section-wide "' ) ) ;
71+ assert . ok ( indexHtml . includes ( 'class="control-block reserve-policy-block policy-block "' ) ) ;
6772assert . ok ( indexHtml . includes ( 'profile: "ibit_smart_dca"' ) ) ;
6873assert . ok ( indexHtml . includes ( 'IBIT 比特币定投' ) ) ;
6974assert . ok ( indexHtml . includes ( 'localStrategyLabels' ) ) ;
@@ -554,6 +559,22 @@ assert.throws(
554559 } ) ,
555560 / I B I T Z - S c o r e e x i t s e t t i n g s / ,
556561) ;
562+ assert . throws (
563+ ( ) => __test . normalizeSwitchInputs ( {
564+ platform : "qmt" ,
565+ target_name : "industry_etf_dry_run" ,
566+ strategy_profile : "cn_industry_etf_rotation" ,
567+ execution_mode : "live" ,
568+ } ) ,
569+ / d o e s n o t s u p p o r t l i v e e x e c u t i o n y e t / ,
570+ ) ;
571+ const normalizedQmtDryRunInputs = __test . normalizeSwitchInputs ( {
572+ platform : "qmt" ,
573+ target_name : "industry_etf_dry_run" ,
574+ strategy_profile : "cn_industry_etf_rotation" ,
575+ execution_mode : "paper" ,
576+ } ) ;
577+ assert . equal ( normalizedQmtDryRunInputs . execution_mode , "paper" ) ;
557578assert . throws (
558579 ( ) => __test . normalizeSwitchInputs ( {
559580 platform : "ibkr" ,
0 commit comments