TestamplifyQA Crew

Checkout and order history

completed
Run 13c90695-80f5-4c7f-99cd-20893e07574e
  1. Quality Analystneeds approval
  2. Automation Engineerok
Quality Analyst

Analyst test plan

Acceptance criterion

After one declined $19.99 wallet payment, Order history must show that order as Declined.

Order historyhigh risk

Declined payment recorded as Paid

Checkout displayed “Payment declined.” but Order history listed order #1 for $19.99 as Paid, which can mislead shoppers about whether they paid.

Proposed checkIn a fresh buggy workbook, decline one $19.99 wallet payment and verify that the matching Order history row shows Declined, independently of the checkout message.

Plan file specs/STORY-2.md
Evidence 3 files
Step output needs approval
{
  "risks": [
    {
      "id": "R1",
      "title": "Declined payment recorded as Paid",
      "area": "Order history",
      "severity": "high",
      "rationale": "Checkout displayed “Payment declined.” but Order history listed order #1 for $19.99 as Paid, which can mislead shoppers about whether they paid.",
      "suggestedChecks": [
        "In a fresh buggy workbook, decline one $19.99 wallet payment and verify that the matching Order history row shows Declined, independently of the checkout message."
      ]
    }
  ],
  "gaps": [],
  "planPath": "specs/STORY-2.md"
}
Automation Engineer

Step result

Generated Playwright test
import { test, expect } from '@playwright/test';
import { declineWallet, orderHistory } from '../seed';

test("Declined wallet payment in Order history", async ({ page }) => {
  await declineWallet(page);
  const history = orderHistory(page);
  const order = history.getByRole('row').filter({
    has: page.getByRole('cell', { name: "$19.99", exact: true }),
  });
  await expect(order).toHaveCount(1);
  const columns = await history.getByRole('columnheader').allTextContents();
  const column = columns.indexOf("Status");
  expect(column).toBeGreaterThanOrEqual(0);
  await expect(order.getByRole('cell').nth(column)).toHaveText("Declined");
});
Evidence 1 files
Step output ok
{
  "specFiles": [
    "tests/STORY-2/declined-wallet.spec.ts"
  ],
  "buggy": {
    "passed": 0,
    "failed": 1
  },
  "fixed": {
    "passed": 1,
    "failed": 0
  }
}