@@ -9,29 +9,28 @@ const BYPASS_CLASS = /before:bg-bypass\/60/
99test . describe ( 'Vue Node Bypass' , ( ) => {
1010 test . beforeEach ( async ( { comfyPage } ) => {
1111 await comfyPage . setSetting ( 'Comfy.VueNodes.Enabled' , true )
12+ await comfyPage . setSetting ( 'Comfy.UseNewMenu' , 'Top' )
13+ await comfyPage . setSetting ( 'Comfy.Minimap.Visible' , false )
14+ await comfyPage . setSetting ( 'Comfy.Graph.CanvasMenu' , true )
1215 await comfyPage . vueNodes . waitForNodes ( )
1316 } )
1417
15- test . fixme (
16- 'should allow toggling bypass on a selected node with hotkey' ,
17- async ( { comfyPage } ) => {
18- await comfyPage . setup ( )
19- await comfyPage . page . getByText ( 'Load Checkpoint' ) . click ( )
20- await comfyPage . page . keyboard . press ( BYPASS_HOTKEY )
21-
22- const checkpointNode =
23- comfyPage . vueNodes . getNodeByTitle ( 'Load Checkpoint' )
24- await expect ( checkpointNode ) . toHaveClass ( BYPASS_CLASS )
25- await comfyPage . page . mouse . click ( 400 , 300 )
26- await comfyPage . page . waitForTimeout ( 128 )
27- await expect ( comfyPage . canvas ) . toHaveScreenshot (
28- 'vue-node-bypassed-state.png'
29- )
30-
31- await comfyPage . page . keyboard . press ( BYPASS_HOTKEY )
32- await expect ( checkpointNode ) . not . toHaveClass ( BYPASS_CLASS )
33- }
34- )
18+ test ( 'should allow toggling bypass on a selected node with hotkey' , async ( {
19+ comfyPage
20+ } ) => {
21+ await comfyPage . page . getByText ( 'Load Checkpoint' ) . click ( )
22+ await comfyPage . page . keyboard . press ( BYPASS_HOTKEY )
23+
24+ const checkpointNode = comfyPage . vueNodes . getNodeByTitle ( 'Load Checkpoint' )
25+ await expect ( checkpointNode ) . toHaveClass ( BYPASS_CLASS )
26+ await comfyPage . nextFrame ( )
27+ await expect ( comfyPage . canvas ) . toHaveScreenshot (
28+ 'vue-node-bypassed-state.png'
29+ )
30+
31+ await comfyPage . page . keyboard . press ( BYPASS_HOTKEY )
32+ await expect ( checkpointNode ) . not . toHaveClass ( BYPASS_CLASS )
33+ } )
3534
3635 test ( 'should allow toggling bypass on multiple selected nodes with hotkey' , async ( {
3736 comfyPage
0 commit comments