youngkermit8-coder opened a new pull request, #1759:
URL: https://github.com/apache/rocketmq-dashboard/pull/1759

   ## What changed
   
   - update the unavailable-consumer-metrics regression to mock 
`getTopicConsumerPage`, which is the API used by `TopicPage`
   - return the paginated response shape expected by the component
   - assert the topic, selected instance, page, and page-size request arguments
   
   ## Why
   
   After Topic consumer pagination was introduced, this test kept mocking the 
obsolete `getTopicConsumers` helper. The mock was never used, so the detail 
view received an empty page and the assertion for the `不可用` metric label failed.
   
   Closes #1758.
   
   ## Validation
   
   - `vitest run src/pages/instance/__tests__/TopicPage.test.tsx` — 11/11 passed
   - `eslint src/pages/instance/__tests__/TopicPage.test.tsx` — passed
   - `npm run build` — passed
   - `git diff --check` — passed


-- 
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]

Reply via email to