diff --git a/browser_tests/fixtures/components/SubgraphEditor.ts b/browser_tests/fixtures/components/SubgraphEditor.ts index 39f4523499..68a6343e90 100644 --- a/browser_tests/fixtures/components/SubgraphEditor.ts +++ b/browser_tests/fixtures/components/SubgraphEditor.ts @@ -17,7 +17,7 @@ export class SubgraphEditor { ) } - async open(subgraphNode: Locator) { + async ensureOpen(subgraphNode: Locator) { await new VueNodeFixture(subgraphNode).select() if (await this.root.isVisible()) return const menu = await this.comfyPage.contextMenu.openFor(subgraphNode) @@ -70,7 +70,7 @@ export class SubgraphEditor { toState?: boolean } ) { - await this.open(subgraphNode) + await this.ensureOpen(subgraphNode) const item = this.resolveItem(options) await this.togglePromotionOnItem(item, options.toState) diff --git a/browser_tests/tests/subgraph/subgraphPromotion.spec.ts b/browser_tests/tests/subgraph/subgraphPromotion.spec.ts index 9767d63efc..f1ef983d88 100644 --- a/browser_tests/tests/subgraph/subgraphPromotion.spec.ts +++ b/browser_tests/tests/subgraph/subgraphPromotion.spec.ts @@ -781,7 +781,7 @@ test( await comfyPage.subgraph.exitViaBreadcrumb() }) - await editor.open(subgraphNode) + await editor.ensureOpen(subgraphNode) const stepsItem = await editor.resolveItem({ widgetName: 'steps' }) await expect(editor.getToggleButton(stepsItem)).toBeDisabled() }