refactor(e2e): rename SubgraphEditor.open to ensureOpen

Amp-Thread-ID: https://ampcode.com/threads/T-019e3d8c-b6b4-731e-b3fb-9bdb6fefb1ae
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
DrJKL
2026-05-18 20:25:38 -07:00
parent 88d737f07b
commit fcb7faba65
2 changed files with 3 additions and 3 deletions

View File

@@ -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)

View File

@@ -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()
}