mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-04 02:37:46 +02:00
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:
parent
dd020a82fb
commit
947ca4b7d6
|
|
@ -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 ─────────────────────────────────────────────────────
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user