From 8ce95f02acdb8741dd8ded42b9ac20f2f7a2bdd6 Mon Sep 17 00:00:00 2001 From: idbeta Date: Fri, 18 Dec 2020 16:31:08 +0800 Subject: [PATCH] fix: create_and_delete_route wrong way to locate prometheus button --- web/cypress/integration/route/create_and_delete_route.spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/cypress/integration/route/create_and_delete_route.spec.js b/web/cypress/integration/route/create_and_delete_route.spec.js index 39853c683f..655e2f9320 100644 --- a/web/cypress/integration/route/create_and_delete_route.spec.js +++ b/web/cypress/integration/route/create_and_delete_route.spec.js @@ -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