sanity test cases
5 Real-World Sanity Test Case Examples for Common Bug Fixes
blog_image
By Vivek Nair
Updated on: 8/02/25
8 min read

Table Of Content

Bug fixes can mislead. Just because a developer pushes a patch does not confirm the issue is resolved. Sanity test cases give QA teams a fast way to validate if the fix works. This avoids unnecessary regression runs when only one function was touched.

A sanity testing test case checks the specific area that was previously broken. If login fails or a button becomes unresponsive after deployment, there’s no need to test everything. Just confirm the fix behaves as expected.

This blog includes five working sanity test case examples based on real issues. Each example outlines the input, the expected output, and the steps required to validate the fix. For teams working under tight deadlines, these cases help avoid unnecessary regression runs. 

Tools like BotGauge simplify this process further by generating focused sanity test cases automatically, right after a bug is resolved.

Sanity Test Case No. 1: Login Failure Fix

Background

A recent fix addressed a problem where valid users were unable to log in using correct credentials. This issue blocked access to critical features and disrupted the user experience. A quick sanity testing test case ensures the login flow behaves as expected without re-running the full authentication suite.

Test Case

  • Input: Valid email and correct password.
  • Action: Click the Login button.
  • Expected Result: User successfully logs in and the dashboard loads.
  • Edge Case: Entering an incorrect password shows the correct error message.

This basic test is part of a strong sanity test checklist. You can also verify session persistence after login, ensuring no side effects remain from the original bug. When tools like BotGauge are in place, this sanity test case can be auto-generated and executed within minutes, saving valuable QA effort.

Sanity Test Case No. 2: Discount Calculation Bug

Background

A bug caused promo codes to apply incorrect discounts in the cart. Customers either overpaid or saw inconsistent totals during checkout. This required focused sanity testing test cases to verify discount logic in isolation.

Test Case

  • Input: Apply a valid promo code to a cart with eligible items
  • Action: Proceed to checkout
  • Expected Result: The correct discount appears in the final total
  • Edge Case: Ineligible users receive an “Invalid promo code” message

This type of issue fits perfectly within a sanity test checklist. You’re confirming only the part that broke—no need to test payment gateways or user profile flow. 

This sanity test case helps prevent billing errors and supports quicker releases. Use similar sanity test case examples for any update tied to cart pricing or discount application.

Sanity Test Case No. 3: Broken Checkout Button

Background

After a production deployment, users reported that the “Place Order” button on the checkout page stopped responding. This bug interrupted the entire purchase flow. 

A targeted sanity test case helps confirm that the issue is resolved without testing the full order system.

Test Case

  • Input: Cart contains valid items and a complete shipping address
  • Action: Click the Place Order button
  • Expected Result: User is redirected to the payment page
  • Edge Case: If the address field is left blank, the button remains disabled or shows a clear validation message

This test belongs in any standard sanity test checklist. It’s a fast way to verify the checkout flow after UI or configuration changes. 

For functional bug testing, this scenario highlights how even a small deployment error can break core actions. Including such sanity testing test cases reduces the risk of missed blockers in release pipelines.

Sanity Test Case No. 4: Messaging Feature Crash

Background

A bug was introduced where deleting a read message caused the chat window to crash. The issue impacted user communication and required immediate attention. A direct sanity test case is enough to confirm that the fix holds without running full UI tests.

Test Case

  • Input: Open a read message thread in a one-on-one chat
  • Action: Delete the last message in the thread
  • Expected Result: The message is removed and the chat window stays stable
  • Edge Case: Attempt to delete a message in a group thread. The system should block or warn without crashing

This kind of issue is common in real-world sanity testing. You do not need broad coverage. Just one test to verify the core fix and one edge case. 

These sanity test case examples help reduce QA cycles and are easy to reuse during future UI updates. Every test in the sanity test checklist should cover recent bug zones like this.

Sanity Test Case No. 5: Environment Config Update

Background

An API endpoint was recently updated through a configuration file. On some builds, the older config caused silent failures during profile updates. 

