juzhiyuan commented on a change in pull request #1608:
URL: https://github.com/apache/apisix-dashboard/pull/1608#discussion_r596530894
##########
File path: web/cypress/integration/route/import_export_route.spec.js
##########
@@ -124,14 +124,13 @@ context('import and export routes', () => {
it('should delete the route', function () {
cy.visit('/routes/list');
+ cy.get(this.domSelector.refresh).click();
+
for (let i = 0; i < 2; i += 1) {
- cy.contains(data[`route_name_${i}`])
- .siblings()
- .contains(componentLocaleUS['component.global.delete'])
- .click();
- cy.contains('button',
componentLocaleUS['component.global.confirm']).click();
+ cy.contains('Delete').should('be.visible').click();
Review comment:
Would better to add more information about this Button.
----------------------------------------------------------------
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]