diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 7b847c1b..b831c9ff 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -39,16 +39,6 @@ watch( { immediate: true } ) -watch( - () => appStore.siteName, - (newName) => { - if (newName) { - document.title = `${newName} - AI API Gateway` - } - }, - { immediate: true } -) - // Watch for authentication state and manage subscription data watch( () => authStore.isAuthenticated, diff --git a/frontend/src/__tests__/integration/data-import.spec.ts b/frontend/src/__tests__/integration/data-import.spec.ts index 1fe870ab..bc9de148 100644 --- a/frontend/src/__tests__/integration/data-import.spec.ts +++ b/frontend/src/__tests__/integration/data-import.spec.ts @@ -58,12 +58,16 @@ describe('ImportDataModal', () => { const input = wrapper.find('input[type="file"]') const file = new File(['invalid json'], 'data.json', { type: 'application/json' }) + Object.defineProperty(file, 'text', { + value: () => Promise.resolve('invalid json') + }) Object.defineProperty(input.element, 'files', { value: [file] }) await input.trigger('change') await wrapper.find('form').trigger('submit') + await Promise.resolve() expect(showError).toHaveBeenCalledWith('admin.accounts.dataImportParseFailed') }) diff --git a/frontend/src/__tests__/integration/proxy-data-import.spec.ts b/frontend/src/__tests__/integration/proxy-data-import.spec.ts index f0433898..21bf3a63 100644 --- a/frontend/src/__tests__/integration/proxy-data-import.spec.ts +++ b/frontend/src/__tests__/integration/proxy-data-import.spec.ts @@ -58,12 +58,16 @@ describe('Proxy ImportDataModal', () => { const input = wrapper.find('input[type="file"]') const file = new File(['invalid json'], 'data.json', { type: 'application/json' }) + Object.defineProperty(file, 'text', { + value: () => Promise.resolve('invalid json') + }) Object.defineProperty(input.element, 'files', { value: [file] }) await input.trigger('change') await wrapper.find('form').trigger('submit') + await Promise.resolve() expect(showError).toHaveBeenCalledWith('admin.proxies.dataImportParseFailed') }) diff --git a/frontend/src/components/account/BulkEditAccountModal.vue b/frontend/src/components/account/BulkEditAccountModal.vue index 838df569..18d2e968 100644 --- a/frontend/src/components/account/BulkEditAccountModal.vue +++ b/frontend/src/components/account/BulkEditAccountModal.vue @@ -209,7 +209,7 @@