Commit 022764cc authored by Filipa Lacerda's avatar Filipa Lacerda

Tests

parent 1571d468
......@@ -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>
......
......@@ -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
......
......@@ -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', () => {
......
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