Skip to content

test(policy-editor): cover policy preview outcomes#1055

Open
snkk2x-collab wants to merge 1 commit into
Stellar-Mail:mainfrom
snkk2x-collab:codex/policy-editor-regression-939
Open

test(policy-editor): cover policy preview outcomes#1055
snkk2x-collab wants to merge 1 commit into
Stellar-Mail:mainfrom
snkk2x-collab:codex/policy-editor-regression-939

Conversation

@snkk2x-collab

Copy link
Copy Markdown

Summary

  • extract the policy editor sender preview decision into a route-ignored pure helper
  • keep the existing UI workflow and copy unchanged
  • add regression coverage for allowed, unknown-blocked, verification-required, and postage-required outcomes

Fixes #939

Before / After

Before, the live simulator behavior was embedded in the route component and had no focused unit coverage. After this change, the same decisions are covered by deterministic tests while the route continues to render the same user-visible simulator messages.

Validation

  • pnpm exec vitest run src/routes/policy-editor/-policyPreview.test.ts
  • pnpm exec tsc --noEmit
  • pnpm exec eslint src/routes/policy-editor/route.tsx src/routes/policy-editor/-policyPreview.ts src/routes/policy-editor/-policyPreview.test.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Existing app][Policy Editor] Add regression coverage for current behavior

1 participant