You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/03/18 01:01:07 UTC
[GitHub] [apisix-dashboard] LiteSun commented on a change in pull request #1608: fix: unstable front-end tests
LiteSun commented on a change in pull request #1608:
URL: https://github.com/apache/apisix-dashboard/pull/1608#discussion_r596481926
##########
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:
There will be two delete buttons here, and you should locate the specific delete button IMO.
----------------------------------------------------------------
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:
users@infra.apache.org