You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HistoryModal.tsx displays the payment history for an organization.
File to be tested src/people/widgetViews/organization/__tests__/HistoryModal.spec.tsx
Create a file named src/people/widgetViews/organization/__tests__/HistoryModal.spec.tsx
Make a Mock API request to get payment history and pass it as a prop to History Modal, check getPaymentHistories in frontend/app/src/store/main.ts, and mock the request API request in the function.
Check frontend/app/src/bounties/__tests__/bountyTest.spec.ts for example
We want to test that the payments listed match the mock data bounties
Acceptance Criteria
Test that payment history is visible
Test that the payment type displayed matches the payment type from the mock data
Test that the amount displayed matches the amount from the mock data
Test that the sender displayed matches the sender on the mock data
Test deposit does not have a receiver but has a sender
Test that payment has a sender and a receiver
Test that the Deposit, Withdrawals, and Payments checkboxes are visible
You can use this PR as an example https://github.com/stakwork/sphinx-tribes/pull/1185
The text was updated successfully, but these errors were encountered:
Context
HistoryModal.tsx displays the payment history for an organization.
File to be tested
src/people/widgetViews/organization/__tests__/HistoryModal.spec.tsx
Create a file named
src/people/widgetViews/organization/__tests__/HistoryModal.spec.tsx
Make a Mock API request to get payment history and pass it as a prop to History Modal, check
getPaymentHistories
in frontend/app/src/store/main.ts, and mock the request API request in the function.Check
frontend/app/src/bounties/__tests__/bountyTest.spec.ts
for exampleWe want to test that the payments listed match the mock data bounties
Acceptance Criteria
payment type
displayed matches the payment type from the mock dataamount
displayed matches the amount from the mock datasender
displayed matches the sender on the mock dataYou can use this PR as an example
https://github.com/stakwork/sphinx-tribes/pull/1185
The text was updated successfully, but these errors were encountered: