Skip to content

Commit

Permalink
Add button type test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheZoker committed Mar 31, 2021
1 parent 914ac03 commit 067a116
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
});
});

0 comments on commit 067a116

Please sign in to comment.