From 9becd65c404bf84b9f7b18b91bc9e20b194c1294 Mon Sep 17 00:00:00 2001 From: Zog Date: Wed, 10 Jan 2018 12:30:21 +0100 Subject: Refs #5525 @1h; Add a `diable-with` attr on all submit buttons --- spec/features/safe_submit_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 spec/features/safe_submit_spec.rb (limited to 'spec/features/safe_submit_spec.rb') 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 -- cgit v1.2.3