Commit d86519eb authored by Sarah Groff Hennigh-Palermo's avatar Sarah Groff Hennigh-Palermo

Merge branch 'renovate/gitlab-uisvg' into 'master'

Update dependency @gitlab/ui to v25.2.1

See merge request gitlab-org/gitlab!50627
parents c5fe4d87 cca8b93a
import { GlAlert, GlTable, GlEmptyState, GlIntersectionObserver, GlLoadingIcon } from '@gitlab/ui';
import {
GlAlert,
GlTable,
GlEmptyState,
GlIntersectionObserver,
GlLoadingIcon,
GlButton,
} from '@gitlab/ui';
import { shallowMount } from '@vue/test-utils';
import FirstClassGroupVulnerabilities from 'ee/security_dashboard/components/first_class_group_security_dashboard_vulnerabilities.vue';
import VulnerabilityList from 'ee/security_dashboard/components/vulnerability_list.vue';
......@@ -74,7 +81,7 @@ describe('First Class Group Dashboard Vulnerabilities Component', () => {
it('should have an alert that is dismissable', () => {
const alert = findAlert();
alert.find('button').trigger('click');
alert.find(GlButton).vm.$emit('click');
return wrapper.vm.$nextTick(() => {
expect(alert.exists()).toBe(false);
});
......
import { GlAlert, GlTable, GlEmptyState, GlIntersectionObserver, GlLoadingIcon } from '@gitlab/ui';
import {
GlAlert,
GlButton,
GlTable,
GlEmptyState,
GlIntersectionObserver,
GlLoadingIcon,
} from '@gitlab/ui';
import { shallowMount, createLocalVue } from '@vue/test-utils';
import Vuex from 'vuex';
import FirstClassInstanceVulnerabilities from 'ee/security_dashboard/components/first_class_instance_security_dashboard_vulnerabilities.vue';
......@@ -93,7 +100,7 @@ describe('First Class Instance Dashboard Vulnerabilities Component', () => {
it('should have an alert that is dismissable', () => {
const alert = findAlert();
alert.find('button').trigger('click');
alert.find(GlButton).vm.$emit('click');
return wrapper.vm.$nextTick(() => {
expect(alert.exists()).toBe(false);
});
......
......@@ -6,10 +6,10 @@ exports[`NetworkPolicyList component renders policies table 1`] = `
<table
aria-busy="false"
aria-colcount="3"
aria-describedby="__BVID__333__caption_"
aria-describedby="__BVID__335__caption_"
aria-multiselectable="false"
class="table b-table gl-table table-hover b-table-stacked-md b-table-selectable b-table-select-single"
id="__BVID__333"
id="__BVID__335"
role="table"
>
<!---->
......
import { shallowMount } from '@vue/test-utils';
import { GlBanner } from '@gitlab/ui';
import { GlBanner, GlButton } from '@gitlab/ui';
import { mockTracking, unmockTracking } from 'helpers/tracking_helper';
import { setCookie, parseBoolean } from '~/lib/utils/common_utils';
import InviteMembersBanner from '~/groups/components/invite_members_banner.vue';
......@@ -107,14 +107,12 @@ describe('InviteMembersBanner', () => {
});
describe('dismissing', () => {
const findButton = () => {
return wrapper.find('button');
};
const findButton = () => wrapper.findAll(GlButton).at(1);
beforeEach(() => {
wrapper = createComponent({ GlBanner });
findButton().trigger('click');
findButton().vm.$emit('click');
});
it('sets iDismissed to true', () => {
......
......@@ -19,7 +19,7 @@ describe('Submit Changes Error', () => {
});
};
const findRetryButton = () => wrapper.find(GlButton);
const findRetryButton = () => wrapper.findAll(GlButton).at(1);
const findAlert = () => wrapper.find(GlAlert);
beforeEach(() => {
......
......@@ -871,10 +871,10 @@
resolved "https://registry.yarnpkg.com/@gitlab/tributejs/-/tributejs-1.0.0.tgz#672befa222aeffc83e7d799b0500a7a4418e59b8"
integrity sha512-nmKw1+hB6MHvlmPz63yPwVs1qQkycHwsKgxpEbzmky16Y6mL4EJMk3w1b8QlOAF/AIAzjCERPhe/R4MJiohbZw==
"@gitlab/ui@25.0.1":
version "25.0.1"
resolved "https://registry.yarnpkg.com/@gitlab/ui/-/ui-25.0.1.tgz#2669cd65a19cda69af42017f39eb964072c03bf8"
integrity sha512-WLvrnVU18DaPHQghwUbYcqoK02axD639T4THDUBk3fzzOs2piXYvqDfRtT59cpaZpDS3IIHUTlPhxBCE7zv2GQ==
"@gitlab/ui@25.2.1":
version "25.2.1"
resolved "https://registry.yarnpkg.com/@gitlab/ui/-/ui-25.2.1.tgz#2c332134bbc82a6c40ff5fdb73aacccf730629d8"
integrity sha512-bOkL2sfkovCV6MO/N70Xfe+vTdyi2Vp2efgDvOx4tHzqJllM6Y379wculi0VmdGw3X4TpmPI+zLWAAZ9vkhDAQ==
dependencies:
"@babel/standalone" "^7.0.0"
"@gitlab/vue-toasted" "^1.3.0"
......
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