test: Page-scope Instance AI preview NDV output panel locator (#31530)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matsu 2026-06-02 10:03:19 +03:00 committed by GitHub
parent dd020a82fb
commit 947ca4b7d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -231,8 +231,16 @@ export class InstanceAiPage extends BasePage {
);
}
/**
* NDV is rendered through a `<Teleport :to="#app-modals">`, and `#app-modals`
* is mounted in `App.vue` as a sibling of the router view i.e. OUTSIDE both
* `workflow-canvas-host` and `instance-ai-container`. So unlike the canvas
* content above, this must be page-scoped, not scoped to the preview canvas.
* On the `/instance-ai` route the main editor isn't mounted, so the preview's
* NDV is the only `output-panel` on the page.
*/
getPreviewNdvOutputPanel(): Locator {
return this.getPreviewCanvas().getByTestId('output-panel');
return this.page.getByTestId('output-panel');
}
// ── Artifacts ─────────────────────────────────────────────────────