File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,8 @@ describe('MatAccordion', () => {
113
113
114
114
it ( 'should not register nested panels to the same accordion' , ( ) => {
115
115
const fixture = TestBed . createComponent ( NestedPanel ) ;
116
+ fixture . detectChanges ( ) ;
117
+
116
118
const innerPanel = fixture . componentInstance . innerPanel ;
117
119
const outerPanel = fixture . componentInstance . outerPanel ;
118
120
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ describe('MatExpansionPanel', () => {
118
118
119
119
it ( 'should toggle the panel when pressing SPACE on the header' , ( ) => {
120
120
const fixture = TestBed . createComponent ( PanelWithContent ) ;
121
+ fixture . detectChanges ( ) ;
121
122
const headerEl = fixture . nativeElement . querySelector ( '.mat-expansion-panel-header' ) ;
122
123
123
124
spyOn ( fixture . componentInstance . panel , 'toggle' ) ;
@@ -132,6 +133,7 @@ describe('MatExpansionPanel', () => {
132
133
133
134
it ( 'should toggle the panel when pressing ENTER on the header' , ( ) => {
134
135
const fixture = TestBed . createComponent ( PanelWithContent ) ;
136
+ fixture . detectChanges ( ) ;
135
137
const headerEl = fixture . nativeElement . querySelector ( '.mat-expansion-panel-header' ) ;
136
138
137
139
spyOn ( fixture . componentInstance . panel , 'toggle' ) ;
@@ -146,6 +148,7 @@ describe('MatExpansionPanel', () => {
146
148
147
149
it ( 'should not toggle if a modifier key is pressed' , ( ) => {
148
150
const fixture = TestBed . createComponent ( PanelWithContent ) ;
151
+ fixture . detectChanges ( ) ;
149
152
const headerEl = fixture . nativeElement . querySelector ( '.mat-expansion-panel-header' ) ;
150
153
151
154
spyOn ( fixture . componentInstance . panel , 'toggle' ) ;
You can’t perform that action at this time.
0 commit comments