Skip to content

Commit b231425

Browse files
authored
Make flaky dataframe test have larger timeout (#675)
1 parent 29c1752 commit b231425

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

e2e/data_frame/test_data_frame.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,19 @@ def test_sort(
130130
select_dataset.set("diamonds")
131131
select_dataset.expect.to_have_value("diamonds")
132132

133-
# Test sorting
133+
# Table cell locators
134134
header_clarity = grid_container.locator("tr:first-child th:nth-child(4)")
135135
first_cell_clarity = grid_container.locator("tr:first-child td:nth-child(4)")
136+
137+
# Test that the table contents have updated
138+
# This may timeout unless a larger timeout is given
139+
expect(header_clarity).not_to_have_text(
140+
"num2",
141+
timeout=15 * 1000, # Larger timeout for CI
142+
)
143+
expect(first_cell_clarity).not_to_have_text("4")
144+
145+
# Test sorting
136146
expect(first_cell_clarity).to_have_text("SI2")
137147
header_clarity.click()
138148
expect(first_cell_clarity).to_have_text("I1")

0 commit comments

Comments
 (0)