Skip to content

Commit 4ad0793

Browse files
fix race condition in test by waiting for search results to appear (#2544)
1 parent 788d84e commit 4ad0793

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/graphiql/cypress/integration/docs.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ describe('GraphiQL DocExplorer - search', () => {
6868
cy.visit(`/`);
6969
cy.get('.docExplorerShow').click();
7070
cy.get('label.search-box input').type('test');
71+
cy.get('.doc-category-item').should('have.length', 7);
7172
cy.get('.search-box-clear').click();
7273
cy.get('.doc-category-title').should('have.text', 'root types');
7374
cy.get('label.search-box input').should('have.value', '');

0 commit comments

Comments
 (0)