-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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: Comment image upload system test #7255
ADD: Comment image upload system test #7255
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7255 +/- ##
==========================================
+ Coverage 61.25% 81.55% +20.3%
==========================================
Files 97 97
Lines 5709 5601 -108
==========================================
+ Hits 3497 4568 +1071
+ Misses 2212 1033 -1179
|
@@ -74,4 +74,40 @@ def setup | |||
assert_equal( comment_preview_button.text, "Preview" ) | |||
end | |||
|
|||
test 'comment image upload' do |
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.
There should be a test for exceeding image size too
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.
The question is, do you have a limit set? I've uploaded 60mb image without a problem.
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.
If you don't display some kind of error message or something, then I can't test it.
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.
Kindly check. We need to set the limit if not set yet. pinging @jywarren for limit
@Uzay-G @VladimirMikulic Please create a pr for Comments. |
The prs requiring the functional changes will be graded separately. We will be fair to you all in terms of marks. |
My comment test has already been merged but we will do this if there are more comments tests 👍 |
Screenshots 📸 (click to expand)7255-test_questions.png7255-test_embeddable_grids.png7255-test_signup.png7255-test_viewing_the_settings_page.png7255-test_tag_by_author_page.png7255-test_wiki_page_with_inline_grids.png7255-test_stats.png7255-test_viewing_the_dashboard.png7255-test_searching_an_item_from_the_homepage.png7255-test_signup_modal_form_validation.png7255-test_tag_stats.png7255-test_login_modal_form_validation.png7255-test_questions_shadow.png7255-test_login_modal.png7255-test_profile_page.png7255-test_comments.png7255-test_tags.png7255-test_signup_modal.png7255-test_wiki.png7255-test_methods.png7255-test_tag_page.png7255-test_blog_page_with_location_modal.png7255-test_tag_wildcard.png7255-test_signup_modal_disabled_submit_button_on_empty_username.png7255-test_embeddable_thumbnail_grids.png7255-test_front_page_with_navbar_search_autocomplete.png7255-test_spam_moderation_page.png7255-test_login.png7255-test_viewing_the_dropdown_menu.png7255-test_viewing_question_post.png7255-test_mobile_displays.png7255-test_simple-data-grapher_powertag.png7255-test_front.png7255-test_question_page.png7255-test_tag_contributors_page.png7255-test_blog.png7255-test_people.png7255-test_wiki_revisions.pngLearn about automated screenshots Generated by 🚫 Danger |
@jywarren I think you'll be glad to see this. Both image upload tests have been repaired and are working (even image drag & drop)! The system tests are awesome 😄 Love them! |
This is EPIC! So great! I'm so glad you like system testing. It's so powerful. Thank you a ton for this! I'll close my original attempt! |
Yeah we should do more tests. |
* ADD: Comment image upload system test * ADD: Comment image drag & drop upload system test
* ADD: Comment image upload system test * ADD: Comment image drag & drop upload system test
Part of #5316
@jywarren could you review this? Thanks.