@@ -107,12 +107,12 @@ describe('MatDatepicker', () => {
107107 testComponent . touch = true ;
108108 fixture . detectChanges ( ) ;
109109
110- expect ( document . querySelector ( '.mat-datepicker-dialog mat-dialog-container ' ) ) . toBeNull ( ) ;
110+ expect ( document . querySelector ( '.mat-datepicker-dialog' ) ) . toBeNull ( ) ;
111111
112112 testComponent . datepicker . open ( ) ;
113113 fixture . detectChanges ( ) ;
114114
115- expect ( document . querySelector ( '.mat-datepicker-dialog mat-dialog-container ' ) )
115+ expect ( document . querySelector ( '.mat-datepicker-dialog' ) )
116116 . not . toBeNull ( ) ;
117117 } ) ;
118118
@@ -157,13 +157,13 @@ describe('MatDatepicker', () => {
157157 fixture . detectChanges ( ) ;
158158
159159 expect ( document . querySelector ( '.cdk-overlay-pane' ) ) . toBeNull ( ) ;
160- expect ( document . querySelector ( 'mat-dialog-container ' ) ) . toBeNull ( ) ;
160+ expect ( document . querySelector ( '. mat-datepicker-dialog ' ) ) . toBeNull ( ) ;
161161
162162 testComponent . datepicker . open ( ) ;
163163 fixture . detectChanges ( ) ;
164164
165165 expect ( document . querySelector ( '.cdk-overlay-pane' ) ) . toBeNull ( ) ;
166- expect ( document . querySelector ( 'mat-dialog-container ' ) ) . toBeNull ( ) ;
166+ expect ( document . querySelector ( '. mat-datepicker-dialog ' ) ) . toBeNull ( ) ;
167167 } ) ;
168168
169169 it ( 'disabled datepicker input should open the calendar if datepicker is enabled' , ( ) => {
@@ -225,13 +225,13 @@ describe('MatDatepicker', () => {
225225 testComponent . datepicker . open ( ) ;
226226 fixture . detectChanges ( ) ;
227227
228- expect ( document . querySelector ( 'mat-dialog-container ' ) ) . not . toBeNull ( ) ;
228+ expect ( document . querySelector ( '. mat-datepicker-dialog ' ) ) . not . toBeNull ( ) ;
229229
230230 testComponent . datepicker . close ( ) ;
231231 fixture . detectChanges ( ) ;
232232 flush ( ) ;
233233
234- expect ( document . querySelector ( 'mat-dialog-container ' ) ) . toBeNull ( ) ;
234+ expect ( document . querySelector ( '. mat-datepicker-dialog ' ) ) . toBeNull ( ) ;
235235 } ) ) ;
236236
237237 it ( 'setting selected via click should update input and close calendar' , fakeAsync ( ( ) => {
@@ -242,15 +242,15 @@ describe('MatDatepicker', () => {
242242 fixture . detectChanges ( ) ;
243243 flush ( ) ;
244244
245- expect ( document . querySelector ( 'mat-dialog-container ' ) ) . not . toBeNull ( ) ;
245+ expect ( document . querySelector ( '. mat-datepicker-dialog ' ) ) . not . toBeNull ( ) ;
246246 expect ( testComponent . datepickerInput . value ) . toEqual ( new Date ( 2020 , JAN , 1 ) ) ;
247247
248248 let cells = document . querySelectorAll ( '.mat-calendar-body-cell' ) ;
249249 dispatchMouseEvent ( cells [ 1 ] , 'click' ) ;
250250 fixture . detectChanges ( ) ;
251251 flush ( ) ;
252252
253- expect ( document . querySelector ( 'mat-dialog-container ' ) ) . toBeNull ( ) ;
253+ expect ( document . querySelector ( '. mat-datepicker-dialog ' ) ) . toBeNull ( ) ;
254254 expect ( testComponent . datepickerInput . value ) . toEqual ( new Date ( 2020 , JAN , 2 ) ) ;
255255 } ) ) ;
256256
@@ -263,7 +263,7 @@ describe('MatDatepicker', () => {
263263 fixture . detectChanges ( ) ;
264264 flush ( ) ;
265265
266- expect ( document . querySelector ( 'mat-dialog-container ' ) ) . not . toBeNull ( ) ;
266+ expect ( document . querySelector ( '. mat-datepicker-dialog ' ) ) . not . toBeNull ( ) ;
267267 expect ( testComponent . datepickerInput . value ) . toEqual ( new Date ( 2020 , JAN , 1 ) ) ;
268268
269269 let calendarBodyEl = document . querySelector ( '.mat-calendar-body' ) as HTMLElement ;
@@ -275,7 +275,7 @@ describe('MatDatepicker', () => {
275275 fixture . detectChanges ( ) ;
276276 flush ( ) ;
277277
278- expect ( document . querySelector ( 'mat-dialog-container ' ) ) . toBeNull ( ) ;
278+ expect ( document . querySelector ( '. mat-datepicker-dialog ' ) ) . toBeNull ( ) ;
279279 expect ( testComponent . datepickerInput . value ) . toEqual ( new Date ( 2020 , JAN , 2 ) ) ;
280280 } ) ) ;
281281
@@ -299,7 +299,7 @@ describe('MatDatepicker', () => {
299299 }
300300
301301 expect ( selectedChangedSpy . calls . count ( ) ) . toEqual ( 1 ) ;
302- expect ( document . querySelector ( 'mat-dialog-container ' ) ) . toBeNull ( ) ;
302+ expect ( document . querySelector ( '. mat-datepicker-dialog ' ) ) . toBeNull ( ) ;
303303 expect ( testComponent . datepickerInput . value ) . toEqual ( new Date ( 2020 , JAN , 2 ) ) ;
304304 } ) ) ;
305305
@@ -320,7 +320,7 @@ describe('MatDatepicker', () => {
320320
321321 fixture . whenStable ( ) . then ( ( ) => {
322322 expect ( selectedChangedSpy . calls . count ( ) ) . toEqual ( 0 ) ;
323- expect ( document . querySelector ( 'mat-dialog-container ' ) ) . toBeNull ( ) ;
323+ expect ( document . querySelector ( '. mat-datepicker-dialog ' ) ) . toBeNull ( ) ;
324324 expect ( testComponent . datepickerInput . value ) . toEqual ( new Date ( 2020 , JAN , 1 ) ) ;
325325 } ) ;
326326 } ) ;
@@ -910,13 +910,13 @@ describe('MatDatepicker', () => {
910910 } ) ;
911911
912912 it ( 'should open calendar when toggle clicked' , ( ) => {
913- expect ( document . querySelector ( 'mat-dialog-container ' ) ) . toBeNull ( ) ;
913+ expect ( document . querySelector ( '. mat-datepicker-dialog ' ) ) . toBeNull ( ) ;
914914
915915 let toggle = fixture . debugElement . query ( By . css ( 'button' ) ) ;
916916 dispatchMouseEvent ( toggle . nativeElement , 'click' ) ;
917917 fixture . detectChanges ( ) ;
918918
919- expect ( document . querySelector ( 'mat-dialog-container ' ) ) . not . toBeNull ( ) ;
919+ expect ( document . querySelector ( '. mat-datepicker-dialog ' ) ) . not . toBeNull ( ) ;
920920 } ) ;
921921
922922 it ( 'should not open calendar when toggle clicked if datepicker is disabled' , ( ) => {
@@ -925,12 +925,12 @@ describe('MatDatepicker', () => {
925925 const toggle = fixture . debugElement . query ( By . css ( 'button' ) ) . nativeElement ;
926926
927927 expect ( toggle . hasAttribute ( 'disabled' ) ) . toBe ( true ) ;
928- expect ( document . querySelector ( 'mat-dialog-container ' ) ) . toBeNull ( ) ;
928+ expect ( document . querySelector ( '. mat-datepicker-dialog ' ) ) . toBeNull ( ) ;
929929
930930 dispatchMouseEvent ( toggle , 'click' ) ;
931931 fixture . detectChanges ( ) ;
932932
933- expect ( document . querySelector ( 'mat-dialog-container ' ) ) . toBeNull ( ) ;
933+ expect ( document . querySelector ( '. mat-datepicker-dialog ' ) ) . toBeNull ( ) ;
934934 } ) ;
935935
936936 it ( 'should not open calendar when toggle clicked if input is disabled' , ( ) => {
@@ -941,12 +941,12 @@ describe('MatDatepicker', () => {
941941 const toggle = fixture . debugElement . query ( By . css ( 'button' ) ) . nativeElement ;
942942
943943 expect ( toggle . hasAttribute ( 'disabled' ) ) . toBe ( true ) ;
944- expect ( document . querySelector ( 'mat-dialog-container ' ) ) . toBeNull ( ) ;
944+ expect ( document . querySelector ( '. mat-datepicker-dialog ' ) ) . toBeNull ( ) ;
945945
946946 dispatchMouseEvent ( toggle , 'click' ) ;
947947 fixture . detectChanges ( ) ;
948948
949- expect ( document . querySelector ( 'mat-dialog-container ' ) ) . toBeNull ( ) ;
949+ expect ( document . querySelector ( '. mat-datepicker-dialog ' ) ) . toBeNull ( ) ;
950950 } ) ;
951951
952952 it ( 'should set the `button` type on the trigger to prevent form submissions' , ( ) => {
@@ -1225,7 +1225,7 @@ describe('MatDatepicker', () => {
12251225 testComponent . datepicker . open ( ) ;
12261226 fixture . detectChanges ( ) ;
12271227
1228- expect ( document . querySelector ( 'mat-dialog-container ' ) ) . not . toBeNull ( ) ;
1228+ expect ( document . querySelector ( '. mat-datepicker-dialog ' ) ) . not . toBeNull ( ) ;
12291229
12301230 let cells = document . querySelectorAll ( '.mat-calendar-body-cell' ) ;
12311231 expect ( cells [ 0 ] . classList ) . toContain ( 'mat-calendar-body-disabled' ) ;
@@ -1297,7 +1297,7 @@ describe('MatDatepicker', () => {
12971297 testComponent . datepicker . open ( ) ;
12981298 fixture . detectChanges ( ) ;
12991299
1300- expect ( document . querySelector ( 'mat-dialog-container ' ) ) . not . toBeNull ( ) ;
1300+ expect ( document . querySelector ( '. mat-datepicker-dialog ' ) ) . not . toBeNull ( ) ;
13011301
13021302 const cells = document . querySelectorAll ( '.mat-calendar-body-cell' ) ;
13031303 dispatchMouseEvent ( cells [ 0 ] , 'click' ) ;
0 commit comments