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] UnAssign Hunter #388

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 unassign a bounty hunter after creating the bounty with an assignee

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 on the x icon beside the bounty assignee name and unassign the assignee of the bounty.

File to create

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

Acceptance Criteria

Given a user is signed in When we create a bounty with an assignee and click on the bounty tile Then the test asserts that we can unassign a bounty hunter to the bounty Then assert that the bounty has no assignee

The edit 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 take this

elraphty commented 6 months ago

@elraphty can i take this

I'm working on this myself. Have you tried running the cypress test locally?

NengakDakup commented 6 months ago

@elraphty can i take this

I'm working on this myself. Have you tried running the cypress test locally?

Ohhh, okay Yeah I've tried running some cypress tests before

elraphty commented 6 months ago

@elraphty can i take this

I'm working on this myself. Have you tried running the cypress test locally?

Ohhh, okay Yeah I've tried running some cypress tests before

Okay, I will create some cypress issues after doing these.