mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-28 02:02:08 +00:00
This reverts commit 6a3dbe08de.
This commit is contained in:
@@ -247,10 +247,6 @@ export class ComfyPage {
|
||||
|
||||
async setup() {
|
||||
await this.goto()
|
||||
await this.prepPage()
|
||||
}
|
||||
|
||||
async prepPage() {
|
||||
await this.page.evaluate(() => {
|
||||
localStorage.clear()
|
||||
sessionStorage.clear()
|
||||
@@ -316,10 +312,6 @@ export class ComfyPage {
|
||||
await this.page.goto(this.url)
|
||||
}
|
||||
|
||||
async gotoPath(url: string) {
|
||||
await this.page.goto(this.url + url)
|
||||
}
|
||||
|
||||
async nextFrame() {
|
||||
await this.page.evaluate(() => {
|
||||
return new Promise<number>(requestAnimationFrame)
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
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'
|
||||
)
|
||||
})
|
||||
})
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 100 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 96 KiB |
Reference in New Issue
Block a user