You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by su...@apache.org on 2020/12/18 13:11:15 UTC
[apisix-dashboard] branch master updated: fix:
create_and_delete_route wrong way to locate prometheus button (#1069)
This is an automated email from the ASF dual-hosted git repository.
sunyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new dd5e4e2 fix: create_and_delete_route wrong way to locate prometheus button (#1069)
dd5e4e2 is described below
commit dd5e4e2da6e8b3a016affd6b6f59d0d63894316e
Author: idbeta <id...@gmail.com>
AuthorDate: Fri Dec 18 21:11:07 2020 +0800
fix: create_and_delete_route wrong way to locate prometheus button (#1069)
---
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 39853c6..655e2f9 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