Skip to content

About

A QA-driven automation approach that combines visual test design with structured Cypress automation for clear, maintainable, and meaningful test coverage. πŸš€

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Mind-Map Testing Framework with Cypress

A QA-driven automation approach that combines visual test design with structured Cypress automation for clear, maintainable, and meaningful test coverage. πŸš€


🌟 What is Mind-Map Testing?

Mind-Map Testing is a visual approach to test design where each application feature, flow, and edge case is represented as a node in a mind map.

It helps QA teams visualize relationships between components, prioritize features, and plan automation efficiently.

🧩 In Simple Terms:

"A mind map helps you see the full picture β€” automation then ensures it works as expected!"


🎯 Why Mind-Map Testing?

Benefit Description
πŸ” Clear Coverage Each feature & test case is visible as a branch in the map β€” no hidden gaps.
πŸš€ Faster Automation Planning Priorities (P0, P1, P2) help decide which tests to automate first.
🧱 Stronger QA Process Creates a single visual reference for devs, testers, and product teams.
πŸͺ„ Effort Optimization Focus automation where it matters most β€” avoid wasting time on unstable UI flows.
πŸ“ˆ Continuous Improvement The map evolves with the product, ensuring evergreen QA coverage.

🧩 Test Categorization (P0, P1, P2)

Tests are categorized by business criticality and automation suitability:

Priority Folder Description Run Frequency Automation Status
🟒 P0 - Smoke Tests cypress/e2e/smoke/ Critical end-to-end paths (login, checkout) Every PR βœ… Automatable
πŸ”΅ P1 - Regression Tests cypress/e2e/regression/ Key features like sorting, login error, remove item Nightly / Release βœ… Automatable
🟠 P2 - Exploratory Tests cypress/e2e/exploratory/ Edge, UX, or performance checks Weekly / Ad-hoc βš™οΈ Partially Automatable

🧠 Mapping Tests to Mind-Map Nodes

Example for SauceDemo:

Mind-Map Node Test File Priority Automation Notes
Login β†’ Valid smoke_checkout.cy.js P0 βœ… Core login path
Cart β†’ Add/Remove remove_item.cy.js P1 βœ… Repeatable UI flow
Products β†’ Sort sort_verification.cy.js P1 βœ… Verifies sorting logic
Checkout β†’ Navigate Back checkout_back_nav.cy.js P2 βš™οΈ Tests browser navigation edge case
Performance β†’ Mobile Responsiveness mobile_responsiveness.cy.js P2 βš™οΈ Checks layout, partial automation

βš™οΈ How to Run the Tests

▢️ Run all smoke (P0) tests

npm run cypress:run:smoke

πŸ” Run regression (P1) suite

npm run cypress:run:regression

πŸ§ͺ Run exploratory (P2) suite

npm run cypress:run:exploratory

🌐 Run all suites together

npm run cypress:run:all

🧱 Why This Helps QA Automation Teams

πŸ’‘ Before Mind-Map Testing:

  • QA teams wrote test cases in isolation.
  • Hard to visualize feature coverage.
  • Automation focused on quantity, not impact.

βš™οΈ After Mind-Map Testing:

  • QA & Dev align using the same mind map.
  • Automation is prioritized by P0/P1/P2.
  • Reporting clearly maps tests β†’ features.
  • Easier to identify untested or manual areas.

πŸ’Ž Key Benefits in Real QA Process

βœ… Ensures shift-left quality β€” QA involved from design.

βœ… Improves traceability between manual and automated tests.

βœ… Supports exploratory + regression synergy.

βœ… Enables CI/CD prioritization β€” smoke (P0) runs on PRs, regression (P1) nightly.

βœ… Promotes visual clarity β€” everyone knows test coverage status.


πŸ“˜ Folder Structure Overview

MINDMAPTESTING/
β”œβ”€ .vscode/
β”œβ”€ cypress/
β”‚  β”œβ”€ docs/
β”‚  β”‚  └─ SauceDemo_MindMap.md          # πŸ—ΊοΈ Mind map visualization
β”‚  β”œβ”€ e2e/
β”‚  β”‚  β”œβ”€ exploratory-P2/               # 🟠 P2 - Exploratory tests
β”‚  β”‚  β”‚  β”œβ”€ add_all_products.cy.js
β”‚  β”‚  β”‚  β”œβ”€ checkout_back_nav.cy.js
β”‚  β”‚  β”‚  └─ mobile_responsiveness.cy.js
β”‚  β”‚  β”œβ”€ regression-P1/                # πŸ”΅ P1 - Regression tests
β”‚  β”‚  β”‚  β”œβ”€ invalid_login.cy.js
β”‚  β”‚  β”‚  β”œβ”€ remove_item.cy.js
β”‚  β”‚  β”‚  └─ sort_verification.cy.js
β”‚  β”‚  └─ smoke-P0/                     # 🟒 P0 - Smoke tests
β”‚  β”‚     └─ smoke_checkout.cy.js
β”‚  β”œβ”€ fixtures/
β”‚  β”‚  └─ users.json                    # Test data (users, env configs)
β”‚  β”œβ”€ support/
β”‚  β”‚  β”œβ”€ pages/                        # Page Object files
β”‚  β”‚  β”‚  β”œβ”€ cartPage.js
β”‚  β”‚  β”‚  β”œβ”€ checkoutPage.js
β”‚  β”‚  β”‚  β”œβ”€ inventoryPage.js
β”‚  β”‚  β”‚  └─ loginPage.js
β”‚  β”‚  β”œβ”€ commands.js
β”‚  β”‚  └─ e2e.js
β”‚  └─ cypress.config.js                # Cypress configuration
β”œβ”€ node_modules/
β”œβ”€ package-lock.json
└─ package.json

