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] View Organization's Payment History #435

Closed elraphty closed 5 months ago

elraphty commented 5 months ago

Context

Currently, we have a cypress command to create an organization

We want to assert that all payments are visible on the organization's payment history when we click on the History button, we should be able to see all the Deposit, Withdraw, and Payment transactions.

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.

So, create an organization, and click the Manage button on the newly created organization to view the organization details, We will Deposit some budget to the organization, create and pay bounties linked to the organization, and withdraw some amount from the organization budget, we want to assert that we can see all the payment in the organization history.

File to create

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

Acceptance Criteria

The Payment History table is shown below

image

References

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

NengakDakup commented 5 months ago

Hi @elraphty can i take the next ticket?

elraphty commented 5 months ago

Hi @elraphty can i take the next ticket?

Okay.