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] Edit bounty #380

Closed elraphty closed 5 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 edit the bounty after creating it

So what we want to do is create a bounty and then open the first bounty on the page to view the modal. We want to assert that when we click on the edit button then we can edit the bounty title and description

File to create

sphinx-tribes-frontend/cypress/e2e/6_editBountyFromModal.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 edit the bounty Then assert that the new bounty title and description match what passed to the edit modal inputs

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

Vayras commented 6 months ago

@elraphty I can work on this

elraphty commented 6 months ago

@elraphty I can work on this

Okay, assigning

Vayras commented 6 months ago

@elraphty my sphinx app is not working can you tell me something about it?