πŸ—ΊοΈ Visual Mind Map Structure

image

πŸ“Š Mind Map Overview

The mind map visualizes the complete test coverage for SauceDemo application, organized into three priority levels:

🟒 P0 - Smoke Tests (Critical)

Critical end-to-end paths that must pass before any release:

  • Login β†’ Valid

    • πŸ”Ή Priority: P0
    • βœ… Automation: Yes
    • πŸ“‚ Test File: cypress/e2e/smoke/smoke_checkout.cy.js
    • πŸ”„ CI Stage: PR-Smoke
  • Checkout β†’ Happy Path

    • πŸ”Ή Priority: P0
    • βœ… Automation: Yes
    • πŸ“‚ Test File: cypress/e2e/smoke/smoke_checkout.cy.js
    • πŸ”„ CI Stage: PR-Smoke

πŸ”΅ P1 - Regression Tests (Important)

Key features that ensure application stability:

  • Login β†’ Invalid

    • πŸ”Ή Priority: P1
    • βœ… Automation: Yes
    • πŸ“‚ Test File: cypress/e2e/regression/invalid_login.cy.js
    • πŸ”„ CI Stage: Nightly
  • Cart β†’ Add/Remove

    • πŸ”Ή Priority: P1
    • βœ… Automation: Yes
    • πŸ“‚ Test File: cypress/e2e/regression/remove_item.cy.js
    • πŸ”„ CI Stage: Nightly
  • Products β†’ Sort & Filter

    • πŸ”Ή Priority: P1
    • βœ… Automation: Yes
    • πŸ“‚ Test File: cypress/e2e/regression/sort_verification.cy.js
    • πŸ”„ CI Stage: Nightly

🟠 P2 - Exploratory Tests (Edge/Performance)

Edge cases, UX, and performance validation:

  • Checkout β†’ Back Navigation

    • πŸ”Ή Priority: P2
    • βš™οΈ Automation: Yes
    • πŸ“‚ Test File: cypress/e2e/exploratory/checkout_back_nav.cy.js
    • πŸ”„ CI Stage: Exploratory
  • Cart β†’ Add All Products

    • πŸ”Ή Priority: P2
    • βš™οΈ Automation: Yes
    • πŸ“‚ Test File: cypress/e2e/exploratory/add_all_products.cy.js
    • πŸ”„ CI Stage: Exploratory
  • UI β†’ Mobile Responsiveness

    • πŸ”Ή Priority: P2
    • βš™οΈ Automation: Yes
    • πŸ“‚ Test File: cypress/e2e/exploratory/mobile_responsiveness.cy.js
    • πŸ”„ CI Stage: Exploratory

🎯 Mind Map Legend:

  • πŸ”Ή Priority - Test criticality level (P0/P1/P2)
  • βœ… Automation Status - Fully automated
  • βš™οΈ Automation Status - Partially automated
  • πŸ“‚ Test File - Corresponding Cypress test file
  • πŸ”„ CI Stage - When the test runs in CI/CD pipeline
Question If "Yes" β†’ Automate If "No" β†’ Keep Manual
Is it business-critical? βœ… 🚫
Is it repeatable & stable? βœ… 🚫
Can we mock external systems? βœ… 🚫
Does it run frequently? βœ… 🚫

πŸ’¬ Tip: Automate if 3+ answers are "Yes".


🧭 Summary

🧠 Mind-Map Testing bridges visual planning and automated validation.

It ensures the right tests are automated at the right priority β€” keeping your Cypress framework lean, focused, and aligned with business goals.

Goal: "Quality is visible, measurable, and continuously improving." ✨


⭐ Pro Tip

Attach your mind-map (.xmind or .mm file) directly in your repository β€” this connects test visual design with executable automation.


πŸ‘¨β€πŸ’» Author

Saran Kumar

Designed & implemented as part of QA innovation β€” focusing on AI-augmented, mind-map-driven Cypress automation for maintainable test architecture.


πŸ“š Use this README to onboard new QA members quickly or present your automation strategy in reviews.

About

A QA-driven automation approach that combines visual test design with structured Cypress automation for clear, maintainable, and meaningful test coverage. πŸš€

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages