Skip to content

Commit

Permalink
fix: latex-test failing due to changes in CSS classes
Browse files Browse the repository at this point in the history
  • Loading branch information
iisakkirotko committed Jan 29, 2024
1 parent 35ea593 commit 4c1b9b6
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/solara-widget-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/latex_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4c1b9b6

Please sign in to comment.