Skip to content

Commit

Permalink
Fix intercept logic for createDashboard (#1522)
Browse files Browse the repository at this point in the history
Signed-off-by: Simeon Widdis <[email protected]>
  • Loading branch information
Swiddis authored Sep 3, 2024
1 parent e7b011d commit f936766
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ describe('Testing panels table', () => {
cy.get('input.euiFieldText').focus().type(TEST_PANEL, {
delay: 50,
});
cy.intercept('POST', `${BASE_PATH}/api/saved_objects/*`).as(
'createDashboard'
);
cy.get('.euiButton__text')
.contains(/^Create$/)
.trigger('mouseover')
.click();
cy.intercept('POST', '/api/saved_objects/*').as('createDashboard');
cy.wait('@createDashboard');

cy.contains(TEST_PANEL).should('exist');
Expand Down

0 comments on commit f936766

Please sign in to comment.