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] Create test for people/widgetViews/BountyHeader.tsx #1229

Closed elraphty closed 9 months ago

elraphty commented 9 months ago

Context

BountyHeader.tsx holds the search Input and filters for the bounties list. Add component test coverage.

File to be tested src/people/widgetViews/__tests__/BountyHeader..spec.tsx

Create a file named src/people/widgetViews/__tests__/BountyHeader..spec.tsx

Make a Mock API request to get the total developers count, check getBountyHeaderData in frontend/app/src/store/main.ts, and mock the request API request in the function.

Check frontend/app/src/bounties/__tests__/bountyTest.spec.ts for example

We want to test that Bounty header components are visible

Acceptance Criteria

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

AbdulWahab3181 commented 9 months ago

Could you please assign this task to me? @elraphty

KumarNayan commented 9 months ago

I can work on this as well, as I have worked on unit tests previously Will wait for @ecurrencyhodler to create the bounty.

ecurrencyhodler commented 9 months ago

Welcome @AbdulWahab3181 ! I can assign this to you. Are you on sphinx chat? We also have a bounty for this issue so you can get paid in bitcoin if you're interested. :)

https://community.sphinx.chat/bounty/1030

AbdulWahab3181 commented 9 months ago

Hi @ecurrencyhodler, Thanks for the welcome and assignment! I'm not on Sphinx Chat, and I'm interested in the bounty. I'll check the link and start working on it. Excited to contribute! I will signup on Sphinx Chat after completing this task.

ecurrencyhodler commented 9 months ago

Amazing! Here is a code for you to use to sign up as a new user (Check email).

And here are the instructions to download sphinx: https://buy.sphinx.chat/

BTW how did you find this community?

AbdulWahab3181 commented 9 months ago

I was searching for bounty issues on GitHub and came across this project.

ecurrencyhodler commented 9 months ago

@AbdulWahab3181 following up here. Did you sign up for a sphinx chat? Let me know if you did.

AbdulWahab3181 commented 9 months ago

@ecurrencyhodler I just installed the application. It's asking for a connection code, which I haven't received yet. Could you please send it to abdulwahab3181@gmail.com?

KumarNayan commented 9 months ago

@ecurrencyhodler can I take this up ?

ecurrencyhodler commented 9 months ago

@KumarNayan this has already been assigned. Please check the issues before requesting.

AbdulWahab3181 commented 9 months ago

@ecurrencyhodler Could you please review this PR#1302

ecurrencyhodler commented 9 months ago

@AbdulWahab3181 great job! Are you on sphinx? I'd like to pay you the bitcoin bounty. Also here's an FAQ which includes steps to create an account on our site.

AbdulWahab3181 commented 9 months ago

I appreciate that! Yes, I am on Sphinx. I'm glad to hear about the bitcoin bounty. Thanks for sharing the FAQ

ecurrencyhodler commented 9 months ago

Paid!