Fix merge requests feature tests

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2016-10-16 20:40:52 +03:00
parent b1b197ae5e
commit 9e30b75e9c
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -1,5 +1,8 @@
require Rails.root.join('features/support/wait_for_ajax')
module SharedNote
include Spinach::DSL
include WaitForAjax
step 'I delete a comment' do
page.within('.main-notes-list') do
@ -116,8 +119,9 @@ module SharedNote
page.within(".js-main-target-form") do
fill_in "note[note]", with: "# Comment with a header"
click_button "Comment"
sleep 0.05
end
wait_for_ajax
end
step 'The comment with the header should not have an ID' do