Commit 6fe33804 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Remove dropdown containing CI Lint button on builds page

Link to CI Lint on builds page will be a separate button from now on.
parent 7506afe1
...@@ -9,15 +9,9 @@ ...@@ -9,15 +9,9 @@
= link_to 'Cancel running', cancel_all_namespace_project_builds_path(@project.namespace, @project), = link_to 'Cancel running', cancel_all_namespace_project_builds_path(@project.namespace, @project),
data: { confirm: 'Are you sure?' }, class: 'btn btn-danger', method: :post data: { confirm: 'Are you sure?' }, class: 'btn btn-danger', method: :post
.dropdown.inline = link_to ci_lint_path, class: 'btn btn-default' do
%button.btn.btn-default.dropdown-toggle{ type: 'button', id: 'tools-dropdown', 'data-toggle' => 'dropdown' } = icon('wrench')
Tools %span CI Lint
%span.caret
%ul.dropdown-menu.dropdown-menu-right
%li
= link_to ci_lint_path do
= icon('wrench')
%span CI Lint Tool
%ul.nav-links %ul.nav-links
%li{class: ('active' if @scope.nil?)} %li{class: ('active' if @scope.nil?)}
......
...@@ -12,4 +12,4 @@ Feature: Project Builds Summary ...@@ -12,4 +12,4 @@ Feature: Project Builds Summary
Scenario: I browse project builds page Scenario: I browse project builds page
When I visit project builds page When I visit project builds page
Then I see button to CI Lint Tool Then I see button to CI Lint
...@@ -12,9 +12,9 @@ class Spinach::Features::ProjectBuildsSummary < Spinach::FeatureSteps ...@@ -12,9 +12,9 @@ class Spinach::Features::ProjectBuildsSummary < Spinach::FeatureSteps
expect(page).to have_css '#build-trace' expect(page).to have_css '#build-trace'
end end
step 'I see button to CI Lint Tool' do step 'I see button to CI Lint' do
page.within('.controls') 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 expect(ci_lint_tool_link[:href]).to eq ci_lint_path
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment