Setup clean setting state before every playwright test (#1309)

* Use reload

* setting setup

* nit

* Remove setting cleanups

* Wait for frame

* nit

* nit
This commit is contained in:
Chenlei Hu
2024-10-25 11:25:17 -04:00
committed by GitHub
parent 12d421b42c
commit 4f9dc830b6
12 changed files with 30 additions and 93 deletions

View File

@@ -96,11 +96,6 @@ test.describe('Node Right Click Menu', () => {
test.describe('Widget conversion', () => {
const convertibleWidgetTypes = ['text', 'string', 'number', 'toggle']
test.afterEach(async ({ comfyPage }) => {
// Restore default setting value
await comfyPage.setSetting('Comfy.NodeInputConversionSubmenus', true)
})
test('Can convert widget to input', async ({ comfyPage }) => {
await comfyPage.rightClickEmptyLatentNode()
await expect(comfyPage.canvas).toHaveScreenshot('right-click-node.png')