guoqqqi commented on code in PR #2593:
URL: https://github.com/apache/apisix-dashboard/pull/2593#discussion_r948626222


##########
web/cypress/integration/plugin/create-delete-in-drawer-plugin.spec.js:
##########
@@ -211,6 +225,93 @@ context('Delete Plugin List with the Drawer', () => {
       });
     });
     cy.contains(data.basicAuthPlugin).should('exist');
+
+    cy.visit('/plugin/list');
+    cy.get(selector.empty).should('be.visible');
+  });
+
+  it('should be deleted one of the plugins instead of all', function () {
+    cy.visit('/plugin/list');
+    cy.get(selector.refresh).click();
+    cy.contains('Enable').click();
+
+    const pluginList = [data.jwtAuthPlugin, data.basicAuthPlugin, 
data.keyAuthPlugin];
+    pluginList.forEach((item) => {

Review Comment:
   why not use `Object.values(data)`



-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to