aboutsummaryrefslogtreecommitdiffstats
path: root/frontend-vanilla/src/main.test.ts
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-16 09:37:04 -0800
committerAdam Mathes <adam@trenchant.org>2026-02-16 10:57:38 -0800
commit96e78c5fdfada73d37644083c7580a1d444ed748 (patch)
tree709a94028f4a743495e38ba914688d3c0b949129 /frontend-vanilla/src/main.test.ts
parentc5fdd406503aaedaac5e117e710d7910112af83f (diff)
downloadneko-96e78c5fdfada73d37644083c7580a1d444ed748.tar.gz
neko-96e78c5fdfada73d37644083c7580a1d444ed748.tar.bz2
neko-96e78c5fdfada73d37644083c7580a1d444ed748.zip
Fix v3ui: neko button fixed position
- Remove duplicate neko logo from v3 sidebar - Keep sidebar toggle button fixed at top-left even when sidebar is open - Add top padding to v3 sidebar to prevent overlap with the fixed toggle button - Update v3 tests to match UI changes
Diffstat (limited to 'frontend-vanilla/src/main.test.ts')
-rw-r--r--frontend-vanilla/src/main.test.ts9
1 files changed, 0 insertions, 9 deletions
diff --git a/frontend-vanilla/src/main.test.ts b/frontend-vanilla/src/main.test.ts
index 3798f1b..c9d0e0c 100644
--- a/frontend-vanilla/src/main.test.ts
+++ b/frontend-vanilla/src/main.test.ts
@@ -65,19 +65,10 @@ describe('main application logic', () => {
it('renderLayout should create sidebar and main content', () => {
renderLayout();
expect(document.getElementById('sidebar')).not.toBeNull();
- expect(document.querySelector('.logo')).not.toBeNull();
expect(document.getElementById('content-area')).not.toBeNull();
expect(document.getElementById('sidebar-toggle-btn')).not.toBeNull();
});
- it('should navigate to home when clicking logo', () => {
- renderLayout();
- const logo = document.querySelector('.logo') as HTMLElement;
- const navigateSpy = vi.spyOn(router, 'navigate');
- logo.click();
- expect(navigateSpy).toHaveBeenCalledWith('/', expect.any(Object));
- });
-
it('renderFeeds should populate feed list', () => {
renderLayout();
store.setFeeds([{ _id: 1, title: 'Test Feed', url: 'test', web_url: 'test', category: 'tag' }]);