diff --git a/src/components/transactionsV2/transactionsOverviewHeader/transactionsOverviewHeader.test.js b/src/components/transactionsV2/transactionsOverviewHeader/transactionsOverviewHeader.test.js index 3c0b8c9a65..c8e345587d 100644 --- a/src/components/transactionsV2/transactionsOverviewHeader/transactionsOverviewHeader.test.js +++ b/src/components/transactionsV2/transactionsOverviewHeader/transactionsOverviewHeader.test.js @@ -73,4 +73,26 @@ describe('Transactions Overview Header', () => { expect(wrapper.find('.requestContainer')).to.not.have.descendants('.show'); }); }); + + describe('Another user wallet', () => { + const anotherUserProps = { + ...props, + address: accounts.delegate.address, + match: { urls: `${routes.accounts.pathPrefix}${routes.accounts.path}/${accounts.delegate.address}` }, + }; + + beforeEach(() => { + wrapper = mount( + + , options); + }); + + it('Should toggle bookmark dropdown', () => { + expect(wrapper.find('.follow-account')).to.not.have.descendants('.show'); + wrapper.find('.follow-account button').first().simulate('click'); + expect(wrapper.find('.follow-account')).to.have.descendants('.show'); + wrapper.find('.follow-account button').first().simulate('click'); + expect(wrapper.find('.follow-account')).to.not.have.descendants('.show'); + }); + }); });