def test_sortable_table(browser, sample): header, order, expected_result = sample table = PatternflyTable(browser, ".//div[@id='ws-react-c-table-sortable']/table") table.sort_by(header, order) column = [row[header] for row in table.read()] assert column == expected_result
def test_sortable_table(browser, sample): header, order, expected_result = sample table = PatternflyTable( browser, ".//table[./caption[normalize-space(.)='Sortable Table']]") table.sort_by(header, order) column = [row[header] for row in table.read()] assert column == expected_result
def test_sortable_table(browser, sample): header, order, expected_result = sample table = PatternflyTable(browser, ".//table[./caption[normalize-space(.)='Sortable Table']]") table.sort_by(header, order) column = [row[header] for row in table.read()] assert column == expected_result