mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
test to validate subrouting (#927)
* 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>
This commit is contained in:
committed by
GitHub
parent
9aa976fdf0
commit
6a3dbe08de
@@ -247,6 +247,10 @@ export class ComfyPage {
|
||||
|
||||
async setup() {
|
||||
await this.goto()
|
||||
await this.prepPage()
|
||||
}
|
||||
|
||||
async prepPage() {
|
||||
await this.page.evaluate(() => {
|
||||
localStorage.clear()
|
||||
sessionStorage.clear()
|
||||
@@ -312,6 +316,10 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user