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 2022/10/07 07:15:29 UTC
[GitHub] [apisix-dashboard] LiteSun commented on a diff in pull request #2630: feat: Adding a Loading state to buttons
LiteSun commented on code in PR #2630:
URL: https://github.com/apache/apisix-dashboard/pull/2630#discussion_r989753927
##########
web/cypress/e2e/route/batch-delete-route.cy.js:
##########
@@ -63,36 +63,38 @@ context('Create and Batch Deletion Routes', () => {
for (let i = 0; i < 3; i += 1) {
cy.wait(timeout);
cy.get('.ant-pro-table-list-toolbar-right').contains('Create').click();
- cy.get('.ant-row').contains('Next').click().click();
cy.get(selector.name).type(`test${i}`);
cy.get(selector.description).type(`desc${i}`);
cy.get(selector.hosts_0).type(data.host1);
cy.get(selector.uris_0).clear().type(`/get${i}`);
-
// config label
cy.contains('Manage').click();
-
+ // eslint-disable-next-line @typescript-eslint/no-loop-func
cy.get(selector.drawerBody).within(($drawer) => {
cy.wrap($drawer)
.contains('button', 'Add')
.should('not.be.disabled')
- .click()
+ .click({ force: true })
Review Comment:
why does it need to add force here?
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org