Skip to content

Commit

Permalink
chore:
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurgeron committed Jan 30, 2025
1 parent 9406302 commit ec99c9c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/app/playwright/e2e/HomeWallet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ test.describe('HomeWallet', () => {
await page.waitForTimeout(2000);
await page.reload();
await hasText(page, /Ethereum/i);
await hasText(page, /ETH.0\.002/i);
await hasText(page, '$0.00');
await getByAriaLabel(page, 'Selected Network').click();
await getByAriaLabel(page, 'fuel_network-item-2').click();
await hasText(page, "You don't have any assets");
Expand All @@ -55,14 +55,14 @@ test.describe('HomeWallet', () => {

test('should not show user balance when user sets it to hidden', async () => {
await visit(page, '/wallet');
await hasText(page, /ETH.+0/i);
await hasText(page, /[$]\d{1,}\.\d{2,}/i);
await getByAriaLabel(page, 'Hide balance').click(); // click on the hide balance
await hasText(page, /ETH.+/i); // should hide balance
await hasText(page, //i); // should hide balance
await reload(page); // reload the page
await hasText(page, /ETH.+/i); // should not show balance
await hasText(page, //i); // should not show balance
await getByAriaLabel(page, 'Show balance').click();
await hasText(page, /ETH.+0/i);
await hasText(page, /[$]\d{1,}\.\d{2,}/);
await reload(page); // reload the page
await hasText(page, /ETH.+0/i);
await hasText(page, /[$]\d{1,}\.\d{2,}/);
});
});

0 comments on commit ec99c9c

Please sign in to comment.