mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 09:36:47 +10:00
fix tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
@@ -379,7 +379,9 @@ class Notes
|
||||
|
||||
# does it already have notes?
|
||||
if nextRow.is(".notes_holder")
|
||||
$.proxy(@replyToDiscussionNote, nextRow.find(".js-discussion-reply-button")).call()
|
||||
replyButton = nextRow.find(".js-discussion-reply-button")
|
||||
if replyButton.length > 0
|
||||
$.proxy(@replyToDiscussionNote, replyButton).call()
|
||||
else
|
||||
# add a notes row and insert the form
|
||||
row.after "<tr class=\"notes_holder js-temp-notes-holder\"><td class=\"notes_line\" colspan=\"2\"></td><td class=\"notes_content\"></td></tr>"
|
||||
|
||||
@@ -108,7 +108,7 @@ describe "On a merge request", js: true do
|
||||
|
||||
within("#note_#{note.id}") do
|
||||
should have_css(".note-last-update small")
|
||||
find(".note-last-update small").text.should match(/Edited just now/)
|
||||
find(".note-last-update small").text.should match(/Edited less than a minute ago/)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user