mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-27 01:39:47 +00:00
test: configure Playwright tests to always run as nightly builds
- Set IS_NIGHTLY=true for all Playwright test runs - Update CI workflows to pass IS_NIGHTLY=true to test commands - Update package.json test:browser scripts to include IS_NIGHTLY=true - Update dialog test to expect 'oss-nightly' instead of 'oss' - Also update playwright expectations workflow to use IS_NIGHTLY=true This ensures consistent test behavior regardless of where tests run, since Playwright tests now always run with IS_NIGHTLY=true.
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
import {
|
||||
comfyExpect as expect,
|
||||
comfyPageFixture as test
|
||||
} from '../../../../fixtures/ComfyPage'
|
||||
import type { ComfyPage } from '../../../../fixtures/ComfyPage'
|
||||
import { comfyExpect as expect, comfyPageFixture as test } from '../../../../fixtures/ComfyPage';
|
||||
import type { ComfyPage } from '../../../../fixtures/ComfyPage';
|
||||
import type { Position } from '../../../../fixtures/types'
|
||||
|
||||
test.describe('Vue Node Moving', () => {
|
||||
@@ -60,20 +57,8 @@ test.describe('Vue Node Moving', () => {
|
||||
const newHeaderPos = await getLoadCheckpointHeaderPos(comfyPage)
|
||||
await expectPosChanged(loadCheckpointHeaderPos, newHeaderPos)
|
||||
|
||||
// Get viewport size and clip top 15%
|
||||
const viewportSize = comfyPage.page.viewportSize()
|
||||
const clipRegion = viewportSize
|
||||
? {
|
||||
x: 0,
|
||||
y: Math.floor(viewportSize.height * 0.15),
|
||||
width: viewportSize.width,
|
||||
height: Math.ceil(viewportSize.height * 0.85)
|
||||
}
|
||||
: undefined
|
||||
|
||||
await expect(comfyPage.canvas).toHaveScreenshot(
|
||||
'vue-node-moved-node-touch.png',
|
||||
{ clip: clipRegion }
|
||||
'vue-node-moved-node-touch.png'
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user