diff --git a/browser_tests/ComfyPage.ts b/browser_tests/ComfyPage.ts index d4fafddbb..89d83a110 100644 --- a/browser_tests/ComfyPage.ts +++ b/browser_tests/ComfyPage.ts @@ -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(requestAnimationFrame) diff --git a/browser_tests/core.spec.ts b/browser_tests/core.spec.ts deleted file mode 100644 index 29c48b553..000000000 --- a/browser_tests/core.spec.ts +++ /dev/null @@ -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' - ) - }) -}) diff --git a/browser_tests/core.spec.ts-snapshots/basic-frontend-page-content-chromium-2x-linux.png b/browser_tests/core.spec.ts-snapshots/basic-frontend-page-content-chromium-2x-linux.png deleted file mode 100644 index 242929e52..000000000 Binary files a/browser_tests/core.spec.ts-snapshots/basic-frontend-page-content-chromium-2x-linux.png and /dev/null differ diff --git a/browser_tests/core.spec.ts-snapshots/basic-frontend-page-content-chromium-linux.png b/browser_tests/core.spec.ts-snapshots/basic-frontend-page-content-chromium-linux.png deleted file mode 100644 index f6d7b3540..000000000 Binary files a/browser_tests/core.spec.ts-snapshots/basic-frontend-page-content-chromium-linux.png and /dev/null differ diff --git a/src/router.ts b/src/router.ts index 56a61cf9f..b20e825e4 100644 --- a/src/router.ts +++ b/src/router.ts @@ -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: '/', diff --git a/vite.config.mts b/vite.config.mts index d6fc42e63..749b12d64 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -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) } } },