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:
authorMike Greiling <mike@pixelcog.com>2018-07-11 23:31:41 +0300
committerMike Greiling <mike@pixelcog.com>2018-07-11 23:31:41 +0300
commit0db5ccc80ecacd8a728d0cac263b3d952b527e3d (patch)
tree846ee91b35f904e995f2e0e5f3020ec1367f2ec1 /spec/features/projects_spec.rb
parentc74e57bb99cd2e6c292e62c313546fb3afc6a881 (diff)
parentb40c468b35ecdbef8be490ec0933afb253fad0c6 (diff)
Merge branch '48934' into 'master'
Fix #48934 - Focus on text input on danger confirmation Closes #48934 See merge request gitlab-org/gitlab-ce!20435
Diffstat (limited to 'spec/features/projects_spec.rb')
-rw-r--r--spec/features/projects_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/features/projects_spec.rb b/spec/features/projects_spec.rb
index 00946bccd9a..39b47d99040 100644
--- a/spec/features/projects_spec.rb
+++ b/spec/features/projects_spec.rb
@@ -155,6 +155,12 @@ describe 'Project' do
visit edit_project_path(project)
end
+ it 'focuses on the confirmation field' do
+ click_button 'Remove project'
+
+ expect(page).to have_selector '#confirm_name_input:focus'
+ end
+
it 'removes a project' do
expect { remove_with_confirm('Remove project', project.path) }.to change { Project.count }.by(-1)
expect(page).to have_content "Project '#{project.full_name}' is in the process of being deleted."