Commit c75dfe1a authored by Fatih Acet's avatar Fatih Acet

Merge branch 'renovate/gitlab-ui-5.x-ee' into 'master'

Update dependency @gitlab/ui to ^5.9.0

See merge request gitlab-org/gitlab-ee!14853
parents ff091990 fc123a77
...@@ -3,6 +3,7 @@ import MockAdapter from 'axios-mock-adapter'; ...@@ -3,6 +3,7 @@ import MockAdapter from 'axios-mock-adapter';
import axios from '~/lib/utils/axios_utils'; import axios from '~/lib/utils/axios_utils';
import featureFlagsComponent from 'ee/feature_flags/components/feature_flags.vue'; import featureFlagsComponent from 'ee/feature_flags/components/feature_flags.vue';
import mountComponent from 'spec/helpers/vue_mount_component_helper'; import mountComponent from 'spec/helpers/vue_mount_component_helper';
import { trimText } from 'spec/helpers/text_helper';
import { TEST_HOST } from 'spec/test_constants'; import { TEST_HOST } from 'spec/test_constants';
import { getRequestData } from '../mock_data'; import { getRequestData } from '../mock_data';
...@@ -244,7 +245,7 @@ describe('Feature Flags', () => { ...@@ -244,7 +245,7 @@ describe('Feature Flags', () => {
}); });
it('should render error state', () => { it('should render error state', () => {
expect(component.$el.querySelector('.empty-state').textContent.trim()).toContain( expect(trimText(component.$el.querySelector('.empty-state').textContent)).toContain(
'There was an error fetching the feature flags. Try again in a few moments or contact your support team.', 'There was an error fetching the feature flags. Try again in a few moments or contact your support team.',
); );
}); });
......
...@@ -82,7 +82,7 @@ describe('Grouped security reports app', () => { ...@@ -82,7 +82,7 @@ describe('Grouped security reports app', () => {
}); });
it('renders error state', () => { it('renders error state', () => {
expect(vm.$el.querySelector('.fa-spinner')).toBeNull(); expect(vm.$el.querySelector('.gl-spinner')).toBeNull();
expect(vm.$el.querySelector('.js-code-text').textContent.trim()).toEqual( expect(vm.$el.querySelector('.js-code-text').textContent.trim()).toEqual(
'Security scanning failed loading any results', 'Security scanning failed loading any results',
); );
...@@ -136,7 +136,7 @@ describe('Grouped security reports app', () => { ...@@ -136,7 +136,7 @@ describe('Grouped security reports app', () => {
}); });
it('renders loading summary text + spinner', () => { it('renders loading summary text + spinner', () => {
expect(vm.$el.querySelector('.spinner')).not.toBeNull(); expect(vm.$el.querySelector('.gl-spinner')).not.toBeNull();
expect(vm.$el.querySelector('.js-code-text').textContent.trim()).toEqual( expect(vm.$el.querySelector('.js-code-text').textContent.trim()).toEqual(
'Security scanning is loading', 'Security scanning is loading',
); );
...@@ -197,7 +197,7 @@ describe('Grouped security reports app', () => { ...@@ -197,7 +197,7 @@ describe('Grouped security reports app', () => {
it('renders reports', () => { it('renders reports', () => {
// It's not loading // It's not loading
expect(vm.$el.querySelector('.fa-spinner')).toBeNull(); expect(vm.$el.querySelector('.gl-spinner')).toBeNull();
// Renders the summary text // Renders the summary text
expect(vm.$el.querySelector('.js-code-text').textContent.trim()).toEqual( expect(vm.$el.querySelector('.js-code-text').textContent.trim()).toEqual(
......
...@@ -54,7 +54,7 @@ describe('Split security reports app', () => { ...@@ -54,7 +54,7 @@ describe('Split security reports app', () => {
}); });
it('renders loading summary text + spinner', done => { it('renders loading summary text + spinner', done => {
expect(vm.$el.querySelector('.spinner')).not.toBeNull(); expect(vm.$el.querySelector('.gl-spinner')).not.toBeNull();
expect(vm.$el.textContent).toContain('SAST is loading'); expect(vm.$el.textContent).toContain('SAST is loading');
expect(vm.$el.textContent).toContain('Dependency scanning is loading'); expect(vm.$el.textContent).toContain('Dependency scanning is loading');
...@@ -99,7 +99,7 @@ describe('Split security reports app', () => { ...@@ -99,7 +99,7 @@ describe('Split security reports app', () => {
it('renders reports', done => { it('renders reports', done => {
setTimeout(() => { setTimeout(() => {
expect(vm.$el.querySelector('.fa-spinner')).toBeNull(); expect(vm.$el.querySelector('.gl-spinner')).toBeNull();
expect(vm.$el.textContent).toContain('SAST detected 3 vulnerabilities'); expect(vm.$el.textContent).toContain('SAST detected 3 vulnerabilities');
expect(vm.$el.textContent).toContain('Dependency scanning detected 3 vulnerabilities'); expect(vm.$el.textContent).toContain('Dependency scanning detected 3 vulnerabilities');
...@@ -118,7 +118,7 @@ describe('Split security reports app', () => { ...@@ -118,7 +118,7 @@ describe('Split security reports app', () => {
it('renders all reports collapsed by default', done => { it('renders all reports collapsed by default', done => {
setTimeout(() => { setTimeout(() => {
expect(vm.$el.querySelector('.fa-spinner')).toBeNull(); expect(vm.$el.querySelector('.gl-spinner')).toBeNull();
expect(vm.$el.querySelector('.js-collapse-btn').textContent.trim()).toEqual('Expand'); expect(vm.$el.querySelector('.js-collapse-btn').textContent.trim()).toEqual('Expand');
const reports = vm.$el.querySelectorAll('.js-report-section-container'); const reports = vm.$el.querySelectorAll('.js-report-section-container');
...@@ -135,7 +135,7 @@ describe('Split security reports app', () => { ...@@ -135,7 +135,7 @@ describe('Split security reports app', () => {
vm.alwaysOpen = true; vm.alwaysOpen = true;
setTimeout(() => { setTimeout(() => {
expect(vm.$el.querySelector('.fa-spinner')).toBeNull(); expect(vm.$el.querySelector('.gl-spinner')).toBeNull();
expect(vm.$el.querySelector('.js-collapse-btn')).toBeNull(); expect(vm.$el.querySelector('.js-collapse-btn')).toBeNull();
const reports = vm.$el.querySelectorAll('.js-report-section-container'); const reports = vm.$el.querySelectorAll('.js-report-section-container');
...@@ -181,7 +181,7 @@ describe('Split security reports app', () => { ...@@ -181,7 +181,7 @@ describe('Split security reports app', () => {
it('renders error state', done => { it('renders error state', done => {
setTimeout(() => { setTimeout(() => {
expect(vm.$el.querySelector('.fa-spinner')).toBeNull(); expect(vm.$el.querySelector('.gl-spinner')).toBeNull();
expect(vm.$el.textContent).toContain('SAST: Loading resulted in an error'); expect(vm.$el.textContent).toContain('SAST: Loading resulted in an error');
expect(vm.$el.textContent).toContain('Dependency scanning: Loading resulted in an error'); expect(vm.$el.textContent).toContain('Dependency scanning: Loading resulted in an error');
......
...@@ -60,7 +60,7 @@ describe('BadgeList component', () => { ...@@ -60,7 +60,7 @@ describe('BadgeList component', () => {
Vue.nextTick() Vue.nextTick()
.then(() => { .then(() => {
const loadingIcon = vm.$el.querySelector('.spinner'); const loadingIcon = vm.$el.querySelector('.gl-spinner');
expect(loadingIcon).toBeVisible(); expect(loadingIcon).toBeVisible();
}) })
......
...@@ -15,7 +15,7 @@ describe('Badge component', () => { ...@@ -15,7 +15,7 @@ describe('Badge component', () => {
const buttons = vm.$el.querySelectorAll('button'); const buttons = vm.$el.querySelectorAll('button');
return { return {
badgeImage: vm.$el.querySelector('img.project-badge'), badgeImage: vm.$el.querySelector('img.project-badge'),
loadingIcon: vm.$el.querySelector('.spinner'), loadingIcon: vm.$el.querySelector('.gl-spinner'),
reloadButton: buttons[buttons.length - 1], reloadButton: buttons[buttons.length - 1],
}; };
}; };
......
...@@ -148,7 +148,7 @@ describe('Board list component', () => { ...@@ -148,7 +148,7 @@ describe('Board list component', () => {
component.list.loadingMore = true; component.list.loadingMore = true;
Vue.nextTick(() => { Vue.nextTick(() => {
expect(component.$el.querySelector('.board-list-count .spinner')).not.toBeNull(); expect(component.$el.querySelector('.board-list-count .gl-spinner')).not.toBeNull();
done(); done();
}); });
......
...@@ -106,7 +106,7 @@ describe('Registry List', () => { ...@@ -106,7 +106,7 @@ describe('Registry List', () => {
it('should render a loading spinner', done => { it('should render a loading spinner', done => {
Vue.nextTick(() => { Vue.nextTick(() => {
expect(vm.$el.querySelector('.spinner')).not.toBe(null); expect(vm.$el.querySelector('.gl-spinner')).not.toBe(null);
done(); done();
}); });
}); });
......
...@@ -34,7 +34,7 @@ describe('Grouped Test Reports App', () => { ...@@ -34,7 +34,7 @@ describe('Grouped Test Reports App', () => {
it('renders success summary text', done => { it('renders success summary text', done => {
setTimeout(() => { setTimeout(() => {
expect(vm.$el.querySelector('.fa-spinner')).toBeNull(); expect(vm.$el.querySelector('.gl-spinner')).toBeNull();
expect(vm.$el.querySelector('.js-code-text').textContent.trim()).toEqual( expect(vm.$el.querySelector('.js-code-text').textContent.trim()).toEqual(
'Test summary contained no changed test results out of 11 total tests', 'Test summary contained no changed test results out of 11 total tests',
); );
...@@ -61,7 +61,7 @@ describe('Grouped Test Reports App', () => { ...@@ -61,7 +61,7 @@ describe('Grouped Test Reports App', () => {
it('renders success summary text', done => { it('renders success summary text', done => {
setTimeout(() => { setTimeout(() => {
expect(vm.$el.querySelector('.spinner')).not.toBeNull(); expect(vm.$el.querySelector('.gl-spinner')).not.toBeNull();
expect(vm.$el.querySelector('.js-code-text').textContent.trim()).toEqual( expect(vm.$el.querySelector('.js-code-text').textContent.trim()).toEqual(
'Test summary results are being parsed', 'Test summary results are being parsed',
); );
...@@ -81,7 +81,7 @@ describe('Grouped Test Reports App', () => { ...@@ -81,7 +81,7 @@ describe('Grouped Test Reports App', () => {
it('renders failed summary text + new badge', done => { it('renders failed summary text + new badge', done => {
setTimeout(() => { setTimeout(() => {
expect(vm.$el.querySelector('.spinner')).toBeNull(); expect(vm.$el.querySelector('.gl-spinner')).toBeNull();
expect(vm.$el.querySelector('.js-code-text').textContent.trim()).toEqual( expect(vm.$el.querySelector('.js-code-text').textContent.trim()).toEqual(
'Test summary contained 2 failed test results out of 11 total tests', 'Test summary contained 2 failed test results out of 11 total tests',
); );
...@@ -109,7 +109,7 @@ describe('Grouped Test Reports App', () => { ...@@ -109,7 +109,7 @@ describe('Grouped Test Reports App', () => {
it('renders summary text', done => { it('renders summary text', done => {
setTimeout(() => { setTimeout(() => {
expect(vm.$el.querySelector('.spinner')).toBeNull(); expect(vm.$el.querySelector('.gl-spinner')).toBeNull();
expect(vm.$el.querySelector('.js-code-text').textContent.trim()).toEqual( expect(vm.$el.querySelector('.js-code-text').textContent.trim()).toEqual(
'Test summary contained 2 failed test results and 2 fixed test results out of 11 total tests', 'Test summary contained 2 failed test results and 2 fixed test results out of 11 total tests',
); );
...@@ -137,7 +137,7 @@ describe('Grouped Test Reports App', () => { ...@@ -137,7 +137,7 @@ describe('Grouped Test Reports App', () => {
it('renders summary text', done => { it('renders summary text', done => {
setTimeout(() => { setTimeout(() => {
expect(vm.$el.querySelector('.spinner')).toBeNull(); expect(vm.$el.querySelector('.gl-spinner')).toBeNull();
expect(vm.$el.querySelector('.js-code-text').textContent.trim()).toEqual( expect(vm.$el.querySelector('.js-code-text').textContent.trim()).toEqual(
'Test summary contained 2 fixed test results out of 11 total tests', 'Test summary contained 2 fixed test results out of 11 total tests',
); );
...@@ -190,7 +190,7 @@ describe('Grouped Test Reports App', () => { ...@@ -190,7 +190,7 @@ describe('Grouped Test Reports App', () => {
}); });
it('renders loading summary text with loading icon', done => { it('renders loading summary text with loading icon', done => {
expect(vm.$el.querySelector('.spinner')).not.toBeNull(); expect(vm.$el.querySelector('.gl-spinner')).not.toBeNull();
expect(vm.$el.querySelector('.js-code-text').textContent.trim()).toEqual( expect(vm.$el.querySelector('.js-code-text').textContent.trim()).toEqual(
'Test summary results are being parsed', 'Test summary results are being parsed',
); );
......
...@@ -18,7 +18,7 @@ describe('MR widget status icon component', () => { ...@@ -18,7 +18,7 @@ describe('MR widget status icon component', () => {
it('renders loading icon', () => { it('renders loading icon', () => {
vm = mountComponent(Component, { status: 'loading' }); vm = mountComponent(Component, { status: 'loading' });
expect(vm.$el.querySelector('.mr-widget-icon span').classList).toContain('spinner'); expect(vm.$el.querySelector('.mr-widget-icon span').classList).toContain('gl-spinner');
}); });
}); });
......
...@@ -38,7 +38,9 @@ describe('MRWidgetAutoMergeFailed', () => { ...@@ -38,7 +38,9 @@ describe('MRWidgetAutoMergeFailed', () => {
Vue.nextTick(() => { Vue.nextTick(() => {
expect(vm.$el.querySelector('button').getAttribute('disabled')).toEqual('disabled'); expect(vm.$el.querySelector('button').getAttribute('disabled')).toEqual('disabled');
expect(vm.$el.querySelector('button .loading-container span').classList).toContain('spinner'); expect(vm.$el.querySelector('button .loading-container span').classList).toContain(
'gl-spinner',
);
done(); done();
}); });
}); });
......
...@@ -20,7 +20,7 @@ describe('MRWidgetChecking', () => { ...@@ -20,7 +20,7 @@ describe('MRWidgetChecking', () => {
}); });
it('renders loading icon', () => { it('renders loading icon', () => {
expect(vm.$el.querySelector('.mr-widget-icon span').classList).toContain('spinner'); expect(vm.$el.querySelector('.mr-widget-icon span').classList).toContain('gl-spinner');
}); });
it('renders information about merging', () => { it('renders information about merging', () => {
......
...@@ -72,7 +72,7 @@ describe('File Icon component', () => { ...@@ -72,7 +72,7 @@ describe('File Icon component', () => {
const { classList } = vm.$el.querySelector('.loading-container span'); const { classList } = vm.$el.querySelector('.loading-container span');
expect(classList.contains('spinner')).toEqual(true); expect(classList.contains('gl-spinner')).toEqual(true);
}); });
it('should add a special class and a size class', () => { it('should add a special class and a size class', () => {
......
...@@ -88,7 +88,7 @@ describe('Header CI Component', () => { ...@@ -88,7 +88,7 @@ describe('Header CI Component', () => {
vm.actions[0].isLoading = true; vm.actions[0].isLoading = true;
Vue.nextTick(() => { Vue.nextTick(() => {
expect(vm.$el.querySelector('.btn .spinner').getAttribute('style')).toBeFalsy(); expect(vm.$el.querySelector('.btn .gl-spinner').getAttribute('style')).toBeFalsy();
done(); done();
}); });
}); });
......
...@@ -996,10 +996,10 @@ ...@@ -996,10 +996,10 @@
resolved "https://registry.yarnpkg.com/@gitlab/svgs/-/svgs-1.67.0.tgz#c7b94eca13b99fd3aaa737fb6dcc0abc41d3c579" resolved "https://registry.yarnpkg.com/@gitlab/svgs/-/svgs-1.67.0.tgz#c7b94eca13b99fd3aaa737fb6dcc0abc41d3c579"
integrity sha512-hJOmWEs6RkjzyKkb1vc9wwKGZIBIP0coHkxu/KgOoxhBVudpGk4CH7xJ6UuB2TKpb0SEh5CC1CzRZfBYaFhsaA== integrity sha512-hJOmWEs6RkjzyKkb1vc9wwKGZIBIP0coHkxu/KgOoxhBVudpGk4CH7xJ6UuB2TKpb0SEh5CC1CzRZfBYaFhsaA==
"@gitlab/ui@^5.7.1": "@gitlab/ui@^5.9.0":
version "5.7.1" version "5.9.0"
resolved "https://registry.yarnpkg.com/@gitlab/ui/-/ui-5.7.1.tgz#e55d04052dd6e50ed1e90676aacc64290d62c0b6" resolved "https://registry.yarnpkg.com/@gitlab/ui/-/ui-5.9.0.tgz#a38b1b57c365608b100b95969ae7a57ce1707542"
integrity sha512-F06/6z6/69LbKIK0PYRDTB/teSPUnF7LijHl4JiuYHXn7Y2/iVoLsAMikhT89RVR84orHPGnw16vtCPjSjBDrA== integrity sha512-cgvEPWVerYZNLqkHjg5dd0VhEDBWj8aNoISZCaGOWI9K4yVtpMPVRUv19o/xYm4vUexfFsG9vg9lBgd+4ZU6Yw==
dependencies: dependencies:
"@babel/standalone" "^7.0.0" "@babel/standalone" "^7.0.0"
"@gitlab/vue-toasted" "^1.2.1" "@gitlab/vue-toasted" "^1.2.1"
......
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