aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features/safe_submit_spec.rb
diff options
context:
space:
mode:
authorZog2018-01-10 12:30:21 +0100
committerZog2018-01-10 12:30:21 +0100
commit9becd65c404bf84b9f7b18b91bc9e20b194c1294 (patch)
tree63dde1a71b74cc5ab8219f1aac10481c92332768 /spec/features/safe_submit_spec.rb
parent2fa6e52c311a0ca63d6bb6339bb056ee0dad5b8c (diff)
downloadchouette-core-9becd65c404bf84b9f7b18b91bc9e20b194c1294.tar.bz2
Refs #5525 @1h; Add a `diable-with` attr on all submit buttons
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