From ac7f92a3aade9debc6917fca1ef8fbfd8eb2c0e3 Mon Sep 17 00:00:00 2001
From: Alec Chen <93971719+0xAlec@users.noreply.github.com>
Date: Fri, 9 Aug 2024 13:56:15 -0700
Subject: [PATCH] fix tests
---
src/wallet/components/WalletDropdownFundLink.test.tsx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/wallet/components/WalletDropdownFundLink.test.tsx b/src/wallet/components/WalletDropdownFundLink.test.tsx
index 2551070d8f..f8e3792b5e 100644
--- a/src/wallet/components/WalletDropdownFundLink.test.tsx
+++ b/src/wallet/components/WalletDropdownFundLink.test.tsx
@@ -12,7 +12,7 @@ describe('WalletDropdownFundLink', () => {
const linkElement = screen.getByRole('link');
expect(linkElement).toBeInTheDocument();
expect(linkElement).toHaveAttribute('href', FUNDING_URL);
- expect(screen.getByText('Deposit Funds')).toBeInTheDocument();
+ expect(screen.getByText('Fund Wallet')).toBeInTheDocument();
});
it('renders correctly with custom icon element', () => {
@@ -22,7 +22,7 @@ describe('WalletDropdownFundLink', () => {
const linkElement = screen.getByRole('link');
expect(linkElement).toBeInTheDocument();
expect(linkElement).toHaveAttribute('href', FUNDING_URL);
- expect(screen.getByText('Deposit Funds')).toBeInTheDocument();
+ expect(screen.getByText('Fund Wallet')).toBeInTheDocument();
expect(screen.getByLabelText('custom-icon')).toBeInTheDocument();
});
@@ -45,7 +45,7 @@ describe('WalletDropdownFundLink', () => {
render();
- const linkElement = screen.getByText('Deposit Funds');
+ const linkElement = screen.getByText('Fund Wallet');
fireEvent.click(linkElement);
// Check if window.open was called with the correct arguments
@@ -77,7 +77,7 @@ describe('WalletDropdownFundLink', () => {
render();
- const linkElement = screen.getByText('Deposit Funds');
+ const linkElement = screen.getByText('Fund Wallet');
fireEvent.click(linkElement);
const expectedLeft = (1024 - width) / 2;