SAP Spartacus delivery mode cont
2021-01-17 本文已影响0人
华山令狐冲
原因在于continue button被设置成了disabled,因此无法点击:


因此需要研究这个button默认的enable状态:

通过测试发现,其默认是disable的。因此在单元测试之前,需要先想办法将其enable才行。
如果deliveryModeInvalid字段为true,则button被置为disabled.

deliveryModeInvalid的数据源:
return this.mode.controls['deliveryModeId'].invalid;

mode属性:
