DigiTransact · Vibe Coding Academy

DEVELOPMENT WORKBOOK

Software testing prompts

Work through 14 software testing tasks. Open a brief to see its worked example, customise the variables and copy the completed prompt.

← All categories
Test a tiered delivery fee Intermediate

Exercise the exact threshold where the fee changes.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Design executable checks on local synthetic fixtures for {{project}}. Exercise the exact threshold where the fee changes.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a fixture table, assertions and a test-run recipe. Cover one ordinary case and one boundary; label unexecuted checks honestly.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A fixture table, assertions and a test-run recipe. 99.99 incurs the fee; 100.00 does not.

Worked example

Input: free delivery starts at GHS 100.
Passing result: 99.99 incurs the fee; 100.00 does not.

Common mistakes

Follow-up prompts

Link to this prompt
Check a leap-day enrolment rule Intermediate

Define expected behaviour for a date present only in leap years.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Design executable checks on local synthetic fixtures for {{project}}. Define expected behaviour for a date present only in leap years.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a fixture table, assertions and a test-run recipe. Cover one ordinary case and one boundary; label unexecuted checks honestly.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A fixture table, assertions and a test-run recipe. Non-leap years use the documented anniversary rule rather than an invalid date.

Worked example

Input: course anniversary is 29 February.
Passing result: Non-leap years use the documented anniversary rule rather than an invalid date.

Common mistakes

Follow-up prompts

Link to this prompt
Validate keyboard-only checkout Intermediate

Prove the final action is reachable without a pointer.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Design executable checks on local synthetic fixtures for {{project}}. Prove the final action is reachable without a pointer.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a fixture table, assertions and a test-run recipe. Cover one ordinary case and one boundary; label unexecuted checks honestly.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A fixture table, assertions and a test-run recipe. Tab order reaches confirm and returns correctly from address editing.

Worked example

Input: checkout has a collapsible address section.
Passing result: Tab order reaches confirm and returns correctly from address editing.

Common mistakes

Follow-up prompts

Link to this prompt
Test undo after a list reorder Intermediate

Undo by stable identity rather than visual index.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Design executable checks on local synthetic fixtures for {{project}}. Undo by stable identity rather than visual index.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a fixture table, assertions and a test-run recipe. Cover one ordinary case and one boundary; label unexecuted checks honestly.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A fixture table, assertions and a test-run recipe. Undo restores B without altering another item.

Worked example

Input: remove item B then sort remaining items.
Passing result: Undo restores B without altering another item.

Common mistakes

Follow-up prompts

Link to this prompt
Check invoice PDF content Intermediate

Assert document meaning rather than fragile pixel positions.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Design executable checks on local synthetic fixtures for {{project}}. Assert document meaning rather than fragile pixel positions.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a fixture table, assertions and a test-run recipe. Cover one ordinary case and one boundary; label unexecuted checks honestly.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A fixture table, assertions and a test-run recipe. Extracted text contains the last line item and payable total once.

Worked example

Input: invoice spans two pages.
Passing result: Extracted text contains the last line item and payable total once.

Common mistakes

Follow-up prompts

Link to this prompt
Verify draft schema upgrades Intermediate

Keep older locally saved drafts usable after a new release.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Design executable checks on local synthetic fixtures for {{project}}. Keep older locally saved drafts usable after a new release.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a fixture table, assertions and a test-run recipe. Cover one ordinary case and one boundary; label unexecuted checks honestly.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A fixture table, assertions and a test-run recipe. The upgraded draft retains old values and requests only the missing district.

Worked example

Input: v1 draft lacks district field.
Passing result: The upgraded draft retains old values and requests only the missing district.

Common mistakes

Follow-up prompts

Link to this prompt
Check bilingual label coverage Intermediate

Detect missing translated keys and harmful fallbacks.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Design executable checks on local synthetic fixtures for {{project}}. Detect missing translated keys and harmful fallbacks.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a fixture table, assertions and a test-run recipe. Cover one ordinary case and one boundary; label unexecuted checks honestly.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A fixture table, assertions and a test-run recipe. The report flags the missing key and confirms a readable fallback.

Worked example

