Skip to content

Commit

Permalink
fix: incrase wait time for slow ci machine
Browse files Browse the repository at this point in the history
  • Loading branch information
chalabi2 committed Jan 14, 2025
1 parent 915a268 commit d6d8ddb
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions components/bank/components/__tests__/sendBox.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,26 @@ describe('SendBox', () => {
fireEvent.click(screen.getByLabelText('cross-chain-transfer-tab'));

// Verify cross-chain elements are present
await waitFor(() => {
expect(screen.getByLabelText('from-chain-selector')).toBeInTheDocument();
expect(screen.getByLabelText('to-chain-selector')).toBeInTheDocument();
});
await waitFor(
() => {
expect(screen.getByLabelText('from-chain-selector')).toBeInTheDocument();
expect(screen.getByLabelText('to-chain-selector')).toBeInTheDocument();
},
{ timeout: 2000 }
);
});

test('displays chain selection dropdowns in Cross-Chain Transfer mode', async () => {
renderWithProps();
fireEvent.click(screen.getByLabelText('cross-chain-transfer-tab'));
test(
'displays chain selection dropdowns in Cross-Chain Transfer mode',
async () => {
renderWithProps();
fireEvent.click(screen.getByLabelText('cross-chain-transfer-tab'));

await waitFor(() => {
expect(screen.getByLabelText('from-chain-selector')).toBeInTheDocument();
expect(screen.getByLabelText('to-chain-selector')).toBeInTheDocument();
});
});
await waitFor(() => {
expect(screen.getByLabelText('from-chain-selector')).toBeInTheDocument();
expect(screen.getByLabelText('to-chain-selector')).toBeInTheDocument();
});
},
{ timeout: 2000 }
);
});

0 comments on commit d6d8ddb

Please sign in to comment.