summaryrefslogtreecommitdiff
path: root/spec/support/slash_commands_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/slash_commands_helpers.rb')
-rw-r--r--spec/support/slash_commands_helpers.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/support/slash_commands_helpers.rb b/spec/support/slash_commands_helpers.rb
new file mode 100644
index 00000000000..df483afa0e3
--- /dev/null
+++ b/spec/support/slash_commands_helpers.rb
@@ -0,0 +1,10 @@
+module SlashCommandsHelpers
+ def write_note(text)
+ Sidekiq::Testing.fake! do
+ page.within('.js-main-target-form') do
+ fill_in 'note[note]', with: text
+ click_button 'Comment'
+ end
+ end
+ end
+end