Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamie Schembri <jamie@schembri.me>2018-07-06 17:14:31 +0300
committerJamie Schembri <jamie@schembri.me>2018-07-06 17:20:44 +0300
commitb40c468b35ecdbef8be490ec0933afb253fad0c6 (patch)
treef10d1fbbb335cf559476a5ddea2406a8a668984e /spec/features/groups_spec.rb
parentb14b31b819f0f09d73e001a80acd528aad913dc9 (diff)
Fix #48934 - Focus on text input on danger confirmation
Diffstat (limited to 'spec/features/groups_spec.rb')
-rw-r--r--spec/features/groups_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/features/groups_spec.rb b/spec/features/groups_spec.rb
index 053e3b189c3..e62bd6f8187 100644
--- a/spec/features/groups_spec.rb
+++ b/spec/features/groups_spec.rb
@@ -154,6 +154,12 @@ describe 'Group' do
end
end
+ it 'focuses confirmation field on remove group' do
+ click_button('Remove group')
+
+ expect(page).to have_selector '#confirm_name_input:focus'
+ end
+
it 'removes group' do
expect { remove_with_confirm('Remove group', group.path) }.to change {Group.count}.by(-1)
expect(group.members.all.count).to be_zero