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.
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
[ ] Test that the Get Sphinx button is visible
[ ] Test that the Sign In button is visible when a user is logged out
[ ] Test that a Signed in user Image can be viewed
[ ] Test that a Signed in user does not see the Sign In button
You can use this PR as an example https://github.com/stakwork/sphinx-tribes/pull/1185
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
, theui.meInfo
should be set to the mocked user.Check
frontend/app/src/people/main/__tests__/MainHeader.spec.tsx
for exampleWe 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