MCPcopy Create free account
hub / github.com/plotly/dash / test_mark004_image

Function test_mark004_image

components/dash-table/tests/selenium/test_markdown.py:93–112  ·  view source on GitHub ↗
(test)

Source from the content-addressed store, hash-verified

91
92
93def test_mark004_image(test):
94 test.start_server(get_app())
95
96 target = test.table("table")
97
98 target.column(8).sort(1)
99 assert (
100 target.cell(0, "markdown-images")
101 .find_inside(".dash-cell-value > p > img")
102 .get_attribute("alt")
103 == "image 0 alt text"
104 )
105
106 target.column(8).sort(1)
107 assert (
108 target.cell(0, "markdown-images")
109 .find_inside(".dash-cell-value > p > img")
110 .get_attribute("alt")
111 == "image 99 alt text"
112 )
113
114
115def test_mark005_table(test):

Callers

nothing calls this directly

Calls 7

columnMethod · 0.80
cellMethod · 0.80
get_appFunction · 0.70
start_serverMethod · 0.45
tableMethod · 0.45
sortMethod · 0.45
find_insideMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…