Frontmatter
| id | 8337 |
| title | Fix Playwright Timing: Wait for Neo.worker.App in Chip.spec.mjs |
| state | Closed |
| labels | bugaitesting |
| assignees | [] |
| createdAt | Jan 5, 2026, 8:14 PM |
| updatedAt | Jan 5, 2026, 8:40 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8337 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 5, 2026, 8:40 PM |

The Playwright component tests are failing with
TypeError: Cannot read properties of undefined (reading 'createNeoInstance'). This occurs because the test script executesNeo.worker.App.createNeoInstanceinsidepage.evaluatebefore the App worker has successfully registered its remote methods in the main thread.Root Cause: Race condition between the test script execution and the Neo.mjs worker initialization / remote method registration.
Fix: Update the test
beforeEachblock to explicitly wait forNeo.worker.Appto be defined in the window context.await page.waitForFunction(() => window.Neo && window.Neo.worker && window.Neo.worker.App);Scope: Apply this fix to
test/playwright/component/list/Chip.spec.mjsto verify the solution.