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:
Chenlei Hu
2024-07-06 21:56:48 -04:00
committed by GitHub
parent 525adb754f
commit 7dae2eb6ba
9 changed files with 89 additions and 6 deletions

View File

@@ -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 }>({