Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAlec committed Aug 9, 2024
1 parent f1fb810 commit ac7f92a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wallet/components/WalletDropdownFundLink.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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();
});

Expand All @@ -45,7 +45,7 @@ describe('WalletDropdownFundLink', () => {

render(<WalletDropdownFundLink openIn="window" />);

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
Expand Down Expand Up @@ -77,7 +77,7 @@ describe('WalletDropdownFundLink', () => {

render(<WalletDropdownFundLink openIn="window" windowSize={size} />);

const linkElement = screen.getByText('Deposit Funds');
const linkElement = screen.getByText('Fund Wallet');
fireEvent.click(linkElement);

const expectedLeft = (1024 - width) / 2;
Expand Down

0 comments on commit ac7f92a

Please sign in to comment.