-
Notifications
You must be signed in to change notification settings - Fork 539
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
fix: advance matching in the route create page causes the page to crash #2440
fix: advance matching in the route create page causes the page to crash #2440
Conversation
My understanding of this issue is:
|
Codecov Report
@@ Coverage Diff @@
## master #2440 +/- ##
==========================================
+ Coverage 68.57% 68.80% +0.23%
==========================================
Files 131 131
Lines 3427 3427
Branches 831 833 +2
==========================================
+ Hits 2350 2358 +8
+ Misses 1077 1069 -8
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Hi @Si-ege, we need E2E test for this change:
|
|
Hi @Si-ege, thank you for your contribution. For the E2E test section, we would prefer to create a new test case, meaning to write the test in a new |
cy.get(selector.value).type(data.value); | ||
cy.contains('Confirm').click(); | ||
cy.get(selector.rowcard).should('be.visible'); | ||
cy.get(selector.rowcard).get('tr>td').eq(2).should('have.value', ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it show up as false here?
@@ -148,7 +148,8 @@ const MatchingRulesView: React.FC<RouteModule.Step1PassProps> = ({ | |||
{ | |||
title: formatMessage({ id: 'page.route.reverse' }), | |||
key: 'reverse', | |||
render: (text: RouteModule.MatchingRule) => text.reverse.toString(), | |||
render: (text: RouteModule.MatchingRule) => | |||
text.reverse === undefined ? text.reverse : text.reverse.toString(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is more appropriate to set an initial value for reverse in the Form.
ping @Si-ege any update? |
…causes-the-page-to-crash
* upstream/master: test: remove stale E2E cases (apache#2475) feat: basic support Apache APISIX 2.14.1 (apache#2464) fix: Users can create a Consumer in Dashboard without enabling the plugin (apache#2442) fix: change "Route List" to "Routes" (apache#2453) fix: advance matching in the route create page causes the page to crash (apache#2440) feat: release 2.13 (apache#2458) feat: support Turkish Language (apache#2452) # Conflicts: # web/package.json
…sh (apache#2440) (cherry picked from commit 5e624a5)
Please answer these questions before submitting a pull request, or your PR will get closed.
Why submit this pull request?
What changes will this PR take into?
Please update this section with detailed description.
Related issues
fix/resolve #2438
1.fix matching in the route create page causes the page to crash
Checklist: