From 067a11606458c76eda9428f4867be6380896352a Mon Sep 17 00:00:00 2001 From: Florian Gareis Date: Wed, 31 Mar 2021 14:38:42 +0200 Subject: [PATCH] Add button type test --- .../tests/unit/array/ArrayListRenderer.spec.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/vue/vue-vanilla/tests/unit/array/ArrayListRenderer.spec.ts b/packages/vue/vue-vanilla/tests/unit/array/ArrayListRenderer.spec.ts index f7515e0d6..25aa1c82e 100644 --- a/packages/vue/vue-vanilla/tests/unit/array/ArrayListRenderer.spec.ts +++ b/packages/vue/vue-vanilla/tests/unit/array/ArrayListRenderer.spec.ts @@ -57,4 +57,13 @@ describe('ArrayListRenderer.vue', () => { await moveDownButtons[1].trigger('click'); expect(wrapper.vm.data).to.deep.equal(['a', 'c', 'b']); }); + + it('all buttons have type button', async () => { + const wrapper = mountJsonForms(['a'], schema, uischema); + const buttons = wrapper.findAll('button'); + for (let button of buttons) { + let type = button.attributes('type'); + expect(type).to.equal('button'); + } + }); });