mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-11 16:10:05 +00:00
- Rename dragAndDrop to dragDrop (7 occurrences) - Add override modifiers in SidebarTab.ts (4 fixes) - Remove .ts import extensions in actionbar.spec.ts - Prefix unused variables with underscore (9 files) - Fix ESLint import() type annotation in globals.d.ts Reduces typecheck:browser errors from 229 to 215 Amp-Thread-ID: https://ampcode.com/threads/T-019c1787-c781-761d-b95a-4844e909e64c Co-authored-by: Amp <amp@ampcode.com>
19 lines
530 B
TypeScript
19 lines
530 B
TypeScript
import type { Locator } from '@playwright/test'
|
|
|
|
import type { KeyboardHelper } from './KeyboardHelper'
|
|
|
|
export class ClipboardHelper {
|
|
constructor(
|
|
private readonly keyboard: KeyboardHelper,
|
|
private readonly _canvas: Locator
|
|
) {}
|
|
|
|
async copy(locator?: Locator | null): Promise<void> {
|
|
await this.keyboard.ctrlSend('KeyC', locator === undefined ? null : locator)
|
|
}
|
|
|
|
async paste(locator?: Locator | null): Promise<void> {
|
|
await this.keyboard.ctrlSend('KeyV', locator === undefined ? null : locator)
|
|
}
|
|
}
|