Skip to content

Commit 44e05e3

Browse files
committed
test: Minimal properties panel Playwright test
1 parent 0491051 commit 44e05e3

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

browser_tests/helpers/actionbar.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ import type { AutoQueueMode } from '../../src/stores/queueStore'
55
export 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() {
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
})

0 commit comments

Comments
 (0)