(test, props, data_fn)
| 313 | |
| 314 | |
| 315 | def on_focus(test, props, data_fn): |
| 316 | app = dash.Dash(__name__) |
| 317 | |
| 318 | baseProps1 = get_props(data_fn=data_fn) |
| 319 | baseProps2 = get_props(data_fn=data_fn) |
| 320 | |
| 321 | baseProps1.update(dict(**props, id="table1")) |
| 322 | baseProps2.update(dict(**props, id="table2")) |
| 323 | |
| 324 | app.layout = Div( |
| 325 | [ |
| 326 | DataTable(**baseProps1), |
| 327 | DataTable(**baseProps2), |
| 328 | ] |
| 329 | ) |
| 330 | |
| 331 | test.start_server(app) |
| 332 | |
| 333 | table2 = test.table("table2") |
| 334 | |
| 335 | for i in range(len(baseProps1.get("columns"))): |
| 336 | table2.cell(0, i).click() |
| 337 | |
| 338 | t1 = "#table1" |
| 339 | t2 = "#table2" |
| 340 | |
| 341 | cells_are_same_width(test, t1, t1) |
| 342 | cells_are_same_width(test, t1, t2) |
| 343 | |
| 344 | assert test.get_log_errors() == [] |
no test coverage detected
searching dependent graphs…