This commit is contained in:
Filipa Lacerda 2016-11-16 17:24:49 +00:00
parent 1571d4686d
commit 022764cc76
3 changed files with 3 additions and 5 deletions

View file

@ -51,7 +51,7 @@
<ul class="dropdown-menu dropdown-menu-align-right"> <ul class="dropdown-menu dropdown-menu-align-right">
<li v-for="action in actions"> <li v-for="action in actions">
<a :href="action.play_url" data-method="post" rel="nofollow"> <a :href="action.play_url" data-method="post" data-rel="nofollow" class="js-manual-action-link">
<span class="action-play-icon-container"> <span class="action-play-icon-container">
<!-- svg goes here --> <!-- svg goes here -->
</span> </span>

View file

@ -75,14 +75,12 @@ feature 'Environments', feature: true, js: true do
scenario 'does show a play button' do scenario 'does show a play button' do
# TODO: Fix me! # TODO: Fix me!
binding.pry expect(page).to have_content(manual.name.humanize)
expect(page).to have_link(manual.name.humanize)
end end
scenario 'does allow to play manual action' do scenario 'does allow to play manual action' do
expect(manual).to be_skipped expect(manual).to be_skipped
# TODO: Fix me! # TODO: Fix me!
binding.pry
expect{ click_link(manual.name.humanize) }.not_to change { Ci::Pipeline.count } expect{ click_link(manual.name.humanize) }.not_to change { Ci::Pipeline.count }
expect(page).to have_content(manual.name) expect(page).to have_content(manual.name)
expect(manual.reload).to be_pending expect(manual.reload).to be_pending

View file

@ -14,7 +14,7 @@ describe('Stop Component', () => {
stop_url: stopURL, stop_url: stopURL,
}, },
}); });
expect(component.$el.getAttribute('href')).toEqual(stopURL); expect(component.$el.getAttribute('href')).toEqual(`${stopURL}/stop`);
}); });
describe('When clicked', () => { describe('When clicked', () => {