-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Description
Bug :
Select component from Angular Material don't load Option components in Karma
What is the expected behavior?
Using Karma & testbed, I should be able to fetch Option components related to my Select component instance
What is the current behavior?
Only the Select is displayed, and if I fetch for Options, I find nothing. The same in Karma preview : if I click on the Select, nothing happens (i.e. no option is shown)
What are the steps to reproduce?
- Create a new CLI project
- Install and import angular material
- In the app.component.html file, add a Select components with options, such as :
<md-select placeholder="Favorite food"> <md-option [value]="1">1</md-option> <md-option [value]="2">2</md-option> <md-option [value]="3">3</md-option> </md-select>
- Launch Karma (ng test command) and see that there is nothing inside the Select component instance
What is the use-case or motivation for changing an existing behavior?
Allow us to unit test our pages using Select components
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
"@angular/animations": "^4.1.3",
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/http": "^4.0.0",
"@angular/material": "^2.0.0-beta.6",
Is there anything else we should know?
JimGoods, ajaykopperla and jagpreetsingh83
Metadata
Metadata
Assignees
Labels
No labels