Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
idbeta opened this issue Dec 23, 2020 · 4 comments · Fixed by #1187
Closed
Assignees
Labels
Milestone

Comments

@idbeta
Copy link
Contributor

idbeta commented Dec 23, 2020

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

@membphis
Copy link
Member

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

@membphis
Copy link
Member

@LiteSun Need your help ^_^

@idbeta
Copy link
Contributor Author

idbeta commented Dec 30, 2020

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

ok, I have added the link.

@juzhiyuan juzhiyuan added this to the 2.4 milestone Jan 4, 2021
@moonming
Copy link
Member

moonming commented Jan 4, 2021

ping @LiteSun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants