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

[Test][cypress] View Organization Bounties #383

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 create a bounty linked to an organization, and view all the bounties created by the organization.

So what we want to do is use Create org and create a new bounty with an org, we also want to assert that the bounty appears and it has the org label on it, and when the organization label is clicked it leads the user to the organization bounties page.

File to create

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

Acceptance Criteria

Given a user is signed in and an org is created When we create a bounty attached to the org Then the test asserts that the bounty tile has the org label attached and is clickable Then test that when the label is clicked it leads to an organization bounties page, and has the newly created bounty on the list of bounties

The label is shown below image

References

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

chiragDork commented 6 months ago

Can you please assign this to me