Skip to content

Commit c5e7898

Browse files
added delay: null to keyboard events
1 parent 6b455f2 commit c5e7898

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

static/app/views/discover/results/resultsSearchQueryBuilder.spec.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('ResultsSearchQueryBuilder', () => {
5959
const input = await screen.findByRole('combobox');
6060
await userEvent.click(input);
6161
await screen.findByRole('listbox');
62-
await userEvent.keyboard('has:p');
62+
await userEvent.keyboard('has:p', {delay: null});
6363

6464
// Check that "p50" (a function tag) is NOT in the dropdown
6565
const listbox = await screen.findByRole('listbox');
@@ -92,10 +92,11 @@ describe('ResultsSearchQueryBuilder', () => {
9292
}
9393
);
9494

95+
// Focus the input and type "transact" to simulate a search for transaction
9596
const input = await screen.findByRole('combobox');
9697
await userEvent.click(input);
9798
await screen.findByRole('listbox');
98-
await userEvent.keyboard('transact');
99+
await userEvent.keyboard('transact', {delay: null});
99100

100101
// Check that a normal tag (e.g. "transaction") IS in the dropdown
101102
const listbox = await screen.findByRole('listbox');

0 commit comments

Comments
 (0)