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:
Alex "mcmonkey" Goodwin
2024-09-23 09:24:49 +09:00
committed by GitHub
parent 9aa976fdf0
commit 6a3dbe08de
6 changed files with 38 additions and 1 deletions

View File

@@ -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)