FangSen9000 commented on code in PR #2581:
URL: https://github.com/apache/apisix-dashboard/pull/2581#discussion_r964587256
##########
web/cypress/e2e/rest/service-edit-service-with-upstream.cy.js:
##########
@@ -88,19 +87,16 @@ context('Edit Service with Upstream', () => {
cy.contains('Search').click();
cy.contains(data.serviceName).siblings().contains('Configure').click();
- cy.wait(500);
- cy.get(selector.nodes_0_host)
- .click({
- force: true,
- })
- .should('value', data.ip1);
- cy.get(selector.input).should('be.disabled');
-
cy.get(selector.upstreamSelector).click();
- cy.contains('.ant-select-item-option-content', 'Custom').click();
-
cy.get(selector.nodes_0_host).should('not.be.disabled').clear().type(data.ip2);
- cy.get(selector.nodes_0_port).type(data.port);
- cy.get(selector.nodes_0_weight).type(data.weight);
+ cy.wait(500);
+ cy.contains('.ant-select-item-option-content',
'Custom').should('be.visible').click();
+ cy.wait(300);
+
cy.get$(selector.nodes_0_host).should('not.be.disabled').clear().type(data.ip2);
Review Comment:
I use jQuery to wrap some elements, which can make the positioning of more
accurate
--
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]