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 25, 2024
1 parent 3cdcbcf commit 6b6e9e8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
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.

0 comments on commit 6b6e9e8

Please sign in to comment.