Skip to content

Commit 32cecf4

Browse files
committed
test(web/ui): add selector presence test for mobile navbar fix
1 parent fb195d3 commit 32cecf4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import assert from 'node:assert/strict';
2+
import { readFile } from 'node:fs/promises';
3+
import { join } from 'node:path';
4+
import { describe, it } from 'node:test';
5+
6+
describe('web/ui/index.css', () => {
7+
it('contains selector to hide empty hashed navItems container', async () => {
8+
const cssPath = join(import.meta.dirname, '..', 'index.css');
9+
const css = await readFile(cssPath, 'utf-8');
10+
assert.ok(css.includes('div[class$="_navItems"]:empty'));
11+
});
12+
});

0 commit comments

Comments
 (0)