diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2016-06-10 15:44:21 +0000 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2016-06-10 15:44:21 +0000 |
commit | d6de816982eb9a227a384c3318d050a23ad18529 (patch) | |
tree | 0bc599d09f5c3c4d8bca5ce3d572a5101f721a06 /spec/features | |
parent | bedb711453d618e16bccc1e150d7a6437d8342d0 (diff) | |
parent | 998c688699db68a6dd1fb5e6459b1a787deabcef (diff) | |
download | gitlab-ce-d6de816982eb9a227a384c3318d050a23ad18529.tar.gz |
Merge branch 'ci-page-ui-update' into 'master'
CI build page UI update
Closes #2569
See merge request !3829
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/builds_spec.rb | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/spec/features/builds_spec.rb b/spec/features/builds_spec.rb index df221ab1f3b..b8ecc356b4d 100644 --- a/spec/features/builds_spec.rb +++ b/spec/features/builds_spec.rb @@ -93,9 +93,7 @@ describe "Builds" do end it 'has button to download artifacts' do - page.within('.artifacts') do - expect(page).to have_content 'Download' - end + expect(page).to have_content 'Download' end end @@ -107,9 +105,7 @@ describe "Builds" do end it do - page.within('.build-controls') do - expect(page).to have_link 'Raw' - end + expect(page).to have_link 'Raw' end end end @@ -165,15 +161,10 @@ describe "Builds" do end describe "GET /:project/builds/:id/download" do - context "Build from project" do - before do - @build.update_attributes(artifacts_file: artifacts_file) - visit namespace_project_build_path(@project.namespace, @project, @build) - page.within('.artifacts') { click_link 'Download' } - end - - it { expect(page.status_code).to eq(200) } - it { expect(page.response_headers['Content-Type']).to eq(artifacts_file.content_type) } + before do + @build.update_attributes(artifacts_file: artifacts_file) + visit namespace_project_build_path(@project.namespace, @project, @build) + click_link 'Download' end context "Build from other project" do @@ -193,7 +184,7 @@ describe "Builds" do @build.run! @build.trace = 'BUILD TRACE' visit namespace_project_build_path(@project.namespace, @project, @build) - page.within('.build-controls') { click_link 'Raw' } + page.within('.js-build-sidebar') { click_link 'Raw' } end it 'sends the right headers' do |