From 0910d485fd0b5f4f3b10adf0d995d1178d969dbb Mon Sep 17 00:00:00 2001 From: bymyself Date: Thu, 27 Feb 2025 11:13:38 -0700 Subject: [PATCH] [Test] Fix flaky optional combo test (#2755) --- browser_tests/widget.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/browser_tests/widget.spec.ts b/browser_tests/widget.spec.ts index 1492510a75..cd87516afa 100644 --- a/browser_tests/widget.spec.ts +++ b/browser_tests/widget.spec.ts @@ -47,6 +47,9 @@ test.describe('Combo text widget', () => { // Press R to trigger refresh await comfyPage.page.keyboard.press('r') + // Wait for nodes' widgets to be updated + await comfyPage.nextFrame() + const refreshedComboValues = await getComboValues() expect(refreshedComboValues).not.toEqual(initialComboValues) })