Skip to content

Commit af78586

Browse files
test(frontend): wait for active chat search result
1 parent 04188ce commit af78586

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Dechat/dex_with_fiat_frontend/src/components/__tests__/ChatSearchPanel.test.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ describe('ChatSearchPanel – keyboard shortcuts (#1183)', () => {
6262
// not just for the (synchronously-rendered) results container to exist.
6363
// Generous timeout: real (non-fake) timers under a loaded test runner.
6464
await screen.findByText('Bridging XLM', {}, { timeout: 3000 });
65+
await screen.findByRole('option', { selected: true });
6566

6667
fireEvent.keyDown(root, { key: 'Enter' });
6768

@@ -75,6 +76,7 @@ describe('ChatSearchPanel – keyboard shortcuts (#1183)', () => {
7576

7677
fireEvent.change(input, { target: { value: 'XLM' } });
7778
await screen.findByText('Wallet setup', {}, { timeout: 3000 });
79+
await screen.findByRole('option', { selected: true });
7880

7981
fireEvent.keyDown(root, { key: 'ArrowDown' });
8082
fireEvent.keyDown(root, { key: 'Enter' });

0 commit comments

Comments
 (0)