mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-17 05:29:44 +02:00
test: Gate canvas readiness before header interactions after route (#36422)
Co-authored-by: n8n-cat-bot[bot] <n8n-cat-bot[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
8fa6cde8a1
commit
c0d1bd0e5f
|
|
@ -56,6 +56,9 @@ export class CanvasComposer {
|
|||
await this.n8n.canvas.openWorkflowHistory();
|
||||
await this.n8n.canvas.closeWorkflowHistory();
|
||||
await this.n8n.page.waitForLoadState();
|
||||
// Wait for the editor's loading overlay to clear before subsequent header
|
||||
// interactions; nodes can report visible while the overlay still blocks clicks.
|
||||
await this.n8n.canvas.waitForCanvasReady();
|
||||
await expect(this.n8n.canvas.getCanvasNodes().first()).toBeVisible();
|
||||
await expect(this.n8n.canvas.getCanvasNodes().last()).toBeVisible();
|
||||
}
|
||||
|
|
@ -66,6 +69,9 @@ export class CanvasComposer {
|
|||
async switchBetweenEditorAndWorkflowList(): Promise<void> {
|
||||
await this.n8n.sideBar.clickHomeButton();
|
||||
await this.n8n.workflows.cards.getWorkflows().first().click();
|
||||
// Wait for the editor's loading overlay to clear before subsequent header
|
||||
// interactions; nodes can report visible while the overlay still blocks clicks.
|
||||
await this.n8n.canvas.waitForCanvasReady();
|
||||
await expect(this.n8n.canvas.getCanvasNodes().first()).toBeVisible();
|
||||
await expect(this.n8n.canvas.getCanvasNodes().last()).toBeVisible();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user