chstercc opened a new pull request, #5650: URL: https://github.com/apache/rocketmq-dashboard/pull/5650
### Which Issue(s) This PR Fixes - Fixes #4038 ### Brief Description Add direct auth store regression tests to cover: - Empty initial state when no identity is stored. - Login updating the in-memory identity and persisting it without storing a bearer token. - Restoring the persisted identity after reloading the module, with both admin flag values. - Logout clearing the identity and legacy bearer token, with no identity restored after reload. Only the new `web/src/stores/authStore.test.ts` file is added; runtime behavior is unchanged. ### How Did You Test This Change? Validated in a fresh worktree based on upstream `rocketmq-studio`: - Focused auth store and storage tests: 2 test files, 10 tests passed. - TypeScript compilation (`tsc -b`): passed. - Targeted ESLint: passed. - Prettier and `git diff --check`: passed. - Commit hooks, including ESLint and Prettier: passed. The full frontend suite, production build, and backend tests were not run because this change only adds focused frontend regression tests. ### Checklist - [x] One coherent change; unrelated modifications are not bundled in - [x] Commit subject follows Conventional Commits - [x] Regression tests added - [x] Formatting and diff checks passed - [x] New source file carries the ASF license header - [ ] Full build passes — production build was not run No new UI text, runtime behavior, or architecture changes. -- 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]
