Skip to content

Commit

Permalink
adds token amount dom test
Browse files Browse the repository at this point in the history
  • Loading branch information
aristidesstaffieri committed Aug 21, 2023
1 parent ca0fd29 commit c3438f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export const AccountAssets = ({
<ScamAssetIcon isScamAsset={isScamAsset} />
</div>
<div className="AccountAssets__copy-right">
<div className="asset-amount">
<div className="asset-amount" data-testid="asset-amount">
{formatAmount(amountVal)} <span>{amountUnit}</span>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe("SendTokenPayment", () => {
mockHistoryGetter.mockReturnValue(history);

const asset = "DT:CCXVDIGMR6WTXZQX2OEVD6YM6AYCYPXPQ7YYH6OZMRS7U6VD3AVHNGBJ";
render(
const { container } = render(
<Wrapper
history={history}
state={{
Expand Down Expand Up @@ -178,6 +178,7 @@ describe("SendTokenPayment", () => {
});

await waitFor(async () => {
expect(container).toHaveTextContent("5 DT");
const sendBtn = screen.getByTestId("transaction-details-btn-send");
await fireEvent.click(sendBtn);
});
Expand Down

0 comments on commit c3438f3

Please sign in to comment.