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">
<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">
<!-- svg goes here -->
</span>

View File

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

View File

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