guoqqqi commented on a change in pull request #1805:
URL: https://github.com/apache/apisix-dashboard/pull/1805#discussion_r618477473



##########
File path: web/cypress/integration/route/search-route.spec.js
##########
@@ -53,10 +53,11 @@ context('Create and Search Route', () => {
 
       // eslint-disable-next-line no-loop-func
       cy.get(this.domSelector.drawerBody).within(() => {
-        cy.contains('Add').click();
+        cy.contains('Add').click().then(() => {
         cy.get(this.domSelector.labels_0_labelKey).type(`label${i}`);
         cy.get(this.domSelector.labels_0_labelValue).type(`value${i}`);
         cy.contains('Confirm').click();
+        });
       });

Review comment:
       ```suggestion
           cy.contains('Add').click().then(() => {
             cy.get(this.domSelector.labels_0_labelKey).type(`label${i}`);
             cy.get(this.domSelector.labels_0_labelValue).type(`value${i}`);
             cy.contains('Confirm').click();
           });
         });
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to