Skip to content
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

inconsistent Capybara test failures -- debugging #11161

Open
jywarren opened this issue Jun 2, 2022 · 2 comments
Open

inconsistent Capybara test failures -- debugging #11161

jywarren opened this issue Jun 2, 2022 · 2 comments
Labels
testing issues are usually for adding unit tests, integration tests or any other tests for a feature

Comments

@jywarren
Copy link
Member

jywarren commented Jun 2, 2022

Getting this inconsistent test failure -

=====================================[Screenshot]: tmp/screenshots/failures_test_note:_should_not_list_spam_replied_comment_to_registered_user.png
ERROR CommentTest#test_note:_should_not_list_spam_replied_comment_to_registered_user (319.77s)
Minitest::UnexpectedError:         Capybara::ElementNotFound: Unable to find css ".nav-link.loginToggle"
            test/comment_system_tests/comment_test.rb:651:in `block (2 levels) in <class:CommentTest>'

@TildaDares in #11137 (comment) :

@jywarren The test seems to be passing now but we can still try the suggestion in this article https://medium.com/@yuliaoletskaya/capybara-inconsistent-click-behavior-and-flickering-tests-f50b5fae8ab2

Good idea, opening this in a unique issue to try.

@jywarren jywarren changed the title inconsistent Capybara test debugging inconsistent Capybara test failures -- debugging Jun 7, 2022
@jywarren
Copy link
Member Author

Got another identical one at https://github.com/publiclab/plots2/runs/6884401631?check_suite_focus=true#step:9:134 in #11190

=====================================[Screenshot]: tmp/screenshots/failures_test_note:_should_not_list_spam_replied_comment_to_registered_user.png
ERROR CommentTest#test_note:_should_not_list_spam_replied_comment_to_registered_user (314.14s)
Minitest::UnexpectedError:         Capybara::ElementNotFound: Unable to find css ".nav-link.loginToggle"
            test/comment_system_tests/comment_test.rb:651:in `block (2 levels) in <class:CommentTest>'

@jywarren
Copy link
Member Author

ERROR CommentTest#test_note:_should_not_list_spam_replied_comment_to_registered_user (337.51s)
Minitest::UnexpectedError:         Capybara::ElementNotFound: Unable to find css ".nav-link.loginToggle"
            test/comment_system_tests/comment_test.rb:651:in `block (2 levels) in <class:CommentTest>'

in #11255

@cesswairimu cesswairimu added the testing issues are usually for adding unit tests, integration tests or any other tests for a feature label Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing issues are usually for adding unit tests, integration tests or any other tests for a feature
Projects
None yet
Development

No branches or pull requests

2 participants