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] Delete bounty #378

Closed kevkevinpal closed 6 months ago

kevkevinpal commented 6 months ago

Context

Currently, we have a cypress command to create a bounty but we want to assert that we can delete the bounty after creating it

So what we want to do is use create a bounty and then after open the first bounty on the page to view the modal. We want to assert that when we click on the delete button then the bounty does not exist on the home page anymore

File to create

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

Acceptance Criteria

Given a user is signed in When we create a bounty and click on the bounty tile Then the test asserts that we can delete the bounty

delete button shown below image

References

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

hangman32 commented 6 months ago

@kevkevinpal Please Can I get this?

kevkevinpal commented 6 months ago

I assigned it to you @Knight0p6 let me know if you run into any issues you can refer to this doc

please refer to this if you need to setup cypress locally https://github.com/stakwork/sphinx-tribes-frontend/blob/master/docs/setupCypressTest.md

hangman32 commented 6 months ago

Thanks @kevkevinpal

aliraza556 commented 6 months ago

Hi @elraphty, @kevkevinpal, Please assign me if @Knight0p6 gives up.

elraphty commented 6 months ago

Hi @elraphty, @kevkevinpal, Please assign me if @Knight0p6 gives up.

It's over 2 days already @kevkevinpal, I'm reassigning to @aliraza556