mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-04 13:12:10 +00:00
test: migrate ImagePreview tests and fix flaky browser specs
- Use @testing-library/vue with user.keyboard; void fireEvent for no-floating-promises - Add data-testid image-preview-root; src/types/vue-component.d.ts for *.vue modules - E2E: doubleClick on canvas empty space; Escape before Workflow actions in enterBuilder
This commit is contained in:
@@ -94,6 +94,8 @@ export class AppModeHelper {
|
||||
|
||||
/** Enter builder mode via the "Workflow actions" dropdown. */
|
||||
async enterBuilder() {
|
||||
await this.page.keyboard.press('Escape')
|
||||
await this.comfyPage.nextFrame()
|
||||
await this.page
|
||||
.getByRole('button', { name: 'Workflow actions' })
|
||||
.first()
|
||||
|
||||
Reference in New Issue
Block a user