From adba408bd5b87f5bae2c681f735b018f5bc74078 Mon Sep 17 00:00:00 2001 From: lixingwang Date: Wed, 14 Jul 2021 00:50:38 +0800 Subject: [PATCH] clear first and then type --- web/cypress/integration/route/import_export_route.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/cypress/integration/route/import_export_route.spec.js b/web/cypress/integration/route/import_export_route.spec.js index 7e841d7edb..17e3afc237 100644 --- a/web/cypress/integration/route/import_export_route.spec.js +++ b/web/cypress/integration/route/import_export_route.spec.js @@ -84,7 +84,7 @@ context('import and export routes', () => { // input nodes_0_host, click Next cy.get(selector.nodes_0_host).type(data[`upstream_node0_host_${i}`]); cy.get(selector.nodes_0_port).type(data.port); - cy.get(selector.nodes_0_weight).type(data.weight); + cy.get(selector.nodes_0_weight).clear().type(data.weight); cy.contains(actionBarUS['component.actionbar.button.nextStep']).click(); // do not config plugins, click Next cy.contains(actionBarUS['component.actionbar.button.nextStep']).click();