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.
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
Given a user is signed in
Create an organization
Click on the created organization Manage button
Click on the Deposit button
Input the amount of sats you want to deposit
Pay the Lightning invoice
Assert that the SATS amount was added to the organization's budget
Create bounties linked to the organization
Pay the created bounties
Navigate to the organization page
Click on the created organization
Click on the Withdraw button
Input a Lightning invoice
Pay the invoice
Click on the History button
Assert than all the payments are visible in the history list
Assert that the organization has the right balance.
The Payment History table is shown below
[ ] I have rebased and tested locally before submitting my PR
[ ] I can submit a PR within 2 days of taking the bounty
References
Example cypress test
https://github.com/stakwork/sphinx-tribes-frontend/blob/master/cypress/e2e/0_create_bounty.cy.ts
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 theDeposit
,Withdraw
, andPayment
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 theWithdraw
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 tosphinx-tribes-frontend/cypress/support/commands.ts
Acceptance Criteria
Manage
buttonDeposit
buttonHistory
buttonThe
Payment History
table is shown belowReferences
Example cypress test
https://github.com/stakwork/sphinx-tribes-frontend/blob/master/cypress/e2e/0_create_bounty.cy.ts