-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When a description changed, update the latex rendering. Similar to voila-dashboards/voila#531
- Loading branch information
1 parent
1b34a5b
commit eb74401
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import ipywidgets as widgets | ||
import playwright.sync_api | ||
from IPython.display import display | ||
|
||
|
||
def test_widget_button_solara(solara_test, page_session: playwright.sync_api.Page, assert_solara_snapshot): | ||
slider = widgets.FloatSlider(description=r"$E \sim mc^2$") | ||
slider.add_class("test-class") | ||
display(slider) | ||
|
||
assert_solara_snapshot(page_session.locator(".test-class").screenshot()) | ||
slider.description = r"$\alpha$" | ||
slider.add_class("test-changed-class") | ||
assert_solara_snapshot(page_session.locator(".test-changed-class").screenshot(), postfix="-changed") |