Remove dropdown containing CI Lint button on builds page

Link to CI Lint on builds page will be a separate button from now on.
This commit is contained in:
Grzegorz Bizon 2016-01-18 08:12:31 +01:00
parent 7506afe14b
commit 6fe33804dc
3 changed files with 6 additions and 12 deletions

View file

@ -9,15 +9,9 @@
= link_to 'Cancel running', cancel_all_namespace_project_builds_path(@project.namespace, @project),
data: { confirm: 'Are you sure?' }, class: 'btn btn-danger', method: :post
.dropdown.inline
%button.btn.btn-default.dropdown-toggle{ type: 'button', id: 'tools-dropdown', 'data-toggle' => 'dropdown' }
Tools
%span.caret
%ul.dropdown-menu.dropdown-menu-right
%li
= link_to ci_lint_path do
= icon('wrench')
%span CI Lint Tool
= link_to ci_lint_path, class: 'btn btn-default' do
= icon('wrench')
%span CI Lint
%ul.nav-links
%li{class: ('active' if @scope.nil?)}

View file

@ -12,4 +12,4 @@ Feature: Project Builds Summary
Scenario: I browse project builds page
When I visit project builds page
Then I see button to CI Lint Tool
Then I see button to CI Lint

View file

@ -12,9 +12,9 @@ class Spinach::Features::ProjectBuildsSummary < Spinach::FeatureSteps
expect(page).to have_css '#build-trace'
end
step 'I see button to CI Lint Tool' do
step 'I see button to CI Lint' do
page.within('.controls') do
ci_lint_tool_link = page.find_link('CI Lint Tool')
ci_lint_tool_link = page.find_link('CI Lint')
expect(ci_lint_tool_link[:href]).to eq ci_lint_path
end
end