mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Unit test moved.
This commit is contained in:
parent
e7c6ecb9a1
commit
4c34f0933d
@ -25,7 +25,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #cell(editCreation)="row">
|
<template #cell(editCreation)="row">
|
||||||
<div v-if="$store.state.moderator.id !== row.item.userId">
|
<div v-if="!myself(row.item)">
|
||||||
<b-button
|
<b-button
|
||||||
v-if="row.item.moderator"
|
v-if="row.item.moderator"
|
||||||
variant="info"
|
variant="info"
|
||||||
|
|||||||
@ -337,7 +337,7 @@ describe('CreationConfirm', () => {
|
|||||||
describe('click tab "confirmed"', () => {
|
describe('click tab "confirmed"', () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
jest.clearAllMocks()
|
jest.clearAllMocks()
|
||||||
await wrapper.find('a[data-test="confirmed"]').trigger('click')
|
await wrapper.find('[data-test="confirmed"]').trigger('click')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('refetches contributions with proper filter', () => {
|
it('refetches contributions with proper filter', () => {
|
||||||
@ -348,68 +348,68 @@ describe('CreationConfirm', () => {
|
|||||||
statusFilter: ['CONFIRMED'],
|
statusFilter: ['CONFIRMED'],
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
|
||||||
describe('click tab "open"', () => {
|
describe('click tab "open"', () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
jest.clearAllMocks()
|
jest.clearAllMocks()
|
||||||
await wrapper.find('a[data-test="open"]').trigger('click')
|
await wrapper.find('[data-test="open"]').trigger('click')
|
||||||
})
|
|
||||||
|
|
||||||
it('refetches contributions with proper filter', () => {
|
|
||||||
expect(adminListAllContributionsMock).toBeCalledWith({
|
|
||||||
currentPage: 1,
|
|
||||||
order: 'DESC',
|
|
||||||
pageSize: 25,
|
|
||||||
statusFilter: ['IN_PROGRESS', 'PENDING'],
|
|
||||||
})
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('click tab "denied"', () => {
|
it('refetches contributions with proper filter', () => {
|
||||||
beforeEach(async () => {
|
expect(adminListAllContributionsMock).toBeCalledWith({
|
||||||
jest.clearAllMocks()
|
currentPage: 1,
|
||||||
await wrapper.find('a[data-test="denied"]').trigger('click')
|
order: 'DESC',
|
||||||
})
|
pageSize: 25,
|
||||||
|
statusFilter: ['IN_PROGRESS', 'PENDING'],
|
||||||
it('refetches contributions with proper filter', () => {
|
|
||||||
expect(adminListAllContributionsMock).toBeCalledWith({
|
|
||||||
currentPage: 1,
|
|
||||||
order: 'DESC',
|
|
||||||
pageSize: 25,
|
|
||||||
statusFilter: ['DENIED'],
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
|
||||||
describe('click tab "deleted"', () => {
|
describe('click tab "denied"', () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
jest.clearAllMocks()
|
jest.clearAllMocks()
|
||||||
await wrapper.find('a[data-test="deleted"]').trigger('click')
|
await wrapper.find('[data-test="denied"]').trigger('click')
|
||||||
})
|
|
||||||
|
|
||||||
it('refetches contributions with proper filter', () => {
|
|
||||||
expect(adminListAllContributionsMock).toBeCalledWith({
|
|
||||||
currentPage: 1,
|
|
||||||
order: 'DESC',
|
|
||||||
pageSize: 25,
|
|
||||||
statusFilter: ['DELETED'],
|
|
||||||
})
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('click tab "all"', () => {
|
it('refetches contributions with proper filter', () => {
|
||||||
beforeEach(async () => {
|
expect(adminListAllContributionsMock).toBeCalledWith({
|
||||||
jest.clearAllMocks()
|
currentPage: 1,
|
||||||
await wrapper.find('a[data-test="all"]').trigger('click')
|
order: 'DESC',
|
||||||
|
pageSize: 25,
|
||||||
|
statusFilter: ['DENIED'],
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
it('refetches contributions with proper filter', () => {
|
describe('click tab "deleted"', () => {
|
||||||
expect(adminListAllContributionsMock).toBeCalledWith({
|
beforeEach(async () => {
|
||||||
currentPage: 1,
|
jest.clearAllMocks()
|
||||||
order: 'DESC',
|
await wrapper.find('[data-test="deleted"]').trigger('click')
|
||||||
pageSize: 25,
|
})
|
||||||
statusFilter: ['IN_PROGRESS', 'PENDING', 'CONFIRMED', 'DENIED', 'DELETED'],
|
|
||||||
})
|
it('refetches contributions with proper filter', () => {
|
||||||
|
expect(adminListAllContributionsMock).toBeCalledWith({
|
||||||
|
currentPage: 1,
|
||||||
|
order: 'DESC',
|
||||||
|
pageSize: 25,
|
||||||
|
statusFilter: ['DELETED'],
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
describe('click tab "all"', () => {
|
||||||
|
beforeEach(async () => {
|
||||||
|
jest.clearAllMocks()
|
||||||
|
await wrapper.find('[data-test="all"]').trigger('click')
|
||||||
|
})
|
||||||
|
|
||||||
|
it('refetches contributions with proper filter', () => {
|
||||||
|
expect(adminListAllContributionsMock).toBeCalledWith({
|
||||||
|
currentPage: 1,
|
||||||
|
order: 'DESC',
|
||||||
|
pageSize: 25,
|
||||||
|
statusFilter: ['IN_PROGRESS', 'PENDING', 'CONFIRMED', 'DENIED', 'DELETED'],
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user