Skip to content

Commit

Permalink
adding wait for request
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Li <[email protected]>
  • Loading branch information
sejli committed Mar 29, 2024
1 parent d601174 commit f7aa109
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ describe(
describe('Configure panel settings', { defaultCommandTimeout: 20000 }, () => {
beforeEach(() => {
cy.visit(`${BASE_PATH}/app/visualize#`);
cy.intercept('**').as('searchRequest');
cy.get('.euiFieldSearch').focus().type(GANTT_VIS_NAME);
cy.wait('@searchRequest');
cy.contains(GANTT_VIS_NAME).should('exist').click({ force: true });
cy.contains('Panel settings').click({ force: true });
});
Expand Down

0 comments on commit f7aa109

Please sign in to comment.