diff options
| author | teddywing | 2018-01-10 15:07:18 +0100 |
|---|---|---|
| committer | GitHub | 2018-01-10 15:07:18 +0100 |
| commit | 26b4c1aa0ba40b6a02de529024f1bb213db072df (patch) | |
| tree | 56859d023612b98325f41d7bb8f8174ee226ae8d /spec | |
| parent | 8acb6e53b8b49d210bbab3d8b16fdbb7409d5954 (diff) | |
| parent | db40a5f1eada6aa4f000c0ffbe6c93e3aa18fe1d (diff) | |
| download | chouette-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.rb | 9 |
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 |
