Skip to content

Commit dc90008

Browse files
committed
Add row focus state checks in edit mode test
Inserted assertions to verify row focus state before and after pressing Escape in the data frame edit mode validation test. This enhances test coverage for row focus behavior.
1 parent 62c109e commit dc90008

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/playwright/shiny/components/data_frame/validate_row_selection_edit_mode/test_validate_row_selection_edit_mode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ def test_validate_row_selection_in_edit_mode(
7575
# Tab to the column name, hit enter. Verify the table becomes sorted.
7676
# Tab to an HTML column name, hit enter. Verify the sort does not update.
7777
page.keyboard.press("Escape")
78+
data_frame._expect_row_focus_state(True, row=1)
7879
page.keyboard.press("Escape")
80+
data_frame._expect_row_focus_state(False, row=1)
7981
page.keyboard.press("Tab")
8082
page.keyboard.press("Tab") # tab to sample number
8183
page.keyboard.press("Enter")

0 commit comments

Comments
 (0)