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:
Diffstat (limited to 'spec/features/import/manifest_import_spec.rb')
-rw-r--r--spec/features/import/manifest_import_spec.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/spec/features/import/manifest_import_spec.rb b/spec/features/import/manifest_import_spec.rb
index dfd6211a683..520cf850da2 100644
--- a/spec/features/import/manifest_import_spec.rb
+++ b/spec/features/import/manifest_import_spec.rb
@@ -37,11 +37,20 @@ RSpec.describe 'Import multiple repositories by uploading a manifest file', :js
wait_for_requests
page.within(second_row) do
- expect(page).to have_content 'Done'
+ expect(page).to have_content 'Complete'
expect(page).to have_content("#{group.full_path}/build/blueprint")
end
end
+ it 'renders an error if the remote url scheme starts with javascript' do
+ visit new_import_manifest_path
+
+ attach_file('manifest', Rails.root.join('spec/fixtures/unsafe_javascript.xml'))
+ click_on 'List available repositories'
+
+ expect(page).to have_content 'Make sure the url does not start with javascript'
+ end
+
it 'renders an error if invalid file was provided' do
visit new_import_manifest_path