Closed elraphty closed 6 months ago
HI @elraphty, Could you assign me?
assign me?
HI @elraphty, Could you assign me?
@aliraza556 have you written a Cypress test before now?
HI @elraphty, Could you assign me?
@aliraza556 have you written a Cypress test before now?
Yes, not here, but write about other issues
@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.
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 tosphinx-tribes-frontend/cypress/support/commands.ts
Acceptance Criteria
Mark As Paid
button without selecting a badgeMark As Unpaid
button marks the button as unpaidThe
Mark As UnPaid
button is shown belowReferences
Example cypress test
https://github.com/stakwork/sphinx-tribes-frontend/blob/master/cypress/e2e/0_create_bounty.cy.ts