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] Withdraw Budget From An Organization #410

Closed elraphty closed 6 months ago

elraphty commented 6 months ago

Context

Currently, we have a cypress command to create an organization

but we want to assert that we can withdraw sats from an organization by clicking the Withdraw button, inputting a Ligtning Payment Requer, and paying the lightning invoice to withdraw from the organization.

So, create an organization, and click the Manage button on the newly created organization to view the organization details, We want to assert that when we click the Withdraw button we can follow the withdraw flow and withdraw budget from the created organization.

File to create

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

Acceptance Criteria

The Withdraw budget flow is shown below

image image

References

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

Zoe-AE-ND commented 6 months ago

Assign please

AbdulWahab3181 commented 6 months ago

Could you please assign me?

elraphty commented 6 months ago

This is payment-related and requires some internal tools to generate invoices, so I will have to do this myself, but I'm creating other Cypress bounties already.