Merge branch 'master' into fix_windows_cross-env

This commit is contained in:
Alexander Friedland 2022-04-22 11:28:26 +02:00 committed by GitHub
commit 730a6004d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

View File

@ -132,6 +132,27 @@ describe('TransactionLinkSummary', () => {
it('has no component CollapseLinksList', () => {
expect(wrapper.findComponent({ name: 'CollapseLinksList' }).isVisible()).toBe(false)
})
describe('reopen transaction link details', () => {
beforeEach(() => {
jest.clearAllMocks()
wrapper.find('div.transaction-link-details').trigger('click')
})
it('calls the API to get the list transaction links', () => {
expect(apolloQueryMock).toBeCalledWith({
query: listTransactionLinks,
variables: {
currentPage: 1,
},
fetchPolicy: 'network-only',
})
})
it('has four transactionLinks', () => {
expect(wrapper.vm.transactionLinks).toHaveLength(4)
})
})
})
describe('load more transaction links', () => {

View File

@ -83,6 +83,7 @@ export default {
if (this.visible) {
this.visible = false
} else {
this.transactionLinks = []
this.updateListTransactionLinks()
this.visible = true
}