yyqdbngt opened a new pull request, #3859:
URL: https://github.com/apache/rocketmq-dashboard/pull/3859
### Motivation
The existing `MessageQueryHistoryDrawer` tests cover the initial
per-instance load and the retry-on-failure flow. The search resubmission and
the message-row selection callback were untested.
### Changes
- `re-submits the history when a search term is entered`: submitting the
search box reloads the message history with the term and resets to page one.
- `invokes the message row selection callback`: clicking a message row
forwards the record to `onSelectMessage`.
### Verification
```
./node_modules/.bin/vitest run
src/components/__tests__/MessageQueryHistoryDrawer.test.tsx # 4 passed
./node_modules/.bin/tsc --noEmit
# clean
./node_modules/.bin/eslint
src/components/__tests__/MessageQueryHistoryDrawer.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]