Frontend for sphinx tribes and bounties. The bounty platform that 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 bounty and return the mock bounty when TicketModalPage.tsx makes a getBounty() call, also mock the main.getBountyIndexById() call to return your mock bounty index.
Check frontend/app/src/people/main/__tests__/MainHeader.spec.tsx for example
We want to test that the TicketModalPage performs the right actions when a bounty is paid
Acceptance Criteria
[ ] Test that the TicketModalPage is rendered when the URL {host}/bounty/{bountyId} is hit.
[ ] Test that the Delete button is disabled when a bounty is paid
[ ] Test that I can be able to mark a bounty as unpaid if I am the creator of the bounty
[ ] Test that I can delete an unpaid bounty
You can use this PR as an example https://github.com/stakwork/sphinx-tribes/pull/1185
Context
TicketModalPage.tsx Displays a single bounty in a modal. Add component test coverage.
File to add test
src/pages/tickets/__tests__/TicketModalPage.spec.tsx
Update file
src/pages/tickets/__tests__/TicketModalPage.spec.tsx
Make a mock bounty and return the mock bounty when
TicketModalPage.tsx
makes agetBounty()
call, also mock themain.getBountyIndexById()
call to return your mock bounty index.Check
frontend/app/src/people/main/__tests__/MainHeader.spec.tsx
for exampleWe want to test that the TicketModalPage performs the right actions when a bounty is paid
Acceptance Criteria
{host}/bounty/{bountyId}
is hit.unpaid
if I am the creator of the bountyYou can use this PR as an example
https://github.com/stakwork/sphinx-tribes/pull/1185