Skip to content

Test rejection of negative pricing discounts - #16

Merged
amasen02 merged 1 commit into
masterfrom
test/pricing-negative-discounts-2026-09-13
Sep 12, 2026
Merged

amasen02 merged 1 commit into
masterfrom
test/pricing-negative-discounts-2026-09-13

Conversation

@amasen02

@amasen02 amasen02 commented Sep 12, 2026 •

Copy link
Copy Markdown
Owner

Fixes #5.

Adds regression coverage showing that negative coupon values and discount percentages are rejected by the existing pricing validators.

Validation: 55 Pricing tests pass locally. Hosted Pricing build/tests, Docker/Trivy, CodeQL, SonarCloud and real checkout Playwright tests in Chromium, Firefox and WebKit all pass at 495de14. Root independently reviewed the two-test diff; no validation rules or gates changed.

@amasen02
amasen02 marked this pull request as ready for review September 12, 2026 21:28
@amasen02
amasen02 merged commit 21aa8f4 into master Sep 12, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: add unit tests for PriceCalculator edge cases with negative discounts

1 participant