-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Open
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: cdk/testingneeds: discussionFurther discussion with the team is needed before proceedingFurther discussion with the team is needed before proceeding
Description
Reproduction
Use StackBlitz to reproduce your issue:
https://stackblitz.com/edit/harness-issue-7whdxy?devtoolsheight=33&file=src/app/button-harness-example.spec.ts
Steps to reproduce:
- Have an input with type = "number"
- Try to set input value to a numeric value via
matInputHarness.setValue(24)
or try to read a numeric value viamatInputHarness.getValue().
Expected Behavior
I can read and set values as numbers (not strings), as numbers would appear in FormControl when user interacts with <input type="number">.
Actual Behavior
I can only set and read values as strings.
Environment
- Angular: 12
- CDK/Material: 12
- Browser(s): Firefox
- Operating System (e.g. Windows, macOS, Ubuntu): Ubuntu
AlexKarpov98
Metadata
Metadata
Assignees
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: cdk/testingneeds: discussionFurther discussion with the team is needed before proceedingFurther discussion with the team is needed before proceeding