Commit e9f8eb31 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'xanf-vtu-v1-is' into 'master'

Upgrading VTU to v1: Replace invoking `is` with string

See merge request gitlab-org/gitlab!50516
parents 24bb2839 74a00ae1
......@@ -20,7 +20,7 @@ describe('MrWidgetIcon', () => {
});
it('renders icon and container', () => {
expect(wrapper.is('.circle-icon-container')).toBe(true);
expect(wrapper.element.className).toContain('circle-icon-container');
expect(wrapper.find(GlIcon).props('name')).toEqual(TEST_ICON);
});
});
import { shallowMount } from '@vue/test-utils';
import { GlDropdown, GlButton } from '@gitlab/ui';
import { GlDropdown, GlDropdownDivider, GlButton } from '@gitlab/ui';
import { createMockDirective, getBinding } from 'helpers/vue_mock_directive';
import ActionsButton from '~/vue_shared/components/actions_button.vue';
......@@ -53,7 +53,7 @@ describe('Actions button component', () => {
findDropdown()
.findAll('gl-dropdown-item-stub,gl-dropdown-divider-stub')
.wrappers.map((x) => {
if (x.is('gl-dropdown-divider-stub')) {
if (x.is(GlDropdownDivider)) {
return { type: 'divider' };
}
......
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