This is an automated email from the ASF dual-hosted git repository. weizhou pushed a commit to branch 4.18 in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.18 by this push: new fd13184dda9 UI unit test: fix expected values (#7792) fd13184dda9 is described below commit fd13184dda981ac3133e971ad5ce6effb092f4f7 Author: dahn <d...@onecht.net> AuthorDate: Mon Jul 31 12:46:22 2023 +0200 UI unit test: fix expected values (#7792) --- ui/public/locales/en.json | 2 +- ui/tests/unit/views/AutogenView.spec.js | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ui/public/locales/en.json b/ui/public/locales/en.json index 64144c55bb6..0691c2da4ad 100644 --- a/ui/public/locales/en.json +++ b/ui/public/locales/en.json @@ -767,7 +767,6 @@ "label.egressdefaultpolicy": "Default egress policy", "label.elastic": "Elastic", "label.email": "Email", -"label.enabled": "Enabled", "label.enable.autoscale.vmgroup": "Enable AutoScale VM Group", "label.enable.host": "Enable Host", "label.enable.network.offering": "Enable network offering", @@ -2016,6 +2015,7 @@ "label.uk.keyboard": "UK keyboard", "label.unauthorized": "Unauthorized", "label.unavailable": "Unavailable", +"label.undefined": "Undefined", "label.unit": "Usage unit", "label.unknown": "Unknown", "label.unlimited": "Unlimited", diff --git a/ui/tests/unit/views/AutogenView.spec.js b/ui/tests/unit/views/AutogenView.spec.js index ec3130c6fb3..fe890ea61bf 100644 --- a/ui/tests/unit/views/AutogenView.spec.js +++ b/ui/tests/unit/views/AutogenView.spec.js @@ -1140,10 +1140,9 @@ describe('Views > AutogenView.vue', () => { ]) expect(wrapper.vm.showAction).toBeTruthy() expect(listUuidOpts).toHaveBeenCalledTimes(4) - expect(listUuidOpts).toHaveBeenCalledWith({ name: 'id', type: 'uuid' }) - expect(listUuidOpts).toHaveBeenCalledWith({ name: 'column1', type: 'list' }) - expect(listUuidOpts).toHaveBeenCalledWith({ name: 'column2', type: 'string' }) - expect(listUuidOpts).toHaveBeenCalledWith({ name: 'account', type: 'string' }) + expect(listUuidOpts).toHaveBeenCalledWith({ name: 'id', type: 'uuid' }, undefined) + expect(listUuidOpts).toHaveBeenCalledWith({ name: 'column1', type: 'list' }, undefined) + expect(listUuidOpts).toHaveBeenCalledWith({ name: 'column2', type: 'string' }, undefined) done() })