about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
authorguigeekz <pattusg@gmail.com>2020-03-08 16:04:03 +0100
committerGitHub <noreply@github.com>2020-03-08 16:04:03 +0100
commite31ba618d4e2449727118bbd358a079f544c1a8f (patch)
treed200215ce54877e0379e992af4b0809e172ab061 /spec
parentfd76955f3942bbd7ec830ab535bc31621cac14a4 (diff)
Add submit button to the top of preferences pages (#13068)
* Move submit button to the top of the edit page

* Duplicate save button on long form

* Fix click submit on profile spec
Diffstat (limited to 'spec')
-rw-r--r--spec/features/profile_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/profile_spec.rb b/spec/features/profile_spec.rb
index 3202167ca..b6de3e9d1 100644
--- a/spec/features/profile_spec.rb
+++ b/spec/features/profile_spec.rb
@@ -39,7 +39,7 @@ feature 'Profile' do
     visit settings_profile_path
     fill_in 'Display name', with: 'Bob'
     fill_in 'Bio', with: 'Bob is silent'
-    click_on 'Save changes'
+    first('.btn[type=submit]').click
     is_expected.to have_content 'Changes successfully saved!'
 
     # View my own public profile and see the changes