From ed9323d18803ce82dfb4c020eaef9c6d71457b28 Mon Sep 17 00:00:00 2001 From: Marcin <133694481+m7pr@users.noreply.github.com> Date: Thu, 25 Apr 2024 10:43:17 +0200 Subject: [PATCH] Update tests/testthat/test-verbatim_popup_ui.R MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Dawid Kałędkowski <6959016+gogonzo@users.noreply.github.com> Signed-off-by: Marcin <133694481+m7pr@users.noreply.github.com> --- tests/testthat/test-verbatim_popup_ui.R | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/testthat/test-verbatim_popup_ui.R b/tests/testthat/test-verbatim_popup_ui.R index b04c1b2e..5849678c 100644 --- a/tests/testthat/test-verbatim_popup_ui.R +++ b/tests/testthat/test-verbatim_popup_ui.R @@ -78,8 +78,7 @@ testthat::test_that( ) # Modal is closed, once the button is clicked. - app_driver$click(selector = "#shiny-modal-wrapper button[data-dismiss='modal']") - # There are two Dismiss buttons. + app_driver$click(selector = ".modal-body button[data-dismiss='modal']") app_driver$wait_for_idle(timeout = default_idle_timeout) testthat::expect_null(app_driver$get_html("#shiny-modal-wrapper"))