Skip to content

Commit 75b1c56

Browse files
authored
Make sure wait_for_value()'s ignore type is integer (#242)
1 parent 89313b7 commit 75b1c56

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

inst/apps/316-bslib-popovers/tests/testthat/test-316-bslib-popovers.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -254,24 +254,24 @@ test_that("Can put input controls in the popover", {
254254
key_press("Tab")
255255
expect_focus(app, 'input#num')
256256
key_press("ArrowUp")
257-
expect_equal(app$wait_for_value(input = "num", ignore = 1), 2)
257+
expect_equal(app$wait_for_value(input = "num", ignore = 1L), 2)
258258
key_press("ArrowUp")
259-
expect_equal(app$wait_for_value(input = "num", ignore = 2), 3)
259+
expect_equal(app$wait_for_value(input = "num", ignore = 2L), 3)
260260
app$click("inc")
261-
expect_equal(app$wait_for_value(input = "num", ignore = 3), 4)
261+
expect_equal(app$wait_for_value(input = "num", ignore = 3L), 4)
262262
app$click("inc")
263-
expect_equal(app$wait_for_value(input = "num", ignore = 4), 5)
263+
expect_equal(app$wait_for_value(input = "num", ignore = 4L), 5)
264264
key_press("ArrowDown")
265-
expect_equal(app$wait_for_value(input = "num", ignore = 5), 4)
265+
expect_equal(app$wait_for_value(input = "num", ignore = 5L), 4)
266266
key_press("Escape")
267267
expect_focus(app, "#btn4")
268268
expect_no_tip(app)
269269

270270
# The UI is hidden, but we can still update the numeric input
271271
app$click("inc")
272-
expect_equal(app$wait_for_value(input = "num", ignore = 4), 5)
272+
expect_equal(app$wait_for_value(input = "num", ignore = 4L), 5)
273273
app$click("inc")
274-
expect_equal(app$wait_for_value(input = "num", ignore = 5), 6)
274+
expect_equal(app$wait_for_value(input = "num", ignore = 5L), 6)
275275

276276
app$click(selector = "#btn4")
277277
expect_visible_tip(app, "#btn4", expect_tabbable = TRUE)

0 commit comments

Comments
 (0)