diff --git a/browser_tests/tests/mobileBaseline.spec.ts b/browser_tests/tests/mobileBaseline.spec.ts new file mode 100644 index 000000000..21be3ca94 --- /dev/null +++ b/browser_tests/tests/mobileBaseline.spec.ts @@ -0,0 +1,29 @@ +import { comfyPageFixture as test } from '../fixtures/ComfyPage' +import { expect } from '@playwright/test' + +test.describe('Mobile Baseline Snapshots', () => { + test('@mobile empty canvas', async ({ comfyPage }) => { + await comfyPage.setSetting('Comfy.ConfirmClear', false) + await comfyPage.executeCommand('Comfy.ClearWorkflow') + await expect(async () => { + expect(await comfyPage.getGraphNodesCount()).toBe(0) + }).toPass({ timeout: 256 }) + await comfyPage.nextFrame() + await expect(comfyPage.canvas).toHaveScreenshot('mobile-empty-canvas.png') + }) + + test('@mobile default workflow', async ({ comfyPage }) => { + await comfyPage.loadWorkflow('default') + await expect(comfyPage.canvas).toHaveScreenshot( + 'mobile-default-workflow.png' + ) + }) + + test('@mobile settings dialog', async ({ comfyPage }) => { + await comfyPage.settingDialog.open() + await comfyPage.nextFrame() + await expect(comfyPage.settingDialog.root).toHaveScreenshot( + 'mobile-settings-dialog.png' + ) + }) +}) diff --git a/browser_tests/tests/mobileBaseline.spec.ts-snapshots/mobile-default-workflow-mobile-chrome-linux.png b/browser_tests/tests/mobileBaseline.spec.ts-snapshots/mobile-default-workflow-mobile-chrome-linux.png new file mode 100644 index 000000000..afbc492aa Binary files /dev/null and b/browser_tests/tests/mobileBaseline.spec.ts-snapshots/mobile-default-workflow-mobile-chrome-linux.png differ diff --git a/browser_tests/tests/mobileBaseline.spec.ts-snapshots/mobile-empty-canvas-mobile-chrome-linux.png b/browser_tests/tests/mobileBaseline.spec.ts-snapshots/mobile-empty-canvas-mobile-chrome-linux.png new file mode 100644 index 000000000..e02471466 Binary files /dev/null and b/browser_tests/tests/mobileBaseline.spec.ts-snapshots/mobile-empty-canvas-mobile-chrome-linux.png differ diff --git a/browser_tests/tests/mobileBaseline.spec.ts-snapshots/mobile-settings-dialog-mobile-chrome-linux.png b/browser_tests/tests/mobileBaseline.spec.ts-snapshots/mobile-settings-dialog-mobile-chrome-linux.png new file mode 100644 index 000000000..23c6a0c8d Binary files /dev/null and b/browser_tests/tests/mobileBaseline.spec.ts-snapshots/mobile-settings-dialog-mobile-chrome-linux.png differ