diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2017-04-26 18:57:44 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-04-26 18:57:44 +0300 |
commit | df85a7c00439f7a9636b6f46448336d76df7f7da (patch) | |
tree | d59481d95e0f8dfcc48a382ae3dd707b18e32e6a /spec/features/projects/files | |
parent | 61afa9b5c45deccda81bddf33bb1cd6bc69280fd (diff) |
Submodule Dockerfile templates
Diffstat (limited to 'spec/features/projects/files')
-rw-r--r-- | spec/features/projects/files/dockerfile_dropdown_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/features/projects/files/dockerfile_dropdown_spec.rb b/spec/features/projects/files/dockerfile_dropdown_spec.rb index a7cc98a2059..548131c7cd4 100644 --- a/spec/features/projects/files/dockerfile_dropdown_spec.rb +++ b/spec/features/projects/files/dockerfile_dropdown_spec.rb @@ -1,11 +1,14 @@ require 'spec_helper' +require 'fileutils' feature 'User wants to add a Dockerfile file', feature: true do before do user = create(:user) project = create(:project) project.team << [user, :master] + login_as user + visit namespace_project_new_blob_path(project.namespace, project, 'master', file_name: 'Dockerfile') end @@ -15,11 +18,14 @@ feature 'User wants to add a Dockerfile file', feature: true do scenario 'user can pick a Dockerfile file from the dropdown', js: true do find('.js-dockerfile-selector').click + wait_for_ajax + within '.dockerfile-selector' do find('.dropdown-input-field').set('HTTPd') find('.dropdown-content li', text: 'HTTPd').click end + wait_for_ajax expect(page).to have_css('.dockerfile-selector .dropdown-toggle-text', text: 'HTTPd') |