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] Mark Bounty As UnPaid #394

Closed elraphty closed 6 months ago

elraphty commented 6 months ago

Context

Currently, we have a cypress command to create a bounty

but we want to assert that we can mark a bounty as unpaid using the Mark As UnPaid button.

So, create a bounty 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 Mark As UnPaid button for a paid bounty, the bounty status is changed to UNPAID.

File to create

sphinx-tribes-frontend/cypress/e2e/12_mark_as_unpaid.cy.ts there will be no modifications to sphinx-tribes-frontend/cypress/support/commands.ts

Acceptance Criteria

The Mark As UnPaid 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

aliraza556 commented 6 months ago

HI @elraphty, Could you assign me?

AbdulWahab3181 commented 6 months ago

assign me?

elraphty commented 6 months ago

HI @elraphty, Could you assign me?

@aliraza556 have you written a Cypress test before now?

aliraza556 commented 6 months ago

HI @elraphty, Could you assign me?

@aliraza556 have you written a Cypress test before now?

Yes, not here, but write about other issues

aliraza556 commented 6 months ago

@elraphty, I have set up the project according to this document: https://github.com/stakwork/sphinx-tribes-frontend/blob/master/docs/setupCypressTest.md. I am just waiting for you to assign me task so that I can then write a unit test.