aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features/safe_submit_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/safe_submit_spec.rb')
-rw-r--r--spec/features/safe_submit_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/features/safe_submit_spec.rb b/spec/features/safe_submit_spec.rb
new file mode 100644
index 000000000..9968d4310
--- /dev/null
+++ b/spec/features/safe_submit_spec.rb
@@ -0,0 +1,9 @@
+RSpec.describe 'SafeSubmit', type: :feature do
+ login_user
+
+ let( :path ){ new_api_key_path() }
+ it 'view shows the corresponding buttons' do
+ visit path
+ expect(page).to have_css('input[type=submit][data-disable-with]')
+ end
+end