Skip to content
Snippets Groups Projects
Verified Commit 9e30b75e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix merge requests feature tests

parent b1b197ae
No related branches found
No related tags found
1 merge request!6916Fix Spinach merge request diff failures
Pipeline #
require Rails.root.join('features/support/wait_for_ajax')
module SharedNote module SharedNote
include Spinach::DSL include Spinach::DSL
include WaitForAjax
   
step 'I delete a comment' do step 'I delete a comment' do
page.within('.main-notes-list') do page.within('.main-notes-list') do
Loading
@@ -116,8 +119,9 @@ module SharedNote
Loading
@@ -116,8 +119,9 @@ module SharedNote
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 "Comment" click_button "Comment"
sleep 0.05
end end
wait_for_ajax
end end
   
step 'The comment with the header should not have an ID' do step 'The comment with the header should not have an ID' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment