Skip to content

Commit

Permalink
wait longer to ensure test2 has new value
Browse files Browse the repository at this point in the history
  • Loading branch information
karangattu committed Jul 11, 2023
1 parent b8c48ca commit 1fea9d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"input": {
"empty": 1,
"radio": null,
"radio2": "d",
"radio2": null,
"rerender": 1
},
"output": {
Expand All @@ -13,7 +13,7 @@
]
},
"txt": "NULL",
"txt2": "[1] \"d\""
"txt2": "NULL"
},
"export": {

Expand Down
3 changes: 2 additions & 1 deletion inst/apps/195-radio-empty/tests/testthat/test-mytest.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ test_that("Migrated shinytest test: mytest.R", {

app$set_inputs(radio = "b")
app$set_inputs(radio2 = "d")
app$wait_for_value(input = "radio2")
txt2_val <- app$wait_for_value(output = "txt2")
app$expect_values()
app$expect_screenshot()

app$set_inputs(empty = "click")
app$set_inputs(rerender = "click")
app$wait_for_value(output = "txt2", ignore = list(txt2_val))
app$expect_values()
app$expect_screenshot()
})

0 comments on commit 1fea9d1

Please sign in to comment.