생성 때 고른 행성 형태·색 표시 · HOME 주간 정보

This commit is contained in:
Sn-Kinos
2026-10-05 23:21:44 +09:00
parent 55424bd4a2
commit c8c1a1ae67
40 changed files with 688 additions and 40 deletions
+19
View File
@@ -17,6 +17,25 @@ void main() {
expect(PlanetVisualState.fromDocument({'stage': 2}).evolutionImminent, isFalse);
});
test('생성 때 고른 형태가 HOME · GALAXY · 상세 · MY 그림을 정한다 (A-08 · Figma 344:214421)', () {
for (var i = 1; i <= 5; i++) {
expect(planetShapeImage('shape$i'), 'assets/figma/planet-shape-$i.png');
}
expect(planetShapeImage('shape6'), 'assets/figma/planet-shape-placeholder.png');
expect(planetShapeImage(null), isNull, reason: '성운 · 옛 행성은 화면이 준 그림');
expect(planetShapeImage('shape7'), isNull);
// 생성 화면이 보내는 키와 같은 표여야 한다.
for (final k in PlanetCreateScreen.shapes) {
expect(planetShapeImage(k), isNotNull);
}
final state = PlanetVisualState.fromDocument({'planetType': 'shape3', 'colorKey': 'gold'});
expect(state.planetType, 'shape3');
final node = const PlanetNode(
id: 'f', name: 'F', rank: 1, fpi: 0, members: 0, online: 0, planetType: 'shape2',
);
expect(GalaxyField.imageOf(node, 0), 'assets/figma/planet-shape-2.png');
});
test('컬러는 마스터(config/planetColors)가 정한다 — 추가 색은 그리고 숨긴 색은 고르지 못한다 (10/3 #6)', () {
final master = planetColorsFrom({'colors': [
{'key': 'gold', 'hex': '#FFC500', 'visible': false},