Commit fca529c6 authored by George Tsiolis's avatar George Tsiolis

Update maintenance mode settings button spec

parent b14fa952
import { shallowMount } from '@vue/test-utils'; import { shallowMount } from '@vue/test-utils';
import MaintenanceModeSettingsApp from '~/maintenance_mode_settings/components/app.vue'; import MaintenanceModeSettingsApp from '~/maintenance_mode_settings/components/app.vue';
import { GlToggle, GlFormTextarea, GlDeprecatedButton } from '@gitlab/ui'; import { GlToggle, GlFormTextarea, GlButton } from '@gitlab/ui';
describe('MaintenanceModeSettingsApp', () => { describe('MaintenanceModeSettingsApp', () => {
let wrapper; let wrapper;
...@@ -16,7 +16,7 @@ describe('MaintenanceModeSettingsApp', () => { ...@@ -16,7 +16,7 @@ describe('MaintenanceModeSettingsApp', () => {
const findMaintenanceModeSettingsContainer = () => wrapper.find('article'); const findMaintenanceModeSettingsContainer = () => wrapper.find('article');
const findGlToggle = () => wrapper.find(GlToggle); const findGlToggle = () => wrapper.find(GlToggle);
const findGlFormTextarea = () => wrapper.find(GlFormTextarea); const findGlFormTextarea = () => wrapper.find(GlFormTextarea);
const findGlButton = () => wrapper.find(GlDeprecatedButton); const findGlButton = () => wrapper.find(GlButton);
describe('template', () => { describe('template', () => {
beforeEach(() => { beforeEach(() => {
...@@ -35,7 +35,7 @@ describe('MaintenanceModeSettingsApp', () => { ...@@ -35,7 +35,7 @@ describe('MaintenanceModeSettingsApp', () => {
expect(findGlFormTextarea().exists()).toBe(true); expect(findGlFormTextarea().exists()).toBe(true);
}); });
it('renders the GlDeprecatedButton', () => { it('renders the GlButton', () => {
expect(findGlButton().exists()).toBe(true); expect(findGlButton().exists()).toBe(true);
}); });
}); });
......
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