From a74247482b06db575c64e009ce5f92d4618b0a4d Mon Sep 17 00:00:00 2001 From: batman-ezio Date: Mon, 22 Mar 2021 12:20:00 +0800 Subject: [PATCH] fix: test case --- .../route/create-edit-duplicate-delete-route.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/cypress/integration/route/create-edit-duplicate-delete-route.spec.js b/web/cypress/integration/route/create-edit-duplicate-delete-route.spec.js index 1f9632bbf5..a0597c8151 100644 --- a/web/cypress/integration/route/create-edit-duplicate-delete-route.spec.js +++ b/web/cypress/integration/route/create-edit-duplicate-delete-route.spec.js @@ -188,7 +188,7 @@ context('Create and Delete Route', () => { const { domSelector, data } = this; const routeNames = [newName, duplicateNewName]; routeNames.forEach(function (routeName) { - cy.get(domSelector.nameSelector).type(routeName); + cy.get(`${domSelector.nameSelector} .ant-input`).clear().type(routeName); cy.contains('Search').click(); cy.contains(routeName).siblings().contains('Delete').click(); cy.contains('button', 'Confirm').click();