Skip to content

Commit

Permalink
Revert "test to validate subrouting (#927)" (#936)
Browse files Browse the repository at this point in the history
This reverts commit 6a3dbe0.
  • Loading branch information
huchenlei committed Sep 23, 2024
1 parent 78dea48 commit 6556060
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 38 deletions.
8 changes: 0 additions & 8 deletions browser_tests/ComfyPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)
Expand Down
24 changes: 0 additions & 24 deletions browser_tests/core.spec.ts

This file was deleted.

Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createRouter, createWebHistory } from 'vue-router'
import LayoutDefault from '@/views/layouts/LayoutDefault.vue'

const router = createRouter({
history: createWebHistory(window.location.pathname),
history: createWebHistory(),
routes: [
{
path: '/',
Expand Down
5 changes: 0 additions & 5 deletions vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,6 @@ export default defineConfig({
'/ws': {
target: DEV_SERVER_COMFYUI_URL,
ws: true
},

'/testsubrouteindex': {
target: 'http://localhost:5173',
rewrite: (path) => path.substring('/testsubrouteindex'.length)
}
}
},
Expand Down

0 comments on commit 6556060

Please sign in to comment.