Baoyuantop commented on a change in pull request #2377:
URL: https://github.com/apache/apisix-dashboard/pull/2377#discussion_r832756512



##########
File path: 
web/cypress/integration/pluginTemplate/create-plugin-template-with-route.spec.js
##########
@@ -129,7 +117,21 @@ context('Create PluginTemplate Binding To Route', () => {
     cy.contains(data.pluginTemplateName).siblings().contains('Delete').click();
     cy.contains('button', 'Confirm').click();
     cy.get(selector.notification).should('contain', 
data.deletePluginTemplateSuccess);
+    it('should delete the pluginTemplate failure', function () {
+      cy.visit('plugin-template/list');
+      cy.get(selector.refresh).click();
 
+      cy.get(selector.descriptionSelector).type(data.pluginTemplateName);
+      cy.contains('button', 'Search').click();
+      cy.contains(data.pluginTemplateName)
+        .should('be.visible')
+        .siblings()
+        .contains('Delete')
+        .click();
+      cy.contains('button', 'Confirm').click();
+      cy.get(selector.notification).should('contain', 
data.pluginTemplateErrorAlert);
+      cy.get(selector.notificationClose).should('be.visible').click();
+    });

Review comment:
       Why is this test case included inside other test cases?




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