File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,12 @@ import type { AutoQueueMode } from '../../src/stores/queueStore'
55export class ComfyActionbar {
66 public readonly root : Locator
77 public readonly queueButton : ComfyQueueButton
8+ public readonly propertiesButton : Locator
89
910 constructor ( public readonly page : Page ) {
1011 this . root = page . locator ( '.actionbar' )
1112 this . queueButton = new ComfyQueueButton ( this )
13+ this . propertiesButton = page . getByLabel ( 'Toggle properties panel' )
1214 }
1315
1416 async isDocked ( ) {
Original file line number Diff line number Diff line change 1+ import { expect } from '@playwright/test'
2+
3+ import { comfyPageFixture as test } from '../../fixtures/ComfyPage'
4+
5+ test . describe ( 'Properties panel' , ( ) => {
6+ test ( 'complex test' , async ( { page, comfyPage } ) => {
7+ await comfyPage . actionbar . propertiesButton . click ( )
8+
9+ await expect ( page . getByText ( 'No node(s) selected' ) ) . toBeVisible ( )
10+
11+ await comfyPage . selectNodes ( [ 'KSampler' , 'CLIP Text Encode (Prompt)' ] )
12+
13+ await expect ( page . getByText ( '2 nodes selected' ) ) . toBeVisible ( )
14+
15+ await expect ( page . getByText ( 'KSampler' ) ) . toHaveCount ( 2 )
16+ } )
17+ } )
You can’t perform that action at this time.
0 commit comments