@@ -4,7 +4,7 @@ import { Fill } from "../../Fill";
44import { Left , Top , Right , Bottom , LeftResizable , TopResizable , RightResizable , BottomResizable } from "../../Anchored" ;
55import "@testing-library/jest-dom/extend-expect" ;
66import { ViewPort } from "../../ViewPort" ;
7- import { commonPropsTests } from "../Common" ;
7+ import { commonPropsTests , fixUp } from "../Common" ;
88
99afterEach ( cleanup ) ;
1010
@@ -197,7 +197,8 @@ test("Fill with LeftResizable has correct styles", async () => {
197197 < Fill id = "test" />
198198 </ ViewPort > ,
199199 ) ;
200- const sut = container . querySelector ( "#test" ) ! ;
200+
201+ const sut = fixUp ( container . querySelector ( "#test" ) ! ) ;
201202 const style = window . getComputedStyle ( sut ) ;
202203
203204 expect ( style . display ) . toBe ( "block" ) ;
@@ -219,7 +220,7 @@ test("Fill with stacked LeftResizable has correct styles", async () => {
219220 < Fill id = "test" />
220221 </ ViewPort > ,
221222 ) ;
222- const sut = container . querySelector ( "#test" ) ! ;
223+ const sut = fixUp ( container . querySelector ( "#test" ) ! ) ;
223224 const style = window . getComputedStyle ( sut ) ;
224225
225226 expect ( style . display ) . toBe ( "block" ) ;
@@ -240,7 +241,7 @@ test("Fill with TopResizable has correct styles", async () => {
240241 < Fill id = "test" />
241242 </ ViewPort > ,
242243 ) ;
243- const sut = container . querySelector ( "#test" ) ! ;
244+ const sut = fixUp ( container . querySelector ( "#test" ) ! ) ;
244245 const style = window . getComputedStyle ( sut ) ;
245246
246247 expect ( style . display ) . toBe ( "block" ) ;
@@ -262,7 +263,7 @@ test("Fill with stacked TopResizable has correct styles", async () => {
262263 < Fill id = "test" />
263264 </ ViewPort > ,
264265 ) ;
265- const sut = container . querySelector ( "#test" ) ! ;
266+ const sut = fixUp ( container . querySelector ( "#test" ) ! ) ;
266267 const style = window . getComputedStyle ( sut ) ;
267268
268269 expect ( style . display ) . toBe ( "block" ) ;
@@ -283,7 +284,7 @@ test("Fill with RightResizable has correct styles", async () => {
283284 < Fill id = "test" />
284285 </ ViewPort > ,
285286 ) ;
286- const sut = container . querySelector ( "#test" ) ! ;
287+ const sut = fixUp ( container . querySelector ( "#test" ) ! ) ;
287288 const style = window . getComputedStyle ( sut ) ;
288289
289290 expect ( style . display ) . toBe ( "block" ) ;
@@ -305,7 +306,7 @@ test("Fill with stacked RightResizable has correct styles", async () => {
305306 < Fill id = "test" />
306307 </ ViewPort > ,
307308 ) ;
308- const sut = container . querySelector ( "#test" ) ! ;
309+ const sut = fixUp ( container . querySelector ( "#test" ) ! ) ;
309310 const style = window . getComputedStyle ( sut ) ;
310311
311312 expect ( style . display ) . toBe ( "block" ) ;
@@ -326,7 +327,7 @@ test("Fill with BottomResizable has correct styles", async () => {
326327 < Fill id = "test" />
327328 </ ViewPort > ,
328329 ) ;
329- const sut = container . querySelector ( "#test" ) ! ;
330+ const sut = fixUp ( container . querySelector ( "#test" ) ! ) ;
330331 const style = window . getComputedStyle ( sut ) ;
331332
332333 expect ( style . display ) . toBe ( "block" ) ;
@@ -348,7 +349,7 @@ test("Fill with stacked BottomResizable has correct styles", async () => {
348349 < Fill id = "test" />
349350 </ ViewPort > ,
350351 ) ;
351- const sut = container . querySelector ( "#test" ) ! ;
352+ const sut = fixUp ( container . querySelector ( "#test" ) ! ) ;
352353 const style = window . getComputedStyle ( sut ) ;
353354
354355 expect ( style . display ) . toBe ( "block" ) ;
0 commit comments