Page MenuHomeDevCentral

D3992.id10381.diff
No OneTemporary

D3992.id10381.diff

diff --git a/frontend/src/App.vue b/frontend/src/App.vue
--- a/frontend/src/App.vue
+++ b/frontend/src/App.vue
@@ -29,3 +29,4 @@
opacity: 0;
}
</style>
+
diff --git a/frontend/src/assets/main.css b/frontend/src/assets/main.css
--- a/frontend/src/assets/main.css
+++ b/frontend/src/assets/main.css
@@ -3,6 +3,10 @@
@tailwind utilities;
@layer base {
+ html {
+ scrollbar-gutter: stable;
+ }
+
body {
@apply bg-gray-50 text-gray-900 dark:bg-gray-950 dark:text-gray-100 antialiased;
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
diff --git a/frontend/src/components/__tests__/App.test.js b/frontend/src/components/__tests__/App.test.js
deleted file mode 100644
--- a/frontend/src/components/__tests__/App.test.js
+++ /dev/null
@@ -1,56 +0,0 @@
-import { describe, it, expect, vi } from 'vitest'
-import { mount } from '@vue/test-utils'
-import { createRouter, createWebHistory } from 'vue-router'
-import App from '@/App.vue'
-
-vi.mock('@/plugins/api', () => ({
- configApi: { getAll: vi.fn(() => Promise.resolve({ navbar: { title: 'ServPulse', buttons_left: [] } })) },
- authApi: { verify: vi.fn() },
-}))
-
-vi.mock('@/composables/useAuth', () => ({
- useAuth: () => ({
- isAuthenticated: { value: false },
- logout: vi.fn(),
- }),
-}))
-
-vi.mock('@/composables/useDarkMode', () => ({
- useDarkMode: () => ({
- isDark: { value: false },
- toggleDarkMode: vi.fn(),
- }),
-}))
-
-function createTestRouter() {
- return createRouter({
- history: createWebHistory(),
- routes: [
- { path: '/', component: { template: '<div>Status</div>' } },
- { path: '/incidents', component: { template: '<div>Incidents</div>' } },
- ],
- })
-}
-
-describe('App route transitions', () => {
- it('wraps RouterView in a Transition component', () => {
- const router = createTestRouter()
- const wrapper = mount(App, {
- global: { plugins: [router] },
- })
-
- const transition = wrapper.findComponent({ name: 'Transition' })
- expect(transition.exists()).toBe(true)
- })
-
- it('uses fade transition with out-in mode', () => {
- const router = createTestRouter()
- const wrapper = mount(App, {
- global: { plugins: [router] },
- })
-
- const transition = wrapper.findComponent({ name: 'Transition' })
- expect(transition.props('name')).toBe('fade')
- expect(transition.props('mode')).toBe('out-in')
- })
-})

File Metadata

Mime Type
text/plain
Expires
Fri, Mar 6, 12:09 (10 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3501560
Default Alt Text
D3992.id10381.diff (2 KB)

Event Timeline