Skip to content

Commit

Permalink
chore: include an expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Jul 27, 2023
1 parent d1e810a commit 7199b98
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ test_that("update_switch(label = )", {
app$
set_inputs(smart_punct_label = "Awesome Punctuation")$
wait_for_js(
"document.querySelector('label[for=\"smart_punctuation\"]').innerText === 'Awesome Punctuation'"
"document
.querySelector('label[for=\"smart_punctuation\"]')
.innerText
.includes('Awesome')"
)

expect_equal(
app$get_js('document.querySelector("label[for=\\"smart_punctuation\\"]").innerText'),
"Awesome Punctuation"
)
})

0 comments on commit 7199b98

Please sign in to comment.