mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix test components/Contributions/ContributionListItem.spec.js
This commit is contained in:
parent
55ccbb4744
commit
d69c6596f9
@ -89,7 +89,7 @@ describe('ContributionListItem', () => {
|
|||||||
|
|
||||||
describe('edit contribution', () => {
|
describe('edit contribution', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
wrapper.findAll('div.pointer').at(0).trigger('click')
|
wrapper.find('div.test-edit-contribution').trigger('click')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('emits update contribution form', () => {
|
it('emits update contribution form', () => {
|
||||||
@ -110,7 +110,8 @@ describe('ContributionListItem', () => {
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
spy = jest.spyOn(wrapper.vm.$bvModal, 'msgBoxConfirm')
|
spy = jest.spyOn(wrapper.vm.$bvModal, 'msgBoxConfirm')
|
||||||
spy.mockImplementation(() => Promise.resolve(true))
|
spy.mockImplementation(() => Promise.resolve(true))
|
||||||
wrapper.findAll('div.pointer').at(1).trigger('click')
|
// wrapper.findAll('div.pointer').at(1).trigger('click')
|
||||||
|
wrapper.findAll('div.test-delete-contribution').trigger('click')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('opens the modal', () => {
|
it('opens the modal', () => {
|
||||||
|
|||||||
@ -42,7 +42,7 @@
|
|||||||
<b-col>
|
<b-col>
|
||||||
<div
|
<div
|
||||||
v-if="!['CONFIRMED', 'DELETED'].includes(state) && !allContribution"
|
v-if="!['CONFIRMED', 'DELETED'].includes(state) && !allContribution"
|
||||||
class="pointer mr-3"
|
class="test-delete-contribution pointer mr-3"
|
||||||
@click="deleteContribution({ id })"
|
@click="deleteContribution({ id })"
|
||||||
>
|
>
|
||||||
<b-icon icon="trash"></b-icon>
|
<b-icon icon="trash"></b-icon>
|
||||||
@ -52,7 +52,7 @@
|
|||||||
<b-col>
|
<b-col>
|
||||||
<div
|
<div
|
||||||
v-if="!['CONFIRMED', 'DELETED'].includes(state) && !allContribution"
|
v-if="!['CONFIRMED', 'DELETED'].includes(state) && !allContribution"
|
||||||
class="pointer mr-3"
|
class="test-edit-contribution pointer mr-3"
|
||||||
@click="
|
@click="
|
||||||
$emit('update-contribution-form', {
|
$emit('update-contribution-form', {
|
||||||
id: id,
|
id: id,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user