Test Plan: QA Issue Tracker

1. Introduction

This document outlines the test strategy, scope, and approach for the QA Issue Tracker module of the MemberVu application. The QA Issue Tracker enables internal bug reporting and issue management, allowing team members to report issues directly from the application with screenshots and contextual information.

2. Scope

The testing will cover the following functional areas:

  1. Issue Creation: Creating new QA issues with title, description, severity, screenshots, and page URL context
  2. Issue Workflow: Status transitions through OPEN, IN_PROGRESS, FIXED, VERIFIED, and CLOSED
  3. Issue Filtering & Search: Filtering issues by status, severity, assignee, reporter, and date range
  4. Comments & Discussion: Adding, editing, and deleting comments on issues with threading support

3. Test Strategy

3.1 Testing Levels

LevelApproachTools
Unit TestingDeveloper-owned (Jest/Vitest)Jest, Vitest
API TestingBackend endpoint validationPostman, curl, integration tests
E2E TestingFull UI workflow testingPlaywright, Cypress
RBAC TestingPermission verification across rolesManual + API tests

3.2 Test Types

4. Environment

ComponentLocation
Frontend Pagesfrontend/pwa-app/src/pages/AdminQaIssuesPage.tsx, MyIssuesPage.tsx
Frontend Componentsfrontend/pwa-app/src/components/qa/
Frontend Hooksfrontend/pwa-app/src/hooks/useQaIssues.ts, useQaIssueComments.ts
Backend Handlersauth-service/src/handlers/qaIssueHandlers.ts, qaCommentHandlers.ts
DatabasePostgreSQL (Prisma ORM)

5. Data Model Reference

QaIssue

FieldTypeDescription
idStringPrimary key (CUID)
tenantIdStringTenant context
titleStringIssue title
descriptionStringDetailed description
severityIssueSeverityLOW, MEDIUM, HIGH, CRITICAL
statusIssueStatusOPEN, IN_PROGRESS, FIXED, VERIFIED, CLOSED
pageUrlStringURL where issue was reported
screenshotString?Optional screenshot URL
reportedByStringReporter user ID
assignedToString?Assignee user ID
createdAtDateTimeCreation timestamp
updatedAtDateTimeLast update timestamp
resolvedAtDateTime?Resolution timestamp

QaIssueComment

FieldTypeDescription
idStringPrimary key (CUID)
contentStringComment text
screenshotString?Optional screenshot URL
issueIdStringParent issue ID
authorIdStringComment author ID
createdAtDateTimeCreation timestamp
updatedAtDateTimeLast update timestamp

6. Roles & Permissions

RoleCreate IssuesView OwnView AllAssignChange StatusDelete
MEMBERYesYesNoNoNoNo
OFFICERYesYesYesYesYesNo
ADMINYesYesYesYesYesYes

Permission Matrix Details

7. API Endpoints Under Test

Issue Endpoints

MethodEndpointDescription
GET/api/qa/issuesList issues with filtering
GET/api/qa/issues/:idGet issue details
POST/api/qa/issuesCreate new issue
PATCH/api/qa/issues/:idUpdate issue
DELETE/api/qa/issues/:idDelete issue (Admin only)

Comment Endpoints

MethodEndpointDescription
GET/api/qa/issues/:id/commentsList issue comments
POST/api/qa/issues/:id/commentsAdd comment
PATCH/api/qa/comments/:idUpdate comment
DELETE/api/qa/comments/:idDelete comment

8. Test Data Requirements

Required Test Users

UserRolePurpose
Admin UserADMINFull access testing
Ana ReyesOFFICER (FINANCE_MANAGER)Officer-level testing
Maria CruzMEMBERRegular member testing
Miguel FernandezPENDING_MEMBERRestricted access testing

Sample QA Issues for Testing

Issue IDTitleSeverityStatus
QA-001Button alignment on mobileLOWOPEN
QA-002Form validation errorMEDIUMIN_PROGRESS
QA-003Payment gateway timeoutHIGHFIXED
QA-004Data loss on page refreshCRITICALVERIFIED
QA-005Archived issue for historyLOWCLOSED

9. Test Case Summary

Test Case IDTest Case NamePriority
TC_QA_001Issue CreationP1 - Critical
TC_QA_002Issue WorkflowP1 - Critical
TC_QA_003Issue FilteringP2 - High
TC_QA_004Issue CommentsP2 - High

10. Entry Criteria

11. Exit Criteria

12. Risk Assessment

RiskLikelihoodImpactMitigation
Screenshot upload failuresMediumMediumTest with various file types and sizes
Status transition edge casesLowHighThoroughly test all valid/invalid transitions
Permission bypassLowCriticalTest each role exhaustively
Concurrent editsMediumMediumTest optimistic locking behavior

13. Test Deliverables

14. Related Documentation