btlqql opened a new issue, #4014:
URL: https://github.com/apache/rocketmq-dashboard/issues/4014
## Problem
The current test suite does not cover blank navigation search queries.
## Expected behavior
- A focused Vitest case locks the existing behavior.
- The targeted test file passes and fails if the covered behavior regresses.
## Scope
Only add regression coverage for $(@{Slug=navigation-search-blank;
Focus=blank navigation search queries; PrTitle=test(navigation): cover blank
navigation search queries; TestFile=web/src/layouts/navigationSearch.test.ts;
Mode=existing; Append=describe('navigation search blank queries', () => {
it('returns entries unchanged for empty and whitespace-only queries', ()
=> {
const entries = [{ key: '/cluster', label: 'RocketMQ 集群' }];
expect(filterNavigationEntries(entries, '')).toEqual(entries);
expect(filterNavigationEntries(entries, ' ')).toEqual(entries);
});
});}.TestFile). No runtime behavior changes.
## Acceptance criteria
- [ ] The targeted Vitest file passes.
- [ ] git diff --check is 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]