Commit 130a1e86 authored by Douwe Maan's avatar Douwe Maan

Fix specs

parent c8cea68f
...@@ -3,7 +3,7 @@ module SlashCommandsHelpers ...@@ -3,7 +3,7 @@ module SlashCommandsHelpers
Sidekiq::Testing.fake! do Sidekiq::Testing.fake! do
page.within('.js-main-target-form') do page.within('.js-main-target-form') do
fill_in 'note[note]', with: text fill_in 'note[note]', with: text
find('.comment-btn').trigger('click') find('.js-comment-submit-button').trigger('click')
end end
end end
end end
......
...@@ -77,6 +77,6 @@ end ...@@ -77,6 +77,6 @@ end
def submit_time(slash_command) def submit_time(slash_command)
fill_in 'note[note]', with: slash_command fill_in 'note[note]', with: slash_command
find('.comment-btn').trigger('click') find('.js-comment-submit-button').trigger('click')
wait_for_ajax wait_for_ajax
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