diff --git a/frontend/src/components/GdtTransactionList.spec.js b/frontend/src/components/GdtTransactionList.spec.js index a04cdc905..81db73de9 100644 --- a/frontend/src/components/GdtTransactionList.spec.js +++ b/frontend/src/components/GdtTransactionList.spec.js @@ -167,5 +167,25 @@ describe('GdtTransactionList ', () => { ) }) }) + + describe.only('pagination buttons', () => { + it('shows the pagination buttons if transactionCount > 25', () => { + beforeEach(async () => { + await wrapper.setProps({ + transactionGdtCount: 42, + }) + }) + expect(wrapper.find('div.pagination')).toBeTruthy() + }) + + it('shows no the pagination buttons if transactionCount < 25', () => { + beforeEach(async () => { + await wrapper.setProps({ + transactionGdtCount: 2, + }) + }) + expect(wrapper.find('div.pagination').exists()).toBe(false) + }) + }) }) }) diff --git a/frontend/src/components/GdtTransactionList.vue b/frontend/src/components/GdtTransactionList.vue index 0c061ed06..a6f19a560 100644 --- a/frontend/src/components/GdtTransactionList.vue +++ b/frontend/src/components/GdtTransactionList.vue @@ -27,23 +27,26 @@ > - + align="center" + >