1. Test Plan and Verification
1.1 Objectives and Test Levels
I based the test plan on the Jira acceptance criteria and the main user workflows. Testing covers valid and invalid inputs, role-specific controls, request errors, environment selection, and session behaviour. Automated coverage checks and manual QA provide complementary validation of the application.
The Jira tickets defined the expected behaviour for login validation, read-only access, feature flag persistence and failed-save recovery, cache-refresh confirmation and feedback, and multi-environment request targeting.[6] They also included automated tests and representative Storybook states as part of the development work.
I used Vitest and Vue Testing Library for automated unit and integration tests, alongside manual testing of the application. Vue Testing Library exercises user-facing behaviour in a jsdom environment. Mock HTTP responses support repeatable success and failure scenarios, while fake timers allow the inactivity deadline to be tested without waiting for the full timeout period.
The QA team created manual test cases from the acceptance criteria for each release ticket and validated them as part of the release process. Storybook supports visual inspection of component states alongside the automated and manual tests.
1.2 Automated Test Plan
|
Area |
Behaviour validated |
Result |
|
Authentication |
Successful and failed login, identity validation, token persistence, logout, and role capabilities produced the expected session state. |
Automated checks passed. |
|
Navigation and login |
Protected navigation followed the authenticated session state, and login interactions handled valid and invalid submissions. |
Automated checks passed. |
|
Session lifecycle |
Idle expiry, activity-based deadline changes, cross-tab coordination, and the absence of an idle timer for unauthenticated users behaved as expected. |
Automated checks passed. |
|
Cache communication |
Requests used the expected URLs and keys; hosted lists and JSON responses were handled; production lookup was rejected; refresh failures were reported. |
Automated checks passed. |
|
Cache and role workflows |
Tab changes reset previous input and results, refresh required confirmation, and representative roles received the expected controls. |
Automated checks passed. |
|
Feature flag persistence |
Invalid schemas and failed requests produced errors, only changed documents were saved, and UI recovery and capability checks behaved correctly. |
Automated checks passed. |
|
Feature flag interface |
Search, filtering, staged changes, preview/confirmation, and read-only controls matched the expected interactions. |
Automated checks passed. |
These suites support regression testing of the services, stores, components, and routed workflows. I used them to check the main success and failure paths as the modules were developed and integrated.
1.3 Manual Integration and QA Plan
The manual test plan covers the following integration and regression scenarios:
|
Scenario |
Procedure |
Expected outcome |
|
Login and restored session |
Log in using representative test roles, reload, then repeat with an invalid or expired token. |
Identity validation controls access; rejected credentials do not preserve a usable client session. |
|
Capability separation |
Test cache-admin, feature-flag-admin, ff-admin, admin, and an authenticated role without write capabilities. |
Controls match the capability matrix; read-only flag access is clearly identified. Service authorization must be verified separately. |
|
Cache lookup |
Test valid content and partner keys, invalid identifiers, missing environment selection, missing data, and service errors. |
Valid results identify the environment; validation and errors do not display stale or misleading data. |
|
JSON display and copying |
Inspect long values at desktop and narrow viewport sizes, then copy a result. |
The display remains readable and the copied JSON preserves the original formatted content. |
|
Cache refresh |
Select environment/resource types, cancel confirmation, then confirm; exercise complete success and partial failure using approved test resources. |
Cancellation sends no refresh; confirmed outcomes distinguish success from failure. Production remains disabled. |
|
Flag review and persistence |
Stage a permitted change, inspect the preview, cancel or confirm, then reload the document. |
Cancellation leaves storage unchanged; a successful write is reflected in the intended environment after reload. |
|
Flag write failure |
Use a controlled failed write and separately simulate mixed success across environments. |
Error feedback and UI recovery are correct; storage is inspected independently for any successful partial writes. |
|
Session coordination |
Exercise inactivity, activity in another tab, logout in one tab, and return to a previously hidden tab. |
Idle handling and cross-tab logout follow the client lifecycle contract without treating activity as token refresh. |
|
Deployed requests |
Run browser reads and writes against approved test endpoints, inspecting methods, headers, CORS, and read/write document targets. |
Requests reach the intended services; no local proxy is assumed to exist in the deployed application. |
|
Visual and keyboard regression |
Inspect relevant Storybook states and application forms, dialogs, messages, and focus behaviour. |
Controls remain readable and operable without overlapping content; any accessibility defects are recorded rather than assuming certification. |
QA has passed, and the Jira acceptance criteria were validated. The manual QA process complements the automated unit and integration suite by checking the release against its expected user-facing behaviour.
1.4 Automated Test Results
I ran the Vitest suite with coverage enabled and used Vue/TypeScript static analysis to validate the application. The coverage configuration enforces an aggregate minimum of eighty percent for statements, branches, functions, and lines across the configured critical paths. This scope includes cache and feature flag workflows, service communication, application state, navigation, and session management.
The automated tests and static analysis produced the following results:
|
Check |
Result |
|
Automated suite |
170 tests passed across 16 test files. |
|
Statement coverage |
91.15% (618 of 678). |
|
Branch coverage |
84.88% (500 of 589). |
|
Function coverage |
90.70% (205 of 226). |
|
Line coverage |
90.80% (573 of 631). |
|
Vue/TypeScript validation |
Type checking passed. |
The suite passed all 170 tests and exceeded the configured eighty-percent aggregate threshold in each coverage category. The reported coverage measures the configured critical application paths collectively.
The reusable build workflow runs the coverage suite before building deployment artifacts. Automated coverage checks and manual QA validation of Jira acceptance criteria provide complementary release checks.