Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion e2e/data_frame/test_data_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,19 @@ def test_sort(
select_dataset.set("diamonds")
select_dataset.expect.to_have_value("diamonds")

# Test sorting
# Table cell locators
header_clarity = grid_container.locator("tr:first-child th:nth-child(4)")
first_cell_clarity = grid_container.locator("tr:first-child td:nth-child(4)")

# Test that the table contents have updated
# This may timeout unless a larger timeout is given
expect(header_clarity).not_to_have_text(
"num2",
timeout=15 * 1000, # Larger timeout for CI
)
expect(first_cell_clarity).not_to_have_text("4")

# Test sorting
expect(first_cell_clarity).to_have_text("SI2")
header_clarity.click()
expect(first_cell_clarity).to_have_text("I1")
Expand Down