Commit f95f242c authored by Phil Hughes's avatar Phil Hughes

Updated tests

parent b1264d86
...@@ -79,7 +79,7 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps ...@@ -79,7 +79,7 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps
step 'I leave comment with a single emoji' do step 'I leave comment with a single emoji' do
page.within('.js-main-target-form') do page.within('.js-main-target-form') do
fill_in 'note[note]', with: ':smile:' fill_in 'note[note]', with: ':smile:'
click_button 'Add Comment' click_button 'Comment'
end end
end end
......
...@@ -267,7 +267,7 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps ...@@ -267,7 +267,7 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
step 'I leave a comment with code block' do step 'I leave a comment with code block' do
page.within(".js-main-target-form") do page.within(".js-main-target-form") do
fill_in "note[note]", with: "```\nCommand [1]: /usr/local/bin/git , see [text](doc/text)\n```" fill_in "note[note]", with: "```\nCommand [1]: /usr/local/bin/git , see [text](doc/text)\n```"
click_button "Add Comment" click_button "Comment"
sleep 0.05 sleep 0.05
end end
end end
......
...@@ -417,7 +417,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps ...@@ -417,7 +417,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
page.within(".js-discussion-note-form") do page.within(".js-discussion-note-form") do
fill_in "note_note", with: "Line is wrong on here" fill_in "note_note", with: "Line is wrong on here"
click_button "Add Comment" click_button "Comment"
end end
end end
...@@ -509,7 +509,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps ...@@ -509,7 +509,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
def leave_comment(message) def leave_comment(message)
page.within(".js-discussion-note-form", visible: true) do page.within(".js-discussion-note-form", visible: true) do
fill_in "note_note", with: message fill_in "note_note", with: message
click_button "Add Comment" click_button "Comment"
end end
page.within(".notes_holder", visible: true) do page.within(".notes_holder", visible: true) do
expect(page).to have_content message expect(page).to have_content message
......
...@@ -93,14 +93,14 @@ module SharedDiffNote ...@@ -93,14 +93,14 @@ module SharedDiffNote
page.within("form[id$='#{sample_commit.line_code}']") do page.within("form[id$='#{sample_commit.line_code}']") do
fill_in 'note[note]', with: ':smile:' fill_in 'note[note]', with: ':smile:'
click_button('Add Comment') click_button('Comment')
end end
end end
end end
step 'I submit the diff comment' do step 'I submit the diff comment' do
page.within(diff_file_selector) do page.within(diff_file_selector) do
click_button("Add Comment") click_button("Comment")
end end
end end
......
...@@ -182,7 +182,7 @@ module SharedIssuable ...@@ -182,7 +182,7 @@ module SharedIssuable
page.within('.js-main-target-form') do page.within('.js-main-target-form') do
fill_in 'note[note]', with: "##{issuable.to_reference(project)}" fill_in 'note[note]', with: "##{issuable.to_reference(project)}"
click_button 'Add Comment' click_button 'Comment'
end end
end end
......
...@@ -17,7 +17,7 @@ module SharedNote ...@@ -17,7 +17,7 @@ module SharedNote
step 'I leave a comment like "XML attached"' do step 'I leave a comment like "XML attached"' do
page.within(".js-main-target-form") do page.within(".js-main-target-form") do
fill_in "note[note]", with: "XML attached" fill_in "note[note]", with: "XML attached"
click_button "Add Comment" click_button "Comment"
end end
end end
...@@ -30,7 +30,7 @@ module SharedNote ...@@ -30,7 +30,7 @@ module SharedNote
step 'I submit the comment' do step 'I submit the comment' do
page.within(".js-main-target-form") do page.within(".js-main-target-form") do
click_button "Add Comment" click_button "Comment"
end end
end end
...@@ -115,7 +115,7 @@ module SharedNote ...@@ -115,7 +115,7 @@ module SharedNote
step 'I leave a comment with a header containing "Comment with a header"' do step 'I leave a comment with a header containing "Comment with a header"' do
page.within(".js-main-target-form") do page.within(".js-main-target-form") do
fill_in "note[note]", with: "# Comment with a header" fill_in "note[note]", with: "# Comment with a header"
click_button "Add Comment" click_button "Comment"
sleep 0.05 sleep 0.05
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment