Frontmatter
| id | 7470 |
| title | PoC: Create Component Test for component.Image |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Oct 12, 2025, 2:57 PM |
| updatedAt | Oct 12, 2025, 3:35 PM |
| githubUrl | https://github.com/neomjs/neo/issues/7470 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 7435 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Oct 12, 2025, 3:35 PM |
PoC: Create Component Test for component.Image
tobiu assigned to @tobiu on Oct 12, 2025, 2:57 PM
tobiu added parent issue #7435 on Oct 12, 2025, 2:57 PM
tobiu changed title from PoC: Migrate Component Test for component.Image to PoC: Create Component Test for component.Image on Oct 12, 2025, 3:32 PM

tobiu
Oct 12, 2025, 3:35 PM
FYI @Aki-07 this one works now.
tobiu closed this issue on Oct 12, 2025, 3:35 PM
This was a high-priority Proof of Concept (PoC) task to create the very first component test using our new Playwright test harness. The goal was to test a simple component,
Neo.component.Image, to establish a definitive, working pattern for all future component test migrations.This PoC successfully resolved key unknowns (like module pathing and RMA usage) and now serves as the primary blueprint for other contributors.
Acceptance Criteria
test/playwright/component/specs/image.spec.mjs.beforeEachhook first navigates to theempty-viewportharness usingpage.goto('test/playwright/component/apps/empty-viewport/index.html').await page.waitForSelector('#component-test-viewport').Neo.component.Imageinstance is created using theNeo.worker.App.createNeoInstance()RMA method.importPathconfig (e.g.,importPath: '../component/Image.mjs').parentId: 'component-test-viewport'config.src) use local, relative paths to project assets (e.g.,../../../../../resources/images/logo/neo_logo_primary.svg).afterEachhook using theNeo.worker.App.destroyNeoInstance()RMA method.srcandaltattributes were correctly rendered in the DOM.Neo.worker.App.setConfigs()RMA method to change thesrcandaltconfigs and asserted that the DOM attributes updated correctly.