Commit 3e1d9e70 authored by Mike Nichols's avatar Mike Nichols Committed by Paul Slaughter

Remove secondary variant from agent modal cancel button

This commit removes the secondary variant from the agent modal
cancel button.

Changelog: fixed
parent 4e73f3d4
......@@ -408,8 +408,6 @@ export default {
<gl-button
v-if="isEmptyStateModal"
variant="confirm"
category="secondary"
:data-track-action="$options.EVENT_ACTIONS_CLICK"
:data-track-label="$options.EVENT_LABEL_MODAL"
data-track-property="done"
......
......@@ -309,12 +309,13 @@ describe('InstallAgentModal', () => {
describe('when KAS is disabled', () => {
const i18n = I18N_AGENT_MODAL.empty_state;
beforeEach(() => {
beforeEach(async () => {
apolloProvider = createMockApollo([
[getAgentConfigurations, jest.fn().mockResolvedValue(kasDisabledErrorResponse)],
]);
return mockSelectedAgentResponse();
createWrapper();
await waitForPromises();
});
it('renders empty state image', () => {
......@@ -328,8 +329,8 @@ describe('InstallAgentModal', () => {
});
it('renders a cancel button', () => {
expect(findActionButton().isVisible()).toBe(true);
expect(findActionButton().text()).toBe(i18n.done);
expect(findCancelButton().isVisible()).toBe(true);
expect(findCancelButton().text()).toBe(i18n.done);
});
it("doesn't render a secondary button", () => {
......
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