Commit 33ca6966 authored by Tim Zallmann's avatar Tim Zallmann

Fixing Tests and CSS display

parent 38a98662
......@@ -725,9 +725,9 @@ button.mini-pipeline-graph-dropdown-toggle {
fill: $gl-text-color-secondary;
width: $ci-action-icon-size;
height: $ci-action-icon-size;
left: -6px;
left: -3px;
position: relative;
top: -3px;
top: 0;
}
&:hover svg,
......@@ -743,6 +743,14 @@ button.mini-pipeline-graph-dropdown-toggle {
left: 8px;
}
}
svg.icon-action-play,
svg.icon-action-stop {
width: 12px;
height: 12px;
top: 1px;
left: 0;
}
}
// link to the build
......
......@@ -15,5 +15,5 @@
%span.ci-build-text= subject.name
- if status.has_action?
= link_to status.action_path, class: 'ci-action-icon-wrapper js-ci-action-icon', method: status.action_method, data: { toggle: 'tooltip', title: status.action_title, container: 'body' } do
= sprite_icon(status.action_icon)
= link_to status.action_path, class: "ci-action-icon-wrapper js-ci-action-icon", method: status.action_method, data: { toggle: 'tooltip', title: status.action_title, container: 'body' } do
= sprite_icon(status.action_icon, css_class: "icon-action-#{status.action_icon}")
......@@ -86,8 +86,8 @@ describe 'Pipeline', :js do
expect(page).to have_content('build')
end
page.within('#ci-badge-build .ci-action-icon-container') do
expect(page).to have_selector('.js-icon-retry')
page.within('#ci-badge-build .ci-action-icon-container.js-icon-retry') do
expect(page).to have_selector('svg')
end
end
......@@ -105,8 +105,8 @@ describe 'Pipeline', :js do
expect(page).to have_content('test')
end
page.within('#ci-badge-test .ci-action-icon-container') do
expect(page).to have_selector('.js-icon-retry')
page.within('#ci-badge-test .ci-action-icon-container.js-icon-retry') do
expect(page).to have_selector('svg')
end
end
......@@ -124,8 +124,8 @@ describe 'Pipeline', :js do
expect(page).to have_content('manual')
end
page.within('#ci-badge-manual-build .ci-action-icon-container') do
expect(page).to have_selector('.js-icon-play')
page.within('#ci-badge-manual-build .ci-action-icon-container.js-icon-play') do
expect(page).to have_selector('svg')
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