stephenLYZ commented on a change in pull request #19392: URL: https://github.com/apache/superset/pull/19392#discussion_r839116077
########## File path: superset-frontend/cypress-base/cypress/support/index.ts ########## @@ -102,3 +103,88 @@ Cypress.Commands.add( return cy; }, ); + +Cypress.Commands.add('deleteDashboardByName', (name: string) => + cy.getDashboards().then(dashboards => { + for (const element of dashboards) { Review comment: 可以使用 forEach 替换 for...of -- 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: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org