stakwork / sphinx-tribes

Backend for sphinx tribes and bounties. The bounty platform pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
https://community.sphinx.chat/bounties
33 stars 60 forks source link

[Tests][Component] Add tests to src/people/main/__tests__/MainHeader.spec.tsx #1393

Closed elraphty closed 9 months ago

elraphty commented 9 months ago

Context

MainHeader.tsx holds the sign-in button and the user image that leads to the user's profile for signed-in users. Add component test coverage.

File to be tested src/people/main/__tests__/MainHeader.spec.tsx

Update file ` src/people/main/tests/MainHeader.spec.tsx

Make a Mock user and save it to the mocked localStorage frontend/app/src/test/mockData/localStorage.ts as ui, the ui.meInfo should be set to the mocked user.

Check frontend/app/src/people/main/__tests__/MainHeader.spec.tsx for example

We want to test that the Main header components are visible

Acceptance Criteria

You can use this PR as an example https://github.com/stakwork/sphinx-tribes/pull/1185

KumarNayan commented 9 months ago

Can I take this ?

AbdulWahab3181 commented 9 months ago

@ecurrencyhodler could you please assign me?

MahtabBukhari commented 9 months ago

Could you assign me @elraphty?

ecurrencyhodler commented 9 months ago

@KumarNayan this is yours.