Merge branch 'master' of http://82.157.175.59:3000/GenarrativeAI/Genarrative
Some checks failed
CI / verify (push) Has been cancelled
Some checks failed
CI / verify (push) Has been cancelled
This commit is contained in:
@@ -36,7 +36,7 @@ test('platform creation types are derived from new work entry config', () => {
|
||||
badge: match3dConfig?.badge,
|
||||
imageSrc: match3dConfig?.imageSrc,
|
||||
locked: false,
|
||||
hidden: !match3dConfig?.visible,
|
||||
hidden: false,
|
||||
}),
|
||||
);
|
||||
});
|
||||
@@ -54,11 +54,16 @@ test('new work entry config controls visibility and open order', () => {
|
||||
|
||||
expect(isPlatformCreationTypeVisible('rpg')).toBe(false);
|
||||
expect(isPlatformCreationTypeVisible('big-fish')).toBe(false);
|
||||
expect(isPlatformCreationTypeVisible('match3d')).toBe(false);
|
||||
expect(isPlatformCreationTypeVisible('match3d')).toBe(true);
|
||||
expect(isPlatformCreationTypeVisible('creative-agent')).toBe(false);
|
||||
expect(visibleIds).not.toContain('rpg');
|
||||
expect(visibleIds).not.toContain('big-fish');
|
||||
expect(visibleIds).not.toContain('match3d');
|
||||
expect(visibleIds).not.toContain('creative-agent');
|
||||
expect(visibleIds).toEqual(['puzzle', 'square-hole', 'visual-novel', 'airp']);
|
||||
expect(visibleIds).toEqual([
|
||||
'puzzle',
|
||||
'match3d',
|
||||
'square-hole',
|
||||
'visual-novel',
|
||||
'airp',
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -47,7 +47,7 @@ export const NEW_WORK_ENTRY_CONFIG = {
|
||||
subtitle: '经典消除玩法',
|
||||
badge: '可创建',
|
||||
imageSrc: '/creation-type-references/match3d.webp',
|
||||
visible: false,
|
||||
visible: true,
|
||||
open: true,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user