Commit e3c8b6a1 authored by Clement Ho's avatar Clement Ho

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

Update GitLab Packages

See merge request gitlab-org/gitlab!16525
parents e684417f a02b930f
...@@ -5,6 +5,7 @@ exports[`dashboard should match the snapshot 1`] = ` ...@@ -5,6 +5,7 @@ exports[`dashboard should match the snapshot 1`] = `
class="operations-dashboard" class="operations-dashboard"
> >
<glmodal-stub <glmodal-stub
modalclass=""
modalid="add-projects-modal" modalid="add-projects-modal"
ok-disabled="true" ok-disabled="true"
ok-title="Add projects" ok-title="Add projects"
......
...@@ -4,6 +4,7 @@ import axios from '~/lib/utils/axios_utils'; ...@@ -4,6 +4,7 @@ import axios from '~/lib/utils/axios_utils';
import ResetKey from 'ee/prometheus_alerts/components/reset_key.vue'; import ResetKey from 'ee/prometheus_alerts/components/reset_key.vue';
import ClipboardButton from '~/vue_shared/components/clipboard_button.vue'; import ClipboardButton from '~/vue_shared/components/clipboard_button.vue';
import { GlModal } from '@gitlab/ui'; import { GlModal } from '@gitlab/ui';
import waitForPromises from 'helpers/wait_for_promises';
describe('ResetKey', () => { describe('ResetKey', () => {
let Component; let Component;
...@@ -47,23 +48,23 @@ describe('ResetKey', () => { ...@@ -47,23 +48,23 @@ describe('ResetKey', () => {
expect(vm.find('.js-reset-auth-key').text()).toEqual('Reset key'); expect(vm.find('.js-reset-auth-key').text()).toEqual('Reset key');
}); });
it('reset updates key', done => { it('reset updates key', () => {
mock.onPost(propsData.changeKeyUrl).replyOnce(200, { token: 'newToken' }); mock.onPost(propsData.changeKeyUrl).replyOnce(200, { token: 'newToken' });
vm.find(GlModal).vm.$emit('ok'); vm.find(GlModal).vm.$emit('ok');
setTimeout(() => { return waitForPromises().then(() => {
expect(vm.vm.authorizationKey).toEqual('newToken');
expect(vm.find('#authorization-key').attributes('value')).toEqual('newToken'); expect(vm.find('#authorization-key').attributes('value')).toEqual('newToken');
done();
}); });
}); });
it('reset key failure shows error', done => { it('reset key failure shows error', () => {
mock.onPost(propsData.changeKeyUrl).replyOnce(500); mock.onPost(propsData.changeKeyUrl).replyOnce(500);
vm.find(GlModal).vm.$emit('ok'); vm.find(GlModal).vm.$emit('ok');
setTimeout(() => { return waitForPromises().then(() => {
expect(vm.find('#authorization-key').attributes('value')).toEqual( expect(vm.find('#authorization-key').attributes('value')).toEqual(
propsData.initialAuthorizationKey, propsData.initialAuthorizationKey,
); );
...@@ -71,7 +72,6 @@ describe('ResetKey', () => { ...@@ -71,7 +72,6 @@ describe('ResetKey', () => {
expect(document.querySelector('.flash-container').innerText.trim()).toEqual( expect(document.querySelector('.flash-container').innerText.trim()).toEqual(
'Failed to reset key. Please try again.', 'Failed to reset key. Please try again.',
); );
done();
}); });
}); });
}); });
...@@ -89,14 +89,13 @@ describe('ResetKey', () => { ...@@ -89,14 +89,13 @@ describe('ResetKey', () => {
expect(vm.find('#authorization-key').attributes('value')).toEqual(''); expect(vm.find('#authorization-key').attributes('value')).toEqual('');
}); });
it('Generate key button triggers key change', done => { it('Generate key button triggers key change', () => {
mock.onPost(propsData.changeKeyUrl).replyOnce(200, { token: 'newToken' }); mock.onPost(propsData.changeKeyUrl).replyOnce(200, { token: 'newToken' });
vm.find('.js-reset-auth-key').vm.$emit('click'); vm.find('.js-reset-auth-key').vm.$emit('click');
setTimeout(() => { return waitForPromises().then(() => {
expect(vm.find('#authorization-key').attributes('value')).toEqual('newToken'); expect(vm.find('#authorization-key').attributes('value')).toEqual('newToken');
done();
}); });
}); });
}); });
......
...@@ -991,19 +991,18 @@ ...@@ -991,19 +991,18 @@
dependencies: dependencies:
vue-eslint-parser "^6.0.4" vue-eslint-parser "^6.0.4"
"@gitlab/svgs@^1.72.0": "@gitlab/svgs@^1.73.0":
version "1.72.0" version "1.73.0"
resolved "https://registry.yarnpkg.com/@gitlab/svgs/-/svgs-1.72.0.tgz#78a29fd383a5a2b31ef91670068a6fea05ba234e" resolved "https://registry.yarnpkg.com/@gitlab/svgs/-/svgs-1.73.0.tgz#e44b347e4be77b94474c80cf5c2ee26ca0325c2f"
integrity sha512-EVKRqrXsCY6tUiVAh+lpFMJAyNXZwfEqv5NeKH5ginhALMlOunRkY5rsDllyNvgZ0DWHJS1KEKJj2oVU1ouwAg== integrity sha512-4on+l5CS8Ae8OOcrnxwkO5s2zq1kHl/YjnOrHaX7megr6jsTYsVzKGaEMe0ViMSIPXA2+QnGD6vElKMkeD2+YQ==
"@gitlab/ui@5.21.1": "@gitlab/ui@5.25.2":
version "5.21.1" version "5.25.2"
resolved "https://registry.yarnpkg.com/@gitlab/ui/-/ui-5.21.1.tgz#8215ab3eae4296845596d5b3a987d5460b030569" resolved "https://registry.yarnpkg.com/@gitlab/ui/-/ui-5.25.2.tgz#599954fefcc228d31a398dbe3c1e2287a0fcdb3e"
integrity sha512-TjPVhex9sQGUVwebaJK5XuopDHWx4+Sh9N7yH5u8eXSFWa8vk11voR4qYVt7DZB7powAO/+iiXxYMLLNtXmC/g== integrity sha512-mwwvEhVTomnZQjG0dADD+9Kg1UHZXAIb4s5QwQxwpgTkemILYIb1r96oKWfmPe8Pl/xrzAoMUtGEPT3XbxDqYQ==
dependencies: dependencies:
"@babel/standalone" "^7.0.0" "@babel/standalone" "^7.0.0"
"@gitlab/vue-toasted" "^1.2.1" "@gitlab/vue-toasted" "^1.2.1"
bootstrap "4.3.1"
bootstrap-vue "2.0.0-rc.27" bootstrap-vue "2.0.0-rc.27"
copy-to-clipboard "^3.0.8" copy-to-clipboard "^3.0.8"
echarts "^4.2.1" echarts "^4.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