The reason is that the continue button is set to disabled and therefore cannot be clicked:
Therefore, we need to investigate the default enable state of the button:
Tests show that the default value is Disable. So before unit testing, you need to find a way to enable it.
If the deliveryModeInvalid field is true, the button is set to Disabled.
Data source for deliveryModeInvalid:
return this.mode.controls['deliveryModeId'].invalid;
Copy the code
Mode attribute:
For more of Jerry’s original articles, please follow the public account “Wang Zixi “: