5180 fichiers 38.5 Mo 0 téléchargements 277 vues mis à jour il y a 6 heures ui
nitro-v36-with-renderer-v36 / src / components / groups / views / GroupRoomInformationView.test.ts
GroupRoomInformationView.test.ts 1014 o Télécharger le fichier
import { readFileSync } from 'node:fs';
import { join } from 'node:path';
import { describe, expect, it } from 'vitest';

describe('GroupRoomInformationView', () => {
    it('sizes the HUD box from CSS and keeps it right-aligned in the HUD column', () => {
        const source = readFileSync(join(process.cwd(), 'src/components/groups/views/GroupRoomInformationView.tsx'), 'utf8');
        const css = readFileSync(join(process.cwd(), 'src/css/groups/GroupView.css'), 'utf8');

        // The SWF restyle moved sizing out of Tailwind classes and into GroupView.css.
        expect(source).toContain('octane-group-room-info');
        expect(source).not.toMatch(/max-w-\[\d+px\]/);

        // Right-aligned in the same HUD column as the purse (which sits at 230px);
        // the group box is deliberately narrower at 188px.
        expect(css).toMatch(/\.octane-group-room-info\s*\{[^}]*margin-left:\s*auto;/s);
        expect(css).toMatch(/\.octane-group-room-info\s*\{[^}]*max-width:\s*188px;/s);
    });
});
15Sujets
1Dépôts
20Membres
2En ligne
Profile
Inscrit
Dernière visite
Messages
0
Votes positifs
0
Votes négatifs
0

Nous utilisons des cookies pour assurer le bon fonctionnement du site et améliorer votre expérience. en savoir plus

Autoriser