Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-03 15:07:59 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-03 15:07:59 +0300
commit4247e67be1faa9d52691757dad954a7fa63e8bfe (patch)
treef2a8acc41b1b16c2c1050abc61ecb8a07f44bb2f /spec/frontend/clusters
parentc0d8f9f3f962df6bfcc70440432da55d67307189 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/clusters')
-rw-r--r--spec/frontend/clusters/components/knative_domain_editor_spec.js4
-rw-r--r--spec/frontend/clusters/components/uninstall_application_confirmation_modal_spec.js7
-rw-r--r--spec/frontend/clusters/services/crossplane_provider_stack_spec.js4
3 files changed, 10 insertions, 5 deletions
diff --git a/spec/frontend/clusters/components/knative_domain_editor_spec.js b/spec/frontend/clusters/components/knative_domain_editor_spec.js
index 94e34088c85..6514d883c0d 100644
--- a/spec/frontend/clusters/components/knative_domain_editor_spec.js
+++ b/spec/frontend/clusters/components/knative_domain_editor_spec.js
@@ -79,7 +79,9 @@ describe('KnativeDomainEditor', () => {
it('triggers save event and pass current knative hostname', () => {
wrapper.find(LoadingButton).vm.$emit('click');
- expect(wrapper.emitted('save')[0]).toEqual([knative.hostname]);
+ return wrapper.vm.$nextTick().then(() => {
+ expect(wrapper.emitted('save')[0]).toEqual([knative.hostname]);
+ });
});
});
diff --git a/spec/frontend/clusters/components/uninstall_application_confirmation_modal_spec.js b/spec/frontend/clusters/components/uninstall_application_confirmation_modal_spec.js
index f95bce775c6..c07f6851826 100644
--- a/spec/frontend/clusters/components/uninstall_application_confirmation_modal_spec.js
+++ b/spec/frontend/clusters/components/uninstall_application_confirmation_modal_spec.js
@@ -35,9 +35,10 @@ describe('UninstallApplicationConfirmationModal', () => {
wrapper.find(GlModal).vm.$emit('ok');
});
- it('emits confirm event', () => {
- expect(wrapper.emitted('confirm')).toBeTruthy();
- });
+ it('emits confirm event', () =>
+ wrapper.vm.$nextTick().then(() => {
+ expect(wrapper.emitted('confirm')).toBeTruthy();
+ }));
it('calls track uninstall button click mixin', () => {
expect(wrapper.vm.trackUninstallButtonClick).toHaveBeenCalledWith(INGRESS);
diff --git a/spec/frontend/clusters/services/crossplane_provider_stack_spec.js b/spec/frontend/clusters/services/crossplane_provider_stack_spec.js
index d43dc9333b4..3e5f8de8e7b 100644
--- a/spec/frontend/clusters/services/crossplane_provider_stack_spec.js
+++ b/spec/frontend/clusters/services/crossplane_provider_stack_spec.js
@@ -70,7 +70,9 @@ describe('CrossplaneProviderStack component', () => {
};
createComponent({ crossplane });
findFirstDropdownElement().vm.$emit('click');
- expect(wrapper.emitted().set[0][0].code).toEqual('gcp');
+ return wrapper.vm.$nextTick().then(() => {
+ expect(wrapper.emitted().set[0][0].code).toEqual('gcp');
+ });
});
it('renders the correct dropdown text when no stack is selected', () => {