Commit aa74a704 authored by Regis's avatar Regis

first manual build test passing

parent 473addf1
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
v-if='pipeline.details.manual_actions.length > 0' v-if='pipeline.details.manual_actions.length > 0'
class="dropdown-toggle btn btn-default" class="dropdown-toggle btn btn-default"
data-toggle="dropdown" data-toggle="dropdown"
type="button"
title="Manual build" title="Manual build"
alt="Manual Build"
> >
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 11" class="icon-play"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 11" class="icon-play">
<path <path
......
...@@ -117,23 +117,18 @@ describe "Pipelines", feature: true, js: true do ...@@ -117,23 +117,18 @@ describe "Pipelines", feature: true, js: true do
before do before do
visit namespace_project_pipelines_path(project.namespace, project) visit namespace_project_pipelines_path(project.namespace, project)
end
it do
wait_for_vue_resource wait_for_vue_resource
expect(page).to have_link('Manual build')
end end
it { expect(page).to have_selector('.dropdown-toggle.btn.btn-default .icon-play') }
context 'when playing' do context 'when playing' do
before do before do
wait_for_vue_resource wait_for_vue_resource
click_link('Manual build') click_link('Manual build')
end end
it do it { expect(manual.reload).to be_pending }
wait_for_vue_resource
expect(manual.reload).to be_pending
end
end end
end end
...@@ -150,6 +145,7 @@ describe "Pipelines", feature: true, js: true do ...@@ -150,6 +145,7 @@ describe "Pipelines", feature: true, js: true do
before do before do
visit namespace_project_pipelines_path(project.namespace, project) visit namespace_project_pipelines_path(project.namespace, project)
wait_for_vue_resource
end end
it 'is cancelable' do it 'is cancelable' do
......
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