Remove new default workflow button in workflows sidebar (#1100)

This commit is contained in:
Chenlei Hu
2024-10-04 11:37:37 -04:00
committed by GitHub
parent e20126a254
commit 39d68bcdc4
4 changed files with 11 additions and 20 deletions

View File

@@ -192,12 +192,8 @@ class WorkflowsSidebarTab extends SidebarTab {
return this.page.locator('.new-blank-workflow-button')
}
get browseWorkflowsButton() {
return this.page.locator('.browse-workflows-button')
}
get newDefaultWorkflowButton() {
return this.page.locator('.new-default-workflow-button')
get openWorkflowButton() {
return this.page.locator('.open-workflow-button')
}
async getOpenedWorkflowNames() {

View File

@@ -426,9 +426,9 @@ test.describe('Menu', () => {
await comfyPage.loadWorkflow('missing_nodes')
await comfyPage.closeDialog()
// Load default workflow
// Load blank workflow
await comfyPage.menu.workflowsTab.open()
await comfyPage.menu.workflowsTab.newDefaultWorkflowButton.click()
await comfyPage.menu.workflowsTab.newBlankWorkflowButton.click()
// Switch back to the missing_nodes workflow
await comfyPage.menu.workflowsTab.switchToWorkflow('missing_nodes')