Skip to content

Commit

Permalink
feat: set a initial weight value for the upstream node (#1979)
Browse files Browse the repository at this point in the history
Co-authored-by: lixingwang <lixingwang@yiche.com>
  • Loading branch information
okaybase and lixingwang authored Jul 21, 2021
1 parent 799e69a commit c01fd52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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

0 comments on commit c01fd52

Please sign in to comment.