Files
automaker/test/running-task-display-test-805-6c4ockc/test-project-1772088506096/test-feature.js
gsxdsm 583c3eb4a6 Make memory and context views mobile-friendly (#813)
* Changes from fix/memory-and-context-mobile-friendly

* fix: Improve file extension detection and add path traversal protection

* refactor: Extract file extension utilities and add path traversal guards

Code review improvements:
- Extract isMarkdownFilename and isImageFilename to shared image-utils.ts
- Remove duplicated code from context-view.tsx and memory-view.tsx
- Add path traversal guard for context fixture utilities (matching memory)
- Add 7 new tests for context fixture path traversal protection
- Total 61 tests pass

Addresses code review feedback from PR #813

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* test: Add e2e tests for profiles crud and board background persistence

* Update apps/ui/playwright.config.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix: Add robust test navigation handling and file filtering

* fix: Format NODE_OPTIONS configuration on single line

* test: Update profiles and board background persistence tests

* test: Replace iPhone 13 Pro with Pixel 5 for mobile test consistency

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-02-26 03:31:40 -08:00

63 lines
1.2 KiB
JavaScript

/**
* Test Feature Implementation
*
* This file demonstrates a simple test feature implementation
* for validating the Automaker system workflow.
*/
class TestFeature {
constructor(name = 'Test Feature') {
this.name = name;
this.status = 'running';
this.createdAt = new Date().toISOString();
}
/**
* Execute the test feature
* @returns {Object} Execution result
*/
execute() {
console.log(`Executing ${this.name}...`);
const result = {
success: true,
message: 'Test feature executed successfully',
timestamp: new Date().toISOString(),
feature: this.name,
};
this.status = 'completed';
return result;
}
/**
* Get feature status
* @returns {string} Current status
*/
getStatus() {
return this.status;
}
/**
* Get feature info
* @returns {Object} Feature information
*/
getInfo() {
return {
name: this.name,
status: this.status,
createdAt: this.createdAt,
};
}
}
// Export for use in tests
module.exports = TestFeature;
// Example usage
if (require.main === module) {
const feature = new TestFeature();
const result = feature.execute();
console.log(JSON.stringify(result, null, 2));
}