A focused sanity test case is required to verify the new endpoint works as expected and that fallbacks don’t trigger errors.

Test Case

  • Input: Trigger a profile update, such as changing the display name
  • Action: Click Save Changes
  • Expected Result: A success message appears and backend logs show no errors
  • Edge Case: In a legacy environment, the fallback should fail visibly with a clear alert

This test fits into a minimal testing approach where the goal is to validate high-impact fixes quickly. It supports software sanity verification by ensuring core API flows behave correctly post-config change. 

Test CaseScenarioIDInputActionExpected ResultEdge Case
Login Failure FixBug in login for valid usersSTC-001Email: qa.user@example.com, Password: ValidPass123Enter credentials and click LoginRedirect to dashboard, user name visibleWrong password shows “Invalid credentials”
Discount Calculation BugPromo code gives incorrect totalSTC-002Product: T-shirt ₹1,000, Promo: SAVE20Apply promo and proceed to checkoutDiscount ₹200 applied, total ₹800Ineligible promo shows “Invalid promo code”
Broken Checkout Button“Place Order” button unresponsive post-deploySTC-003Cart: 2 items, Address: 221B Baker StreetClick Place OrderRedirects to payment pageEmpty address keeps button disabled
Messaging Feature CrashDeleting message crashes chatSTC-004Chat with 3 read messagesDelete last messageMessage deleted, chat remains stableGroup chat delete blocked or shows warning
Environment Config UpdateConfig change broke API silentlySTC-005Update name to Akshay QA in profileClick Save ChangesProfile updated, API returns 200 OKLegacy config shows connection error

Such sanity test case examples are critical for spotting misconfigurations before release. Every QA sanity flow should include a test like this for endpoint or environment-related fixes.

How BotGauge Can Help with Sanity Test Cases

BotGauge is one of the few AI testing agents with features that clearly set it apart from other sanity testing test case tools. It combines flexibility, automation, and real-time adaptability for QA teams that need fast, reliable validation.

Our autonomous agent has created over a million sanity test cases across industries like fintech, e‑commerce, and healthcare. With over 10 years of software testing experience, the founders designed BotGauge to meet the exact needs teams face after a bug fix.

Key Features for Sanity Testing

  • Intelligent Test Generation in Plain English: You can describe the expected behavior in simple language, and BotGauge converts it into working automated scripts. No coding is required.
  • Self‑Healing Test Scripts: When your UI structure or backend logic changes, test scripts automatically adapt—keeping your sanity test checklist intact without rewriting.
  • Unified Testing Across Layers: Run tests across UI, APIs, databases, and more in a single flow. Perfect for full software sanity verification after any change.
  • Real‑Time Debugging and Reporting: Get immediate visibility into failures with detailed logs and visual reports linked directly to your sanity test case runs.

These capabilities support rapid feedback and help QA teams manage tight deadlines using consistent, reusable sanity test case examples. → Explore BotGauge’s AI-driven testing features.

Conclusion

Manual sanity test cases often get skipped or poorly maintained. QA teams are under pressure, and writing tests for every bug fix becomes repetitive. There’s no standard format, no reuse, and no time. Most teams rely on tribal knowledge or rushed checks.

The result? Bugs slip into production. A small login fix breaks the cart. A promo code issue goes unnoticed. Customers face errors that were supposedly resolved. The fear of regression lingers with every release, slowing down deployments and shaking confidence across teams.

That’s where BotGauge comes in. It removes the manual effort from sanity testing test cases. Describe the fix, and it builds the test. It adapts to UI changes and runs only what’s needed. No guesswork. Just fast, reliable verification with real sanity test case examples.Let’s connect today and let BotGauge handle your Sanity Testing.

FAQ's

Share

Join our Newsletter

Curious and love research-backed takes on Culture? This newsletter's for you.

What’s Next?

View all Blogs

Anyone can automate end-to-end tests!

Our AI Test Agent enables anyone who can read and write English to become an automation engineer in less than an hour.

© 2025 BotGauge. All rights reserved.