apisix-dashboard icon indicating copy to clipboard operation
apisix-dashboard copied to clipboard

request help: frontend E2E test (change upstream type to chash) need a better the search method

Open idbeta opened this issue 5 years ago • 4 comments

Feature request

Please describe your feature

now the method of change upstream type to cash and input hash_on and key which in frontend E2E test is:

cy.get('[title=roundrobin]').click();
cy.wait(sleepTime);
cy.get('.ant-select-item:nth-child(2)').click();
cy.get('#hash_on').click();
cy.wait(sleepTime);
cy.get('.ant-select-item-option-active:nth-child(1) > .ant-select-item-option-content').click();
cy.get('#key').click();
cy.wait(sleepTime);
cy.get('div:nth-child(8) .ant-select-item:nth-child(1) > .ant-select-item-option-content:nth-child(1)').click();

These steps seem too complicated, I hope there are simpler steps to achieve it.

https://github.com/apache/apisix-dashboard/blob/master/web/cypress/integration/upstream/create_and_delete_upstream.spec.js#L73-L84

idbeta avatar Dec 23 '20 16:12 idbeta

@idbeta please provide a link about your example, it is easier to view

membphis avatar Dec 29 '20 13:12 membphis

@LiteSun Need your help ^_^

membphis avatar Dec 29 '20 13:12 membphis

@idbeta please provide a link about your example, it is easier to view

ok, I have added the link.

idbeta avatar Dec 30 '20 01:12 idbeta

ping @LiteSun

moonming avatar Jan 04 '21 02:01 moonming