diff --git a/inst/apps/313-bslib-card-tab-focus/tests/testthat/test-313-bslib-card-tab-focus.R b/inst/apps/313-bslib-card-tab-focus/tests/testthat/test-313-bslib-card-tab-focus.R index 415659200a..5065317bbd 100644 --- a/inst/apps/313-bslib-card-tab-focus/tests/testthat/test-313-bslib-card-tab-focus.R +++ b/inst/apps/313-bslib-card-tab-focus/tests/testthat/test-313-bslib-card-tab-focus.R @@ -256,22 +256,17 @@ test_that("fullscreen interior card with inputs (forward tab cycle)", { expect_focus(app, "#letter-selectized") key_press("Tab") expect_focus(app, "#letter2-selectized") + key_press("Escape") key_press("Tab") expect_focus(app, "#dates input:first-child") key_press("Tab") expect_focus(app, "#dates input:last-child") + key_press("Escape") key_press("Tab") expect_focus(app, ".bslib-full-screen-exit") key_press("Tab") expect_focus(app, "#letter-selectized") - # Go back to date input to ensure popup is closed - # FIXME: We should fix this in {bslib} (tab handlers too aggressive) - key_press("Tab") - key_press("Tab") - key_press("Tab") - key_press("Escape") - expect_focus(app, "#dates input:last-child") expect_card_full_screen(app, "card-with-inputs-left") app_card_full_screen_exit(app, "click overlay")