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][cypress] Pay Bounty Full Node #390

Closed elraphty closed 6 months ago

elraphty commented 6 months ago

Context

Currently, we have a cypress command to create a bounty and create an organization create org

but we want to assert that we can create an organization, fund the organization, create a bounty tied to the organization, and pay the bounty.

So, create a bounty with an assignee after an organization is created and funded with an assignee, and click on the newly created bounty to view it on the bounty modal. We want to assert that when we click the Pay Bounty button, the bounty gets paid, and the bounty status is changed to PAID.

File to create

sphinx-tribes-frontend/cypress/e2e/10_pay_bounty.cy.ts there will be modifications to sphinx-tribes-frontend/cypress/support/commands.ts

Acceptance Criteria

Given a user is signed in Create an organization Fund the organization Create a bounty with the organization selected and a full node user selected as the assignee When we create a bounty with an assignee and click on the bounty tile Then the test asserts that we can pay the bounty Then assert that the bounty status is changed to PAID

The Pay Bounty button is shown below image

References

Example cypress test https://github.com/stakwork/sphinx-tribes-frontend/blob/master/cypress/e2e/0_create_bounty.cy.ts

NengakDakup commented 6 months ago

@elraphty can i give it a go?

elraphty commented 6 months ago

@elraphty can i give it a go?

@NengakDakup this one is pretty complicated, I have to do this one myself. I will create some good first cypress tests today/ tomorrow.