[verified] refactor: unify dashboard rate windows
This commit is contained in:
@@ -5,11 +5,10 @@ import { join } from 'node:path';
|
||||
const appSource = readFileSync(join(import.meta.dir, '../src/App.tsx'), 'utf8');
|
||||
|
||||
describe('mobile overflow guards', () => {
|
||||
test('usage metrics cards allow long metric labels to wrap on mobile', () => {
|
||||
expect(appSource).toContain('className="mt-6 min-w-0"');
|
||||
expect(appSource).toContain('className="grid gap-3 sm:grid-cols-2"');
|
||||
expect(appSource).toContain('className="min-w-0 rounded-2xl border border-white/10 bg-white/4 p-4"');
|
||||
expect(appSource).toContain('className="text-sm text-slate-400 break-words"');
|
||||
test('unified capacity window cards stay in a responsive two-column grid', () => {
|
||||
expect(appSource).toContain('className="grid gap-4 md:grid-cols-2"');
|
||||
expect(appSource).toContain('className="rounded-2xl border border-white/10 bg-white/4 p-4"');
|
||||
expect(appSource).toContain('className="text-sm text-slate-400">{item.title}</div>');
|
||||
});
|
||||
|
||||
test('connected account tabs no longer render a side-by-side payload column', () => {
|
||||
|
||||
Reference in New Issue
Block a user