MCPcopy
hub / github.com/streamlit/streamlit / test_link_button_hover

Function test_link_button_hover

e2e_playwright/st_link_button_test.py:68–82  ·  view source on GitHub ↗
(themed_app: Page, assert_snapshot: ImageCompareFunction)

Source from the content-addressed store, hash-verified

66
67
68def test_link_button_hover(themed_app: Page, assert_snapshot: ImageCompareFunction):
69 link_elements = themed_app.get_by_test_id("stLinkButton")
70 expect(link_elements).to_have_count(LINK_BUTTON_ELEMENTS)
71
72 default_link_button = themed_app.get_by_test_id("stLinkButton").nth(0)
73 themed_app.get_by_text("Default Link").hover()
74 assert_snapshot(default_link_button, name="st_link_button-default_hover")
75
76 primary_link_button = themed_app.get_by_test_id("stLinkButton").nth(2)
77 themed_app.get_by_text("Primary Link").hover()
78 assert_snapshot(primary_link_button, name="st_link_button-primary_hover")
79
80 tertiary_link_button = themed_app.get_by_test_id("stLinkButton").nth(8)
81 themed_app.get_by_text("Tertiary link button").hover()
82 assert_snapshot(tertiary_link_button, name="st_link_button-tertiary_hover")
83
84
85def test_check_top_level_class(app: Page):

Callers

nothing calls this directly

Calls 3

assert_snapshotFunction · 0.85
get_by_textMethod · 0.80
get_by_test_idMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…