youngkermit8-coder opened a new issue, #1758: URL: https://github.com/apache/rocketmq-dashboard/issues/1758
## Problem `TopicPage` now loads consumer details through the paginated `getTopicConsumerPage` service, but the regression test `renders unavailable Topic consumer metrics distinctly from zero` still mocks the obsolete `getTopicConsumers` call. As a result, the mock never intercepts the request, the detail drawer receives an empty consumer page, and the test fails while waiting for the `不可用` metric label. ## Reproduction ```text vitest run src/pages/instance/__tests__/TopicPage.test.tsx TestingLibraryElementError: Unable to find an element with the text: 不可用 ``` The same mismatch is visible directly in the current `rocketmq-studio` branch: the component calls `getTopicConsumerPage`, while this one test configures `getTopicConsumers`. ## Expected behavior The test should mock the paginated response used by the component and continue verifying that unavailable metrics are rendered distinctly from numeric zero. -- 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]
