diff --git a/client/src/components/atoms/Account.test.tsx b/client/src/components/atoms/Account.test.tsx
index 9e81653..586d9d0 100644
--- a/client/src/components/atoms/Account.test.tsx
+++ b/client/src/components/atoms/Account.test.tsx
@@ -1,5 +1,5 @@
import React from 'react'
-import { render } from '@testing-library/react'
+import { render, fireEvent } from '@testing-library/react'
import { toDataUrl } from 'ethereum-blockies'
import Account from './Account'
import { User } from '../../context'
@@ -18,12 +18,13 @@ describe('Account', () => {
})
it('outputs empty state without account', () => {
- const { container } = render(
+ const { container, getByText } = render(
)
expect(container.firstChild).toHaveTextContent('No account selected')
+ fireEvent.click(getByText('Unlock Account'))
})
it('outputs blockie img', () => {
@@ -41,4 +42,20 @@ describe('Account', () => {
blockies
)
})
+
+ it('Account info can be toggled', () => {
+ const { container, getByText } = render(
+
+
+
+ )
+ expect(container.firstChild).toBeInTheDocument()
+ fireEvent.click(getByText('Burner Wallet'))
+ })
})