예제 #1
0
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
예제 #2
0
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