stakwork / sphinx-tribes-frontend

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.
https://community.sphinx.chat/bounties
12 stars 42 forks source link

[Tests][Component] Add tests to frontend/app/src/pages/tickets/TicketModalPage.tsx For Edit Actions #123

Closed elraphty closed 8 months ago

elraphty commented 8 months ago

Context

TicketModalPage.tsx Displays a single bounty in a modal. Add component test coverage.

File to add tests 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 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 edit actions

Acceptance Criteria

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

KumarNayan commented 8 months ago

Assign

ecurrencyhodler commented 8 months ago

Here you go nayan: https://community.sphinx.chat/bounty/1367

KumarNayan commented 8 months ago

@elraphty if I am the creator of a bounty , I can assign the bounty to a hunter. I don't see any invite option in the edit bounty page. Can you please clarify on below Test that if a bounty is open and I am the creator of the bounty, I should be able to invite a bounty hunter Test that when I invite a new hunter, the hunter should be e assignee for that bounty.

ecurrencyhodler commented 8 months ago

@KumarNayan it's in this section when editing a bounty under "assign developer":

Screenshot 2024-02-02 at 12 58 44 PM
gouravmpk commented 8 months ago

Assign

hangman32 commented 8 months ago

@ecurrencyhodler Can I get this?

ecurrencyhodler commented 8 months ago

Sure it's yours Knight.

ecurrencyhodler commented 8 months ago

@Knight0p6 can you get a pr in by tomorrow?

MirzaHanan commented 8 months ago

Hi @ecurrencyhodler Assign me?

Fog3211 commented 8 months ago

@ecurrencyhodler can i take this

ecurrencyhodler commented 8 months ago

It's yours fog. Let's get a PR up within 2 days.

ecurrencyhodler commented 8 months ago

Paid 200k sats! https://community.sphinx.chat/bounty/1543