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
11 stars 42 forks source link

[Test][cypress] [User Roles] Manage Bounties #472

Closed elraphty closed 3 months ago

elraphty commented 3 months ago

Context

Currently, we have a cypress command to create an organization

but we want to assert that when we assign a Manage Bounties role to a user, the user can create a bounty for an organization.

We want to Sign in as Alice, create an organization, add Carol to the organization, give Carol a Manage Bounties role, then sign Alice out, Sign in as Carol, go to Carol's organization, and assert that the newly created organization is in Carol's list, click on the Bounties tab to create a bounty, assert that the organization is in the organization drop-down and create a bounty, and after the bounty is created click on the bounty tile, assert that the 'Pay Bounty' button is visible

File to create

sphinx-tribes-frontend/cypress/e2e/44_rolesManageBounties.cy.ts

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

Acceptance Criteria

The Manage Bounties flow is shown below

image image image image

References

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

AbdulWahab3181 commented 3 months ago

@elraphty Could you please assign me?

aliraza556 commented 3 months ago

Hi @elraphty can you please assign me next?

Vayras commented 3 months ago

@elraphty can you assign this or the next one

MirzaHanan commented 3 months ago

Hi @elraphty can you please assign me next

MahtabBukhari commented 3 months ago

@elraphty could you assign me next one

Ekep-Obasi commented 3 months ago

@elraphty please assign me

elraphty commented 3 months ago

Hi @elraphty can you please assign me next?

@aliraza556 You get the next one