From 6aeb17453277b15ad6c333d5edf7c11db728b200 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 23 Feb 2022 09:40:30 +0100 Subject: [PATCH] fix tests --- admin/src/components/Overlay.spec.js | 2 +- admin/src/pages/CreationConfirm.spec.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/src/components/Overlay.spec.js b/admin/src/components/Overlay.spec.js index 9aa338bd9..6a857068f 100644 --- a/admin/src/components/Overlay.spec.js +++ b/admin/src/components/Overlay.spec.js @@ -4,7 +4,7 @@ import Overlay from './Overlay.vue' const localVue = global.localVue const propsData = { - items: {}, + item: {}, } const mocks = { diff --git a/admin/src/pages/CreationConfirm.spec.js b/admin/src/pages/CreationConfirm.spec.js index 067aedd61..f0412678b 100644 --- a/admin/src/pages/CreationConfirm.spec.js +++ b/admin/src/pages/CreationConfirm.spec.js @@ -132,8 +132,8 @@ describe('CreationConfirm', () => { await wrapper.find('#overlay').findAll('button').at(0).trigger('click') }) - it('closes the overlay', () => { - expect(wrapper.find('#overlay').isVisible()).toBeFalsy() + it('closes the overlay', async () => { + expect(wrapper.find('#overlay').exists()).toBeFalsy() }) it('still has 2 items in the table', () => {