From 4c637b56dd77f83788d7dcd0caf495689f5787c9 Mon Sep 17 00:00:00 2001 From: "Maarten A. Breddels" Date: Fri, 16 Jun 2023 14:44:07 +0200 Subject: [PATCH] fixes size containe --- tests/integration/latex_test.py | 3 ++- ..._solara-flask-chromium-linux-reference.png | Bin 1525 -> 1274 bytes ...ara-starlette-chromium-linux-reference.png | Bin 1525 -> 1274 bytes 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/latex_test.py b/tests/integration/latex_test.py index 5d150f942..4fab2e7d5 100644 --- a/tests/integration/latex_test.py +++ b/tests/integration/latex_test.py @@ -7,7 +7,8 @@ def test_widget_latex_solara(solara_test, page_session: playwright.sync_api.Page # we tried a FloatSlider before, but that seems to give unstable images (handle moves around randomly) label = widgets.Label(value=r"$E \sim mc^2$") label.add_class("test-class-latex") - display(label) + container = widgets.VBox([label], layout={"width": "200px", "height": "100px"}) + display(container) page_session.locator(".test-class-latex >> .mjx-c1D438").wait_for() page_session.evaluate("document.fonts.ready") diff --git a/tests/ui/snapshots/tests/integration/latex_test.py/test_widget_latex_solara-flask-chromium-linux-reference.png b/tests/ui/snapshots/tests/integration/latex_test.py/test_widget_latex_solara-flask-chromium-linux-reference.png index c7e358459541005e1634355bf7cffe1c6ffa9665..2c03a86a7e2457bf659637b326a8e5ebdbbb27e2 100644 GIT binary patch literal 1274 zcmVPx(v`IukRCt{2+FeMKZ5+q(??mljR#X&8U>XdC#KndqjSd3I7YLN-ASeP~q6mfN zK@cUu0>LN{BrrXwFd>T|im*_64{``uX2$S^q-oipRxU#4|2cSg#(ksD(?hbx*8g*M z-Mg-f-#z&4z6Q5NM1%x%;lc%`rl#=ue4IOXj zva_>kZ*PxvBo!wTvJhXse4)3u7XX*bMR#|1j1#GNk!&2))YLFAFuk(-;#&6_u4mGyrsD=VX{tPFs6@802XIAWYg#S2p*+S=Nvs;XjQVuH@j zPSeEe*RON;?%m%SZmGV0{mSjzw>f|Qe5|9WIAJ<6&Ck!%-``Jue*S`q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C=S*dKHTpsIXHIRs>tDnm{r-UW|qGOzT diff --git a/tests/ui/snapshots/tests/integration/latex_test.py/test_widget_latex_solara-starlette-chromium-linux-reference.png b/tests/ui/snapshots/tests/integration/latex_test.py/test_widget_latex_solara-starlette-chromium-linux-reference.png index c7e358459541005e1634355bf7cffe1c6ffa9665..2c03a86a7e2457bf659637b326a8e5ebdbbb27e2 100644 GIT binary patch literal 1274 zcmVPx(v`IukRCt{2+FeMKZ5+q(??mljR#X&8U>XdC#KndqjSd3I7YLN-ASeP~q6mfN zK@cUu0>LN{BrrXwFd>T|im*_64{``uX2$S^q-oipRxU#4|2cSg#(ksD(?hbx*8g*M z-Mg-f-#z&4z6Q5NM1%x%;lc%`rl#=ue4IOXj zva_>kZ*PxvBo!wTvJhXse4)3u7XX*bMR#|1j1#GNk!&2))YLFAFuk(-;#&6_u4mGyrsD=VX{tPFs6@802XIAWYg#S2p*+S=Nvs;XjQVuH@j zPSeEe*RON;?%m%SZmGV0{mSjzw>f|Qe5|9WIAJ<6&Ck!%-``Jue*S`qg@uKrr>Fn6 zU`sVWKhK#nXJ~G2#%i_3I*y7Hra}x44-*UqO@(M`Y64((c9x8cjNhAX2`*i_L}g_q z8#Zj9qoX6%aa5cz9htmdF91%blTau`Pfrh1Q&RwJ+_;hI>guS32#3R*K7E>jfdP&m zKhC2^j|hcAyng+fy1F`MXJ@&0?;g|B(`097<953vYu~(iLu+d*si~>V%*=4;&>dAOUEkH!C0?&r4j(=&`T6-WGBP3}A}uW~;&3>mtE)>yM23cj zBr7XRzJ2>9A|g+oJQ0`6C1Yb_5)OyO<#I_=Q`1lLD)nznM<%b=OHok~7cX9U2&o}M=Se<&<0#AdSr(A?ZiYHI3&4d&+NSigQf<>lq9S+j=S zyLWT;>{*T-JI0M0HwXj*ba!_%Iy%aV6)P4EQBqRE#KZ)Czn|^fw@0o&fBxJwe(>M{ z1qB5pCnxjl*)u+V{K(FoJ0qW$mX@+|<;o>|9qLaPDMVjiAAqS4yLRmYptr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