5180 fichiers 38.5 Mo 0 téléchargements 194 vues mis à jour il y a 5 heures ui
nitro-v36-with-renderer-v36 / src / css / groups / GroupAirText.test.ts
GroupAirText.test.ts 1.8 Ko Télécharger le fichier
import { readFileSync } from 'node:fs';
import { join } from 'node:path';
import { describe, expect, it } from 'vitest';

const read = (name: string) => readFileSync(join(process.cwd(), 'src/css/groups', name), 'utf8');

describe('group windows text (groups_info_window, Member Entry)', () => {
    it('use the regular Ubuntu cut, never the condensed `Ubuntu` face', () => {
        for (const name of ['GroupView.css', 'GroupManagement.css', 'GroupForum.css']) {
            expect(read(name)).not.toMatch(/font-family: Ubuntu,/);
        }
    });

    it('draw the members drop menu at 12 px and the page info in black', () => {
        const css = read('GroupView.css');

        expect(css).toMatch(/\.octane-group-members-search \.octane-select-trigger \{[^}]*font-size: 12px !important/);
        expect(css).toMatch(/\.octane-group-members \.octane-groups-footer \.text \{[^}]*color: #000000 !important/);
    });

    it('draws join / leave / manage as the grey button_thick in 12 px bold black', () => {
        const css = read('GroupView.css');

        expect(css).toMatch(
            /\.octane-extended-profile-group-info__button\.habbo-btn-primary \{[^}]*border-image-source: var\(--habbo-skin-shiny-thick\) !important;[^}]*color: #000000 !important;\s*font-size: 12px !important;\s*font-weight: 700 !important/
        );
        expect(css).not.toMatch(/\.octane-groups-button,[^{]*\{[^}]*color: #111111/);
    });

    it('draws the members window buttons as the grey shiny button, 12 px regular black', () => {
        expect(read('GroupView.css')).toMatch(
            /\.octane-groups-window \.octane-groups-button:not\(\.octane-group-room-info__button\) \{[^}]*var\(--habbo-skin-shiny\) !important;[^}]*color: #000000 !important;\s*font-size: 12px !important;\s*font-weight: 400 !important/
        );
    });
});
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