Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Jul 24, 2023
1 parent 1c86477 commit 14c1972
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/graphiql-react/src/explorer/components/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ export function Search() {
<Combobox.Input
autoComplete="off"
onFocus={handleFocus}
// TODO: find a better way to handle onBlur
onBlur={handleFocus}
onChange={event => setSearchValue(event.target.value)}
placeholder="&#x2318; K"
Expand Down
2 changes: 2 additions & 0 deletions packages/graphiql/cypress/e2e/docs.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ describe('GraphiQL DocExplorer - search', () => {
});

it('Closes popover when blurring input', () => {
cy.dataCy('doc-explorer-input').focus();
cy.dataCy('doc-explorer-input').type('list');
cy.dataCy('doc-explorer-input').blur();
cy.dataCy('doc-explorer-list').should('not.exist');
});
Expand Down

0 comments on commit 14c1972

Please sign in to comment.