-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
503 shinytest2 for Show R code
modal
#1146
Conversation
Unit Tests Summary 1 files 26 suites 1m 30s ⏱️ Results for commit a9c118f. ♻️ This comment has been updated with latest results. |
Unit Test Performance Difference
Additional test case details
Results for commit dfafb4d ♻️ This comment has been updated with latest results. |
testthat::expect_equal(
app$get_text("#shiny-modal > div > div > div.modal-header > h4"),
"Example Code"
) is failing but I don't have that issue when running the test locally ... |
It's failing for me. Let me try to debug. |
It's failing when I run the test but when I run the code inside the test, line by line it does not break. |
Perhaps we need to wait after the click |
Yeah, adding |
aaaah, thanks! will push |
Code Coverage Summary
Diff against main
Results for commit: a9c118f Minimum allowed coverage is ♻️ This comment has been updated with latest results |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(edit)
🤔 How about placing this on a different test file? It's only 2 tests but it might help to organize tests
(original)
One more spec hits the dust!! Nice job!
🔍 I think we shouldn't be overly specific on the selector rules. Allowing for some flexibility on changes from how shiny
creates modals.
That is, we may skip those intermediate div containers as that's not relevant to our test #id > div > div > div.modal-header > h4
Made some suggestions to avoid the child selector, using data-dismiss
attribute instead. Let's discuss if there is a better way or if we should also search for the attribute's value
Hey @averissimo thanks for the review! I tried to apply comments from this PR, and the other one about Session Info. About this
This actually checks |
moved the test to a separate file |
Co-authored-by: André Veríssimo <[email protected]> Signed-off-by: Marcin <[email protected]>
Co-authored-by: André Veríssimo <[email protected]> Signed-off-by: Marcin <[email protected]>
Co-authored-by: André Veríssimo <[email protected]> Signed-off-by: Marcin <[email protected]>
Co-authored-by: André Veríssimo <[email protected]> Signed-off-by: Marcin <[email protected]>
7d75d6a
to
e7be874
Compare
Hey @averissimo I applied changes on this PR and used methods ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
Part of https://github.com/insightsengineering/coredev-tasks/issues/503