mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-10 10:00:08 +00:00
* test to validate subrouting * Update test expectations [skip ci] * core tests need to prep the page * Update test expectations [skip ci] --------- Co-authored-by: github-actions <github-actions@github.com>
25 lines
736 B
TypeScript
25 lines
736 B
TypeScript
import { expect } from '@playwright/test'
|
|
import { comfyPageFixture as test } from './ComfyPage'
|
|
|
|
test.describe('basic frontend page', () => {
|
|
test('Basic front page loads and renders at all', async ({ comfyPage }) => {
|
|
await comfyPage.gotoPath('/')
|
|
await comfyPage.prepPage()
|
|
await expect(comfyPage.canvas).toHaveScreenshot(
|
|
'basic-frontend-page-content.png'
|
|
)
|
|
})
|
|
})
|
|
|
|
test.describe('subrouting validation', () => {
|
|
test('subrouted installs of the comfy frontend load as intended', async ({
|
|
comfyPage
|
|
}) => {
|
|
await comfyPage.gotoPath('/testsubrouteindex')
|
|
await comfyPage.prepPage()
|
|
await expect(comfyPage.canvas).toHaveScreenshot(
|
|
'subrouted-frontend-page-content.png'
|
|
)
|
|
})
|
|
})
|