Input: submit label absent in language B.
Passing result: The report flags the missing key and confirms a readable fallback.

Common mistakes

Follow-up prompts

Link to this prompt
Test partial batch acceptance Intermediate

Ensure one rejected row cannot conceal accepted rows.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Design executable checks on local synthetic fixtures for {{project}}. Ensure one rejected row cannot conceal accepted rows.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a fixture table, assertions and a test-run recipe. Cover one ordinary case and one boundary; label unexecuted checks honestly.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A fixture table, assertions and a test-run recipe. Four committed records and one labelled rejection are reported.

Worked example

Input: five-row import with invalid row three.
Passing result: Four committed records and one labelled rejection are reported.

Common mistakes

Follow-up prompts

Link to this prompt
Validate a recurring shift roster Intermediate

Check local weekdays across month boundaries.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Design executable checks on local synthetic fixtures for {{project}}. Check local weekdays across month boundaries.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a fixture table, assertions and a test-run recipe. Cover one ordinary case and one boundary; label unexecuted checks honestly.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A fixture table, assertions and a test-run recipe. The next occurrence is still Friday with the planned local start time.

Worked example

Input: Friday shift repeats into a new month.
Passing result: The next occurrence is still Friday with the planned local start time.

Common mistakes

Follow-up prompts

Link to this prompt
Test interrupted attachment save Intermediate

Keep draft metadata consistent when storage fails.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Design executable checks on local synthetic fixtures for {{project}}. Keep draft metadata consistent when storage fails.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a fixture table, assertions and a test-run recipe. Cover one ordinary case and one boundary; label unexecuted checks honestly.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A fixture table, assertions and a test-run recipe. The record shows a recoverable missing attachment, not a broken success state.

Worked example

Input: image write fails after title saved.
Passing result: The record shows a recoverable missing attachment, not a broken success state.

Common mistakes

Follow-up prompts

Link to this prompt
Check inclusive range filters Intermediate

Exercise items exactly on both ends of a range.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Design executable checks on local synthetic fixtures for {{project}}. Exercise items exactly on both ends of a range.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a fixture table, assertions and a test-run recipe. Cover one ordinary case and one boundary; label unexecuted checks honestly.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A fixture table, assertions and a test-run recipe. Items at both 10 and 20 appear; 20.01 does not.

Worked example

Input: price range GHS 10 to 20.
Passing result: Items at both 10 and 20 appear; 20.01 does not.

Common mistakes

Follow-up prompts

Link to this prompt
Verify pagination after deletion Intermediate

Handle removal of the last item on the final page.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Design executable checks on local synthetic fixtures for {{project}}. Handle removal of the last item on the final page.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a fixture table, assertions and a test-run recipe. Cover one ordinary case and one boundary; label unexecuted checks honestly.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A fixture table, assertions and a test-run recipe. After deletion the user sees page three rather than a stranded empty page.

Worked example

Input: page four contains just one record.
Passing result: After deletion the user sees page three rather than a stranded empty page.

Common mistakes

Follow-up prompts

Link to this prompt
Test assistive status announcements Intermediate

Announce completed work once without moving focus.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Design executable checks on local synthetic fixtures for {{project}}. Announce completed work once without moving focus.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a fixture table, assertions and a test-run recipe. Cover one ordinary case and one boundary; label unexecuted checks honestly.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A fixture table, assertions and a test-run recipe. A status message is available and focus stays on the current input.

Worked example

Input: background export becomes ready.
Passing result: A status message is available and focus stays on the current input.

Common mistakes

Follow-up prompts

Link to this prompt
Compare tax invoice invariants Intermediate

Check conservation of totals across random synthetic baskets.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Design executable checks on local synthetic fixtures for {{project}}. Check conservation of totals across random synthetic baskets.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a fixture table, assertions and a test-run recipe. Cover one ordinary case and one boundary; label unexecuted checks honestly.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A fixture table, assertions and a test-run recipe. Net plus documented taxes equals payable amount under the stated rounding rule.

Worked example

Input: basket includes discounted and exempt lines.
Passing result: Net plus documented taxes equals payable amount under the stated rounding rule.

Common mistakes

Follow-up prompts

Link to this prompt