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

Function test_colm003_can_clear

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

Source from the content-addressed store, hash-verified

88
89
90def test_colm003_can_clear(test):
91 test.start_server(get_app())
92
93 target = test.table("table")
94
95 for i in range(5):
96 target.column(i).filter_value("is num")
97
98 target.column("rows").clear(0) # rows
99 target.column("ccc").clear(1) # Canada
100 target.column("fff").clear(2) # Boston
101
102 assert target.cell(0, "rows").get_text() == ""
103 assert target.cell(0, "ccc").get_text() == ""
104 assert target.cell(0, "ddd").get_text() == ""
105 assert target.cell(0, "eee").get_text() == "0"
106 assert target.cell(0, "fff").get_text() == ""
107
108 assert target.column("rows").filter_value() == ""
109 assert target.column("ccc").filter_value() == ""
110 assert target.column("ddd").filter_value() == ""
111 assert target.column("eee").filter_value() == "is num"
112 assert target.column("fff").filter_value() == ""
113
114
115def test_colm004_can_hide(test):

Callers

nothing calls this directly

Calls 8

filter_valueMethod · 0.80
columnMethod · 0.80
cellMethod · 0.80
get_appFunction · 0.70
start_serverMethod · 0.45
tableMethod · 0.45
clearMethod · 0.45
get_textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…