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

Function test_colm001_can_delete

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

Source from the content-addressed store, hash-verified

31
32
33def test_colm001_can_delete(test):
34 test.start_server(get_app())
35
36 target = test.table("table")
37
38 assert target.column(0).get_text(2) == "rows"
39 assert target.column(1).get_text(0) == "City"
40 assert target.column(1).get_text(1) == "Canada"
41 assert target.column(1).get_text(2) == "Toronto"
42
43 target.column("rows").delete(0)
44
45 assert target.column(0).get_text(0) == "City"
46 assert target.column(0).get_text(1) == "Canada"
47 assert target.column(0).get_text(2) == "Toronto"
48
49 # Remove Canada
50 target.column("ccc").delete(1)
51
52 assert target.column(0).get_text(0) == "City"
53 assert target.column(0).get_text(1) == "America"
54 assert target.column(0).get_text(2) == "New York City"
55
56 # Remove Boston
57 target.column("fff").delete(2)
58
59 assert target.column(0).get_text(0) == "City"
60 assert target.column(0).get_text(1) == "America"
61 assert target.column(0).get_text(2) == "New York City"
62 assert target.column(1).get_text(1) == "France"
63 assert target.column(1).get_text(2) == "Paris"
64
65 assert test.get_log_errors() == []
66
67
68def test_colm002_keep_hidden_on_delete(test):

Callers

nothing calls this directly

Calls 7

columnMethod · 0.80
get_log_errorsMethod · 0.80
get_appFunction · 0.70
start_serverMethod · 0.45
tableMethod · 0.45
get_textMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…