Back to Test Runs

Run Details: run_98f12a

1 Confirmed Bug3x Anti-Flake Verified
Critical Defect Found· Reproduced 3/3 times (100% Deterministic)

500 Internal Server Error when submitting empty Coupon Code

Triggered under the Boundary QA Persona. The API threw an unhandled TypeError on null payload.

https://demo-shop.unflake.io/checkout
60 FPS Replay
Action: CLICK button "Apply Coupon"
Regression Anomaly Detected

HTTP 500: Server returned unhandled null pointer error

Verified 3/3 times in fresh clean browser contexts
Viewport: 1280x800 (Desktop Standard)Unflake Screencast Engine
00:14.200:38.4
Speed:
[LOG]Checkout initialized for guest session(bundle.js:12)
[WARNING]Missing required promo code attribute on DOM node [ref: 2](app.js:45)
[ERROR]Uncaught (in promise) Error: HTTP 500 at /api/promo(api.js:89)

Reproduction Step Timeline

4 Actions
Step 1: NAVIGATE
0.0s

Value: "https://demo-shop.unflake.io/checkout"

Step 2: FILL
5.0s

Target: textbox "Coupon Code"

Value: ""

Step 3: CLICK
14.2s

Target: button "Apply Coupon"

500 Internal Server Error: Unhandled TypeError in POST /api/promo
Step 4: ASSERT
25.0s

Target: body stability

Page UI frozen due to unhandled server response

Self-Healing Playwright TypeScript Script

import { test, expect } from '@playwright/test';

test('reproduce 500 on empty promo code submission', async ({ page }) => {
  // 1. Initial Navigation
  await page.goto('https://demo-shop.unflake.io/checkout');

  // 2. Ingest Boundary empty input
  await page.getByRole('textbox', { name: 'Coupon Code' }).fill('');

  // 3. Submit Coupon Form
  await page.getByRole('button', { name: 'Apply Coupon' }).click();

  // 4. Assert page stability and absence of 500 error
  await expect(page.locator('.server-error')).not.toBeVisible();
});