Commit af2edf28 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '65705-two-buttons' into 'master'

Removes duplicate button from job log page

Closes #65705

See merge request gitlab-org/gitlab-ce!31544
parents e17350be 8bed16ee
......@@ -81,7 +81,7 @@ export default {
:variables-settings-url="variablesSettingsUrl"
/>
<div class="text-content">
<div v-if="action" class="text-center">
<div v-if="action && !shouldRenderManualVariables" class="text-center">
<gl-link
:href="action.path"
:data-method="action.method"
......
---
title: Prevent duplicated trigger action button
merge_request:
author:
type: fixed
......@@ -105,7 +105,7 @@ describe('Empty State', () => {
});
describe('with playbale action and not scheduled job', () => {
it('renders manual variables form', () => {
beforeEach(() => {
vm = mountComponent(Component, {
...props,
content,
......@@ -117,9 +117,15 @@ describe('Empty State', () => {
method: 'post',
},
});
});
it('renders manual variables form', () => {
expect(vm.$el.querySelector('.js-manual-vars-form')).not.toBeNull();
});
it('does not render the empty state action', () => {
expect(vm.$el.querySelector('.js-job-empty-state-action')).toBeNull();
});
});
describe('with playbale action and scheduled job', () => {
......
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