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
[System Tests] addComment(URL), Add New Note Fixture #8809
Conversation
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.
This looks great, all excellent clarifications and additions. If it runs smoothly in GitPod, let's mark it ready to merge? Hopefully we figure out the testing situation very soon and can merge this!
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 work @noi5e 🎉
I caught a test that was failing because I created a new fixture: Lines 345 to 354 in ff3417a
Pushed new commits and it fixes the fail! There might be a few more changes that need to be made. Going through the tests locally right now. |
Caught two more tests that were failing bc of the new note fixture: plots2/test/functional/notes_controller_test.rb Lines 362 to 373 in ff3417a
plots2/test/functional/notes_controller_test.rb Lines 391 to 402 in ff3417a
27 should be 28 in both because of the new note I created. Pushed the changes! I think this PR is good, no other new failed tests AFAIK locally. |
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.
🎉 🎉 🎉
All tests are passing now, right?
@@ -368,7 +368,7 @@ def teardown | |||
|
|||
assert_response :success | |||
selector = css_select 'div.note' | |||
assert_equal 27, selector.size | |||
assert_equal 28, selector.size |
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.
Correct 👍
Awesome, now that #8801 is merged, can you resolve the conflicts noted by GitHub and then we should be good to merge this (bypassing Travis) too? Thank you @noi5e and also @Sagarpreet @pydevsg !!! |
Also noting, this is a good example of this happening - perhaps we shouldn't do count-based assertions because it causes interdependence among fixtures. While in some ways it's nice to see the code interdependencies, because it stops us from thinking too narrowly, it also creates barriers to code changes because changes cascade and affect other tested areas. Food for thought! Thanks again! |
Code Climate has analyzed commit 97a6842 and detected 0 issues on this pull request. View more on Code Climate. |
Just resolved the conflicts! |
Hooray!! |
…ubliclab#8809) * add notes comment test & rename tests to distinguish wiki, note, question, etc. * add new note fixture for testing comments * update 'find all notes' to include new fixture * alter expected result of 'all notes' lookup
…ubliclab#8809) * add notes comment test & rename tests to distinguish wiki, note, question, etc. * add new note fixture for testing comments * update 'find all notes' to include new fixture * alter expected result of 'all notes' lookup
…ubliclab#8809) * add notes comment test & rename tests to distinguish wiki, note, question, etc. * add new note fixture for testing comments * update 'find all notes' to include new fixture * alter expected result of 'all notes' lookup
…ubliclab#8809) * add notes comment test & rename tests to distinguish wiki, note, question, etc. * add new note fixture for testing comments * update 'find all notes' to include new fixture * alter expected result of 'all notes' lookup
Not to be confused with my other current PR, #8801, which adds a new test for Question pages. Please review that one first, it has more extensive write-up!
This test was fairly straightforward to write compared to questions.
I renamed some of the tests to distinguish between notes, questions, and the old tests for commenting on wiki pages.
I simulated a new note in the fixtures for testing comments:
nodes.yml
revisions.yml
The test:
(This PR is part of the larger Comment Editor Overhaul Project with Outreachy. Refer to Planning Issue #9069 for more context)