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

ADD: System test for comments #7251

Merged
merged 2 commits into from
Jan 16, 2020
Merged

ADD: System test for comments #7251

merged 2 commits into from
Jan 16, 2020

Conversation

Uzay-G
Copy link
Member

@Uzay-G Uzay-G commented Jan 15, 2020

For part of #5316.

I have added a system test for commenting on a note. The test verifies that the UI reacts properly to the comment and that the preview button works well.

Are there any other comment tests you think would be useful? What do you think @VladimirMikulic @publiclab/reviewers?

@VladimirMikulic
Copy link
Contributor

Nice one @Uzay-G. The test fails on my server, we'll see what Travis says.

@Uzay-G
Copy link
Member Author

Uzay-G commented Jan 15, 2020

Yeah you are right. There is a problem I hadn't noticed. I will fix it 👍

@codecov
Copy link

codecov bot commented Jan 15, 2020

Codecov Report

Merging #7251 into master will decrease coverage by 0.12%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #7251      +/-   ##
=========================================
- Coverage   81.53%   81.4%   -0.13%     
=========================================
  Files          97      97              
  Lines        5599    5599              
=========================================
- Hits         4565    4558       -7     
- Misses       1034    1041       +7
Impacted Files Coverage Δ
app/services/execute_search.rb 88.88% <0%> (-5.56%) ⬇️
app/api/srch/search.rb 64.7% <0%> (-3.93%) ⬇️

@Uzay-G
Copy link
Member Author

Uzay-G commented Jan 15, 2020

Alright I fixed it. I also refactored things to a setup method that will login before each test instead of putting the commands in the tests each time.

@Uzay-G
Copy link
Member Author

Uzay-G commented Jan 15, 2020

Does this work for you @VladimirMikulic?

Copy link
Contributor

@VladimirMikulic VladimirMikulic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it does!!!

@SidharthBansal
Copy link
Member

SidharthBansal commented Jan 15, 2020 via email

@VladimirMikulic
Copy link
Contributor

@SidharthBansal it will for sure :)

Copy link
Member

@jywarren jywarren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, and I'll merge it now -- i wonder if we can make a more complex one, where there are multiple comment fields on the page, and we ensure it enters the comment in the correct one (like, a response vs. a comment). What do you think?

@jywarren jywarren merged commit 000a624 into publiclab:master Jan 16, 2020
@jywarren
Copy link
Member

Thank you!!!!

@Uzay-G
Copy link
Member Author

Uzay-G commented Jan 16, 2020

This is great, and I'll merge it now -- i wonder if we can make a more complex one, where there are multiple comment fields on the page, and we ensure it enters the comment in the correct one (like, a response vs. a comment). What do you think?

Yeah that could be interesting. I will think about what we could do 👍

@SidharthBansal
Copy link
Member

5th test here
We just need to approve at the GCI dashboard now

vinitshahdeo pushed a commit to vinitshahdeo/plots2 that referenced this pull request Feb 1, 2020
* add system test for comments

* fixed travis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants