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

feat: set a initial weight value for the upstream node #1979

Merged
merged 2 commits into from
Jul 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/cypress/integration/route/import_export_route.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ context('import and export routes', () => {
// input nodes_0_host, click Next
cy.get(selector.nodes_0_host).type(data[`upstream_node0_host_${i}`]);
cy.get(selector.nodes_0_port).type(data.port);
cy.get(selector.nodes_0_weight).type(data.weight);
cy.get(selector.nodes_0_weight).clear().type(data.weight);
cy.contains(actionBarUS['component.actionbar.button.nextStep']).click();
// do not config plugins, click Next
cy.contains(actionBarUS['component.actionbar.button.nextStep']).click();
Expand Down
1 change: 1 addition & 0 deletions web/src/components/Upstream/components/Nodes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const Component: React.FC<Props> = ({ readonly }) => {
message: formatMessage({ id: 'page.upstream.step.input.weight' }),
},
]}
initialValue={1}
>
<InputNumber
placeholder={formatMessage({ id: 'page.upstream.step.weight' })}
Expand Down