mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
Fix clipboard (#100)
* Fix clipboard * Add clipboard tests * Update test expectations [skip ci] --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -149,6 +149,17 @@ export class ComfyPage {
|
||||
await this.nextFrame();
|
||||
}
|
||||
|
||||
async clickEmptyLatentNode() {
|
||||
await this.canvas.click({
|
||||
position: {
|
||||
x: 724,
|
||||
y: 625
|
||||
},
|
||||
});
|
||||
this.page.mouse.move(10, 10);
|
||||
await this.nextFrame();
|
||||
}
|
||||
|
||||
async rightClickEmptyLatentNode() {
|
||||
await this.canvas.click({
|
||||
position: {
|
||||
@@ -169,6 +180,20 @@ export class ComfyPage {
|
||||
await this.page.keyboard.up('Control');
|
||||
await this.nextFrame();
|
||||
}
|
||||
|
||||
async ctrlC() {
|
||||
await this.page.keyboard.down('Control');
|
||||
await this.page.keyboard.press('KeyC');
|
||||
await this.page.keyboard.up('Control');
|
||||
await this.nextFrame();
|
||||
}
|
||||
|
||||
async ctrlV() {
|
||||
await this.page.keyboard.down('Control');
|
||||
await this.page.keyboard.press('KeyV');
|
||||
await this.page.keyboard.up('Control');
|
||||
await this.nextFrame();
|
||||
}
|
||||
}
|
||||
|
||||
export const comfyPageFixture = base.extend<{ comfyPage: ComfyPage }>({
|
||||
|
||||
Reference in New Issue
Block a user