From 4c1b9b64669e0357455f4f2f0c6f3c9ab17aa40c Mon Sep 17 00:00:00 2001 From: Iisakki Rotko Date: Thu, 25 Jan 2024 11:37:33 +0100 Subject: [PATCH] fix: latex-test failing due to changes in CSS classes --- packages/solara-widget-manager/package.json | 1 - tests/integration/latex_test.py | 4 ++-- ...m-linux-ipywidgets-7-changed-reference.png | Bin 431 -> 473 bytes ...-chromium-linux-ipywidgets-7-reference.png | Bin 1276 -> 1356 bytes ...m-linux-ipywidgets-8-changed-reference.png | Bin 429 -> 473 bytes ...-chromium-linux-ipywidgets-8-reference.png | Bin 1274 -> 1356 bytes 6 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/solara-widget-manager/package.json b/packages/solara-widget-manager/package.json index af346668d..092d8ea4b 100644 --- a/packages/solara-widget-manager/package.json +++ b/packages/solara-widget-manager/package.json @@ -28,7 +28,6 @@ "@lumino/signaling": "^1.4.3", "@lumino/virtualdom": "^1.8.0", "@lumino/widgets": "^1.18.0", - "@types/node": "^16.18.74", "katex": "^0.16.09", "mermaid": "^8.6.4" }, diff --git a/tests/integration/latex_test.py b/tests/integration/latex_test.py index 44d3ced23..59c0a43f6 100644 --- a/tests/integration/latex_test.py +++ b/tests/integration/latex_test.py @@ -18,13 +18,13 @@ def test_widget_latex_solara(solara_test, page_session: playwright.sync_api.Page container = widgets.VBox([label], layout={"width": "200px", "height": "100px"}) display(container) - page_session.locator(".test-class-latex >> .mjx-c1D438").wait_for() + page_session.locator(".test-class-latex >> .mrel").wait_for() page_session.evaluate("document.fonts.ready") page_session.wait_for_timeout(1000) assert_solara_snapshot(page_session.locator(".test-class-latex").screenshot(), postfix=widgets_postfix) label.value = r"$\alpha$" label.add_class("test-changed-class-latex") - page_session.locator(".test-changed-class-latex >> .mjx-c1D6FC").wait_for() + page_session.locator(".test-changed-class-latex >> .mathnormal").wait_for() page_session.evaluate("document.fonts.ready") page_session.wait_for_timeout(1000) assert_solara_snapshot(page_session.locator(".test-changed-class-latex").screenshot(), postfix=widgets_postfix + "-changed") diff --git a/tests/ui/snapshots/tests/integration/latex_test.py/test_widget_latex_solara-flask-chromium-linux-ipywidgets-7-changed-reference.png b/tests/ui/snapshots/tests/integration/latex_test.py/test_widget_latex_solara-flask-chromium-linux-ipywidgets-7-changed-reference.png index b092d8e44b8d39bd5030b2e26ef6f7e04e2c132c..451ee7b1be5ace2a372398414cdedcfb8207817e 100644 GIT binary patch delta 434 zcmV;j0Zsm|1K9(RF@KXuL_t(|obB5&s^U-ph2ayU*hN$jEH#Z-Xk{q~f@opq2CT%& z1-Jw|H(}`xtZY+gCxQfo)Iw}T!<}MyGxss|Bm?t*Rmg2l^EV;aF~%4HkR;`@9svAH z2m-JW1YjWuz(Np!g&+V6K>!wl04xLnSpEp&^?E5ul5Exh8Gp-vJzTF>ZMR$1YBhyn zs79lq^?EJGadf-g)ND4hT?(WiFG)cVXt`W!x7*40eI-ev!C;_Pt0mv}bv~a70{?~F z`~B8xwbE=hlkfYIB-eG-?RIrI9JJr>HJwhg-U*~4cRU^yMUlqi@wbCgsif2Cq-wRQ zN~Mz7Kp;)IFn`0??*vleaD^23jbAqa3oAhY7J>jQ1OZqG0~_wc7K8Eb8?iypgjwug~jKd3ti&N{i=n7(6EJ*~HH9U#N+J z2N(MPyS~6`rO!X76#F>}OxY={(W3A9{Bz{#r$M*hh84r%=Xw(jtu@0hU|uzwe6C%i0>HdY+~0 z;aorUyLslk?T6QQ8}Lk3>3sIN((`h|qsq)#T0G9Cv(K*Y&f2=FZvT3}<-zrrOcqqc zt-l^T?|GGt+@vMvpD#ZAaDj<$==$rW`|p3P+UqrsQ)Ka@ImNs0`W=59__i#%a$dH9 z#EOd<8C#m&%TOVrk1G7M^9 z5Jh!}vV#XRA<;lO>=dm(1RXk5V7Q7pbSR>Ommn4x%@|3hFcy@Vvf<2T3*7wk{$1?L zW)}A2CtLpBkK5tXq5c?e6q5#5D{Xr7~yc3$;nCX+_}TrwQEyX@gJzJu4eP* z%>YCq5%Ti#Qh!~N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X$gj4*8itARs4Co|MAELTPMll+T|(FWNIaJS<~lV@saj z)zu|#w_9pzY9uc&Pu{+LDHpn!`PFMrb6*-2?>DGrANfRT|AzJLF|WT{$P zTd~<}T)A=ui^W1^WhG-{V}?DCA3tX8+O~=dZU%uq%(W7kMycvLxA3u_t zo6Ej^`v91jn80i{vuf2U0)YUvwY8L&my?l^L0nuMr%s*X@ZrPD`-V_|v``^NM@N~O zntw9t*N8ouT8;pFcOOA3S)#_U+q=kB{fsvuAwz^oiZO zcZXgtE-q%xnl;P#IMkmmREWO5J^(`@_J8cz13+(YFIKA+lgYH`0zRLQoSYoPvGnwG z+S}WC{rWWr4<6*(EQc}ps$Ov864sH4X0000!wl04xLnSpEp&^?E5ul5Exh8Gp-vJzTF>ZMR$1YBhyn zs79lq^?EJGadf-g)ND4hT?(WiFG)cVXt`W!x7*40eI-ev!C;_Pt0mv}bv~a70{?~F z`~B8xwbE=hlkfYIB-eG-?RIrI9JJr>HJwhg-U*~4cRU^yMUlqi@wbCgsif2Cq-wRQ zN~Mz7Kp;)IFn`0??*vleaD^23jbAqa3oAhY7J>jQ1OZqG0=h(qW}N^ delta 389 zcmcb~yq0-_VST!%i(^Q|oVPa@uF?vWXnS}*u}On@GLNv!jFj*r8WJp%?~_wc7Kd8Q}vCG~WlePP`YUHwy6>IXguU7Fi znd!s9^q=+p-@5FL5gBH)HT#l1gG5}pnjC)rjhlYjb#2({Co>%k_gsFt#Wz#(4B|)!uoZY_324I6 zPF|LeeQD;Zs=e!e|6O=8K?btdUX<|hmGK%41|aZs^>bP0l+XkKp;4n7 diff --git a/tests/ui/snapshots/tests/integration/latex_test.py/test_widget_latex_solara-flask-chromium-linux-ipywidgets-8-reference.png b/tests/ui/snapshots/tests/integration/latex_test.py/test_widget_latex_solara-flask-chromium-linux-ipywidgets-8-reference.png index 2c03a86a7e2457bf659637b326a8e5ebdbbb27e2..b92301d56335b9717244f45759f087e7cfb6916a 100644 GIT binary patch delta 1325 zcmV+|1=9NZ3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