Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Megha-Dev-19 committed Jan 6, 2025
1 parent aeccf5a commit e90ce63
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,15 @@ function BalanceBanner({ accountId, treasuryDaoID }) {

const profile = Social.getr(`${accountId}/profile`);
const name = profile.name ?? accountId;

return (
<Container>
{!nearBalances ||
parseFloat(nearBalances?.availableParsed) > LOW_BALANCE_LIMIT ? (
!nearBalances.availableParsed ||
nearBalances.availableParsed === "0.00" ||
parseFloat(nearBalances.availableParsed) > LOW_BALANCE_LIMIT ? (
<></>
) : parseFloat(nearBalances?.availableParsed) <
) : parseFloat(nearBalances.availableParsed) <
INSUFFICIENT_BALANCE_LIMIT ? (
<div className="insufficient-balance-warning d-flex gap-3 p-3 rounded-3 m-3">
<i class="bi bi-exclamation-octagon error-icon h4 mb-0"></i>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const CreateBtn = () => {
display: block;
opacity: 1;
transform: translateY(0);
z-index:9999;
z-index:1000;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ test.describe("Have valid staked requests and sufficient token balance", functio
await expect(
await page.locator("div").filter({ hasText: /^Stake Delegation$/ })
).toBeVisible();
await page.waitForTimeout(5_000);
});

test.describe("User not logged in", function () {
Expand Down

0 comments on commit e90ce63

Please sign in to comment.