yyqdbngt opened a new pull request, #3860:
URL: https://github.com/apache/rocketmq-dashboard/pull/3860
### Motivation
The existing `SettingsPage` test covers tab switching with unrelated query
preservation. Two routing shapes were untested: the data-source tab key mapping
and the fallback for an unknown `tab` parameter.
### Changes
- `switches to the data source tab and updates the query`: clicking the data
source tab rewrites the query to `tab=datasource`.
- `falls back to the general tab for an unknown tab parameter`: an unknown
`tab` value renders the general settings content while leaving the query
untouched.
### Verification
```
./node_modules/.bin/vitest run
src/pages/settings/__tests__/SettingsPage.test.tsx # 3 passed
./node_modules/.bin/tsc --noEmit
# clean
./node_modules/.bin/eslint
src/pages/settings/__tests__/SettingsPage.test.tsx # clean
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]