fix(apps): repair netbird install and app icons

This commit is contained in:
archipelago
2026-05-19 17:20:32 -04:00
parent cede77f3bc
commit f0bd49d03d
11 changed files with 75 additions and 14 deletions

View File

@@ -35,6 +35,11 @@ describe('AppIconGrid', () => {
setActivePinia(createPinia())
vi.clearAllMocks()
localStorage.clear()
Object.defineProperty(window, 'innerWidth', {
value: 1024,
writable: true,
configurable: true,
})
Object.defineProperty(window, 'location', {
value: { hostname: '192.168.1.198' },
writable: true,
@@ -55,4 +60,23 @@ describe('AppIconGrid', () => {
expect(mockWindowOpen).not.toHaveBeenCalled()
expect(useAppLauncherStore().panelAppId).toBe('lnd')
})
it('opens desktop new-tab apps through app session on mobile', async () => {
Object.defineProperty(window, 'innerWidth', {
value: 390,
writable: true,
configurable: true,
})
const wrapper = mount(AppIconGrid, {
props: { apps: [['gitea', makePkg('gitea')]] },
global: {
plugins: [createPinia()],
},
})
await wrapper.get('.app-icon-item').trigger('click')
expect(mockWindowOpen).not.toHaveBeenCalled()
})
})