Morakes commented on code in PR #2593:
URL: https://github.com/apache/apisix-dashboard/pull/2593#discussion_r948690351
##########
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:
If someone add the new plugins to the data object, it may affect this test
caseļ¼so I added it manually.
--
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]