You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add manual test runner for page-designer-decorator tool- Add automated test runner script (index.test.mjs) with 24 test cases- Support both temporary directory mode (default) and real Storefront Next project mode- Update test documentation with usage instructions for both modes- Update tool README with manual test runner sectionThe test runner covers component discovery, auto mode, interactive mode,error handling, edge cases, and environment variable scenarios.
- Component discovery searches in your real Storefront Next project (`SFCC_WORKING_DIRECTORY`)
111
+
- Test components created by the script are placed in a temporary directory (not in your real project)
112
+
- The script will **not** modify your real project files (read-only)
113
+
- Tests will use existing components from your real project if they exist
114
+
- If a test component doesn't exist in your real project, the test will show a "component not found" result (this is expected)
115
+
- The real project directory is preserved after testing
116
+
- To test with specific components, ensure they exist in your real project's `src/components/` directory
117
+
118
+
**Alternative Testing Methods**:
119
+
-**MCP Inspector**: Interactive UI testing (see section 2 above)
120
+
-**CLI Testing**: Command-line testing (see section 3 above)
121
+
-**Manual Test Plan**: Full integration testing including Business Manager and Page Designer (see [manual test plan](../../../../../Documents/page-designer-decorator-manual-test-plan.md) for TC-7.x tests)
122
+
123
+
### 5. Manual Testing with Real Components
54
124
55
125
1. Set up a Storefront Next project (or use an existing one)
0 commit comments