mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-13 09:16:20 +00:00
Adds tests for - Mobile app mode. - Drag and drop operations in app mode - Basic widget interaction in app mode. - The read only state when in builder mode. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-10633-App-Mode-tests-3306d73d36508154aa25d8096119a32c) by [Unito](https://www.unito.io)
13 lines
327 B
TypeScript
13 lines
327 B
TypeScript
import type { Locator } from '@playwright/test'
|
|
|
|
export class WidgetSelectDropdownFixture {
|
|
public readonly selection: Locator
|
|
|
|
constructor(public readonly root: Locator) {
|
|
this.selection = root.locator('button span span')
|
|
}
|
|
async selectedItem(): Promise<string> {
|
|
return await this.selection.innerText()
|
|
}
|
|
}
|