@@ -235,20 +235,21 @@ describe('resizable', () => {
235235 } ) ;
236236
237237 it ( 'should support scrollable full size content' , ( ) => {
238- const container = dialog . firstElementChild ;
239- container . style . height = '100%' ;
240- container . style . width = '100%' ;
241- container . style . overflow = 'auto' ;
242- container . textContent = new Array ( 10000 ) . fill ( 'foo' ) . join ( ' ' ) ;
238+ const contentElement = dialog . $ . overlay . _rendererRoot . firstElementChild ;
239+ contentElement . style . height = '100%' ;
240+ contentElement . style . width = '100%' ;
241+ contentElement . style . overflow = 'auto' ;
242+ contentElement . textContent = new Array ( 10000 ) . fill ( 'foo' ) . join ( ' ' ) ;
243243
244244 const resizeContainer = dialog . $ . overlay . $ . resizerContainer ;
245- expect ( container . offsetHeight ) . to . equal ( resizeContainer . offsetHeight ) ;
245+ expect ( contentElement . offsetHeight ) . to . equal ( resizeContainer . offsetHeight ) ;
246246 } ) ;
247247
248248 it ( 'should scroll if the content overflows' , async ( ) => {
249249 // Fill the content with a lot of text so that it overflows the viewport
250- dialog . firstElementChild . textContent = new Array ( 10000 ) . fill ( 'foo' ) . join ( ' ' ) ;
251- await nextResize ( dialog . firstElementChild ) ;
250+ const contentElement = dialog . $ . overlay . _rendererRoot . firstElementChild ;
251+ contentElement . textContent = new Array ( 10000 ) . fill ( 'foo' ) . join ( ' ' ) ;
252+ await nextResize ( contentElement ) ;
252253 await nextRender ( ) ;
253254
254255 const content = dialog . $ . overlay . $ . content ;
@@ -260,9 +261,10 @@ describe('resizable', () => {
260261 resize ( overlayPart . querySelector ( '.s' ) , 0 , 10 ) ;
261262
262263 // Set the dialog content to have 100% height
263- dialog . firstElementChild . style . height = '100%' ;
264+ const contentElement = dialog . $ . overlay . _rendererRoot . firstElementChild ;
265+ contentElement . style . height = '100%' ;
264266
265- const contentBounds = dialog . firstElementChild . getBoundingClientRect ( ) ;
267+ const contentBounds = contentElement . getBoundingClientRect ( ) ;
266268 const overlayBounds = overlayPart . getBoundingClientRect ( ) ;
267269 expect ( Math . floor ( contentBounds . height ) ) . to . equal ( Math . floor ( overlayBounds . height ) ) ;
268270 } ) ;
@@ -579,7 +581,7 @@ describe('draggable', () => {
579581 dialog . height = '100px' ;
580582 await nextRender ( ) ;
581583
582- const contentElement = dialog . firstElementChild ;
584+ const contentElement = dialog . $ . overlay . _rendererRoot . firstElementChild ;
583585 contentElement . style . minHeight = '200px' ;
584586 await nextResize ( contentElement ) ;
585587 await nextRender ( ) ;
0 commit comments