[BrowserTest] Replace ComfyPage.reload with ComfyPage.setup (#2208)

This commit is contained in:
Chenlei Hu
2025-01-09 12:54:05 -05:00
committed by GitHub
parent 93e184e379
commit e8cd9c7642
4 changed files with 5 additions and 10 deletions

View File

@@ -21,7 +21,7 @@ test.describe('Menu', () => {
expect(await comfyPage.menu.getThemeId()).toBe('light')
// Theme id should persist after reload.
await comfyPage.reload()
await comfyPage.setup()
expect(await comfyPage.menu.getThemeId()).toBe('light')
await comfyPage.menu.toggleTheme()
@@ -569,7 +569,7 @@ test.describe('Menu', () => {
})
await comfyPage.setSetting('Comfy.Locale', 'zh')
await comfyPage.reload()
await comfyPage.setup()
const downloadedContentZh = await comfyPage.getExportedWorkflow({
api: false