summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2017-04-04 18:17:06 +0000
committerAlfredo Sumaran <alfredo@gitlab.com>2017-04-04 18:17:06 +0000
commit81ac42bd5b1506b82628d7b07a886de4f2f38bfa (patch)
tree6fe9a139ed22c68fe78a7102820c1916f438dc8c /spec
parent0a4b853f2ceb0ad6c7394d1056f9139e53b38688 (diff)
parente71a6c90d7e3b7a32bd2535b570d949d6abac61d (diff)
downloadgitlab-ce-81ac42bd5b1506b82628d7b07a886de4f2f38bfa.tar.gz
Merge branch '29432-prevent-click-disabled-btn' into 'master'
Prevent clicking on disabled button Closes #29432 See merge request !9931
Diffstat (limited to 'spec')
-rw-r--r--spec/features/projects/import_export/import_file_spec.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/features/projects/import_export/import_file_spec.rb b/spec/features/projects/import_export/import_file_spec.rb
index 2d1106ea3e8..583f479ec18 100644
--- a/spec/features/projects/import_export/import_file_spec.rb
+++ b/spec/features/projects/import_export/import_file_spec.rb
@@ -69,12 +69,8 @@ feature 'Import/Export - project import integration test', feature: true, js: tr
select2(namespace.id, from: '#project_namespace_id')
- # click on disabled element
- find(:link, 'GitLab export').trigger('click')
-
- page.within('.flash-container') do
- expect(page).to have_content('Please enter path and name')
- end
+ # Check for tooltip disabled import button
+ expect(find('.import_gitlab_project')['title']).to eq('Please enter a valid project name.')
end
end