Skip to content

Commit

Permalink
fix: create_and_delete_route wrong way to locate prometheus button (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
idbeta authored Dec 18, 2020
1 parent a8352fa commit dd5e4e2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ context('Create and Delete Route', () => {
cy.contains('Next').click();

// config prometheus plugin
cy.contains('.ant-card', 'prometheus').get('button').first().click();
cy.contains('.ant-card', 'prometheus').within(($form) => {
cy.get('button').first().click();
})
cy.contains('button', 'Cancel').click();

// go to step4
Expand Down

0 comments on commit dd5e4e2

Please sign in to comment.