Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: balance format precision with tooltips #1571

Merged
merged 20 commits into from
Oct 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: update tests based on the new format
helciofranco committed Oct 9, 2024
commit 13c5b95bd589c3ead73e19d503d0f2aef45aece4
2 changes: 1 addition & 1 deletion packages/app/playwright/crx/crx.test.ts
Original file line number Diff line number Diff line change
@@ -494,7 +494,7 @@ test.describe('FuelWallet Extension', () => {
});

// Approve transaction
await hasText(approveTransactionPage, /0\.0000001.ETH/i);
await hasText(approveTransactionPage, /\<0\.000001.ETH/i);
await waitAriaLabel(
approveTransactionPage,
senderAccount.address.toString()
6 changes: 3 additions & 3 deletions packages/app/playwright/e2e/HomeWallet.test.ts
Original file line number Diff line number Diff line change
@@ -52,14 +52,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\.0/i);
await hasText(page, /ETH.+0/i);
await getByAriaLabel(page, 'Hide balance').click(); // click on the hide balance
await hasText(page, /ETH.+•••••/i); // should hide balance
await reload(page); // reload the page
await hasText(page, /ETH.+•••••/i); // should not show balance
await getByAriaLabel(page, 'Show balance').click();
await hasText(page, /ETH.+0\.0/i);
await hasText(page, /ETH.+0/i);
await reload(page); // reload the page
await hasText(page, /ETH.+0\.0/i);
await hasText(page, /ETH.+0/i);
});
});
Loading