Skip to content

Commit

Permalink
wait until for flaky tabulator test
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Apr 22, 2024
1 parent e671561 commit c8ddf6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions panel/tests/ui/widgets/test_tabulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2286,6 +2286,7 @@ def test_tabulator_patching_and_styling(page, df_mixed):
widget.patch({'int': [(0, 100)]}, as_index=False)

max_int = df_mixed['int'].max()
wait_until(lambda: page.locator('.tabulator-cell', has=page.locator(f'text="{max_int}"')) is not None, page)
max_cell = page.locator('.tabulator-cell', has=page.locator(f'text="{max_int}"'))
expect(max_cell).to_have_count(1)
expect(max_cell).to_have_css('background-color', _color_mapping['yellow'])
Expand Down

0 comments on commit c8ddf6c

Please sign in to comment.