@@ -94,9 +94,6 @@ test.describe('Feature Flags', () => {
9494 test ( 'Server feature flags are received and accessible' , async ( {
9595 comfyPage
9696 } ) => {
97- // Wait for connection to establish
98- await comfyPage . page . waitForTimeout ( 1000 )
99-
10097 // Get the actual server feature flags from the backend
10198 const serverFlags = await comfyPage . page . evaluate ( ( ) => {
10299 return window [ 'app' ] . api . serverFeatureFlags
@@ -116,9 +113,6 @@ test.describe('Feature Flags', () => {
116113 test ( 'serverSupportsFeature method works with real backend flags' , async ( {
117114 comfyPage
118115 } ) => {
119- // Wait for connection
120- await comfyPage . page . waitForTimeout ( 1000 )
121-
122116 // Test serverSupportsFeature with real backend flags
123117 const supportsPreviewMetadata = await comfyPage . page . evaluate ( ( ) => {
124118 return window [ 'app' ] . api . serverSupportsFeature (
@@ -170,9 +164,6 @@ test.describe('Feature Flags', () => {
170164 test ( 'getServerFeature method works with real backend data' , async ( {
171165 comfyPage
172166 } ) => {
173- // Wait for connection
174- await comfyPage . page . waitForTimeout ( 1000 )
175-
176167 // Test getServerFeature method
177168 const previewMetadataValue = await comfyPage . page . evaluate ( ( ) => {
178169 return window [ 'app' ] . api . getServerFeature ( 'supports_preview_metadata' )
@@ -199,9 +190,6 @@ test.describe('Feature Flags', () => {
199190 test ( 'getServerFeatures returns all backend feature flags' , async ( {
200191 comfyPage
201192 } ) => {
202- // Wait for connection
203- await comfyPage . page . waitForTimeout ( 1000 )
204-
205193 // Test getServerFeatures returns all flags
206194 const allFeatures = await comfyPage . page . evaluate ( ( ) => {
207195 return window [ 'app' ] . api . getServerFeatures ( )
@@ -248,9 +236,6 @@ test.describe('Feature Flags', () => {
248236 test ( 'Server features are immutable when accessed via getServerFeatures' , async ( {
249237 comfyPage
250238 } ) => {
251- // Wait for connection to establish
252- await comfyPage . page . waitForTimeout ( 1000 )
253-
254239 const immutabilityTest = await comfyPage . page . evaluate ( ( ) => {
255240 // Get a copy of server features
256241 const features1 = window [ 'app' ] . api . getServerFeatures ( )
0 commit comments