MCPcopy Index your code
hub / github.com/plotly/dash / test_sort001_can_sort

Function test_sort001_can_sort

components/dash-table/tests/selenium/test_sort.py:24–39  ·  view source on GitHub ↗
(test, props)

Source from the content-addressed store, hash-verified

22
23@pytest.mark.parametrize("props", basic_modes)
24def test_sort001_can_sort(test, props):
25 test.start_server(get_app(props))
26
27 target = test.table("table")
28
29 target.cell(0, "bbb-readonly").get_text() == "label Wet"
30 target.cell(1, "bbb-readonly").get_text() == "label Snowy"
31 target.cell(2, "bbb-readonly").get_text() == "label Tropical Beaches"
32 target.cell(3, "bbb-readonly").get_text() == "label Humid"
33
34 target.column("bbb-readonly").sort(2)
35
36 for i in range(4):
37 target.cell(i, "bbb-readonly").get_text() == "label Humid"
38
39 assert test.get_log_errors() == []

Callers

nothing calls this directly

Calls 8

cellMethod · 0.80
columnMethod · 0.80
get_log_errorsMethod · 0.80
get_appFunction · 0.70
start_serverMethod · 0.45
tableMethod · 0.45
get_textMethod · 0.45
sortMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…