aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorteddywing2018-01-10 15:07:18 +0100
committerGitHub2018-01-10 15:07:18 +0100
commit26b4c1aa0ba40b6a02de529024f1bb213db072df (patch)
tree56859d023612b98325f41d7bb8f8174ee226ae8d /spec
parent8acb6e53b8b49d210bbab3d8b16fdbb7409d5954 (diff)
parentdb40a5f1eada6aa4f000c0ffbe6c93e3aa18fe1d (diff)
downloadchouette-core-26b4c1aa0ba40b6a02de529024f1bb213db072df.tar.bz2
Merge pull request #223 from af83/5525-prevent-double-submission
5525 Add a `disable-with` attr on all submit buttons
Diffstat (limited to 'spec')
-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