Skip to content

Commit 088ddb8

Browse files
committed
Add smoke tests for Creator Studio, Analysis History, and System Status pages; update Header and Footer for new navigation links and localization
1 parent fba79b3 commit 088ddb8

6 files changed

Lines changed: 67 additions & 6 deletions

File tree

docs/notes/ROLLING_TASK_PLAN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,8 +648,8 @@ Kaynak rapor:
648648

649649
### Faz O Cikisli Claude Gorevleri
650650

651-
- [ ] P1: `platform/__tests__/pages/smoke.test.tsx` icine `/creator-studio`, `/analysis-history`, `/system-status` smoke testleri eklenecek.
652-
- [ ] P1: `platform/components/Layout/Header.tsx` ve `platform/components/Layout/Footer.tsx` icinde yeni sayfalar icin entry path eklenecek (locale parity ile).
651+
- [x] P1: `platform/__tests__/pages/smoke.test.tsx` icine `/creator-studio`, `/analysis-history`, `/system-status` smoke testleri eklendi (6 yeni test).
652+
- [x] P1: `Header.tsx` icine `/system-status` ("Status") nav linki eklendi. `Footer.tsx` products section'ina Creator Studio + System Status eklendi. Locale keyleri (`nav.status`, `footer.sections.products.creatorStudio/systemStatus`) EN+TR parity ile eklendi.
653653
- [ ] P2: a11y testlerinde gorulen `act(...)` warning gürültusu azaltilacak (test setup deterministiklestirme).
654654
- [ ] P2: Yeni route'lar icin minimal KPI checklist dokumani eklenecek (entry source, first action, revisit marker).
655655

platform/__tests__/pages/smoke.test.tsx

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,56 @@ describe('Page Smoke Tests', () => {
117117
expect(searchInput).toBeInTheDocument()
118118
})
119119
})
120+
121+
describe('Creator Studio Page (/creator-studio)', () => {
122+
it('renders without crashing', async () => {
123+
const CreatorStudioPage = (await import('@/pages/creator-studio/index')).default
124+
const { container } = renderWithProviders(<CreatorStudioPage />)
125+
expect(container).toBeTruthy()
126+
})
127+
128+
it('renders the Creator Studio title', async () => {
129+
const CreatorStudioPage = (await import('@/pages/creator-studio/index')).default
130+
renderWithProviders(<CreatorStudioPage />)
131+
expect(screen.getByText('Creator Studio')).toBeInTheDocument()
132+
})
133+
})
134+
135+
describe('Analysis History Page (/analysis-history)', () => {
136+
it('renders without crashing', async () => {
137+
const AnalysisHistoryPage = (await import('@/pages/analysis-history/index')).default
138+
const { container } = renderWithProviders(<AnalysisHistoryPage />)
139+
expect(container).toBeTruthy()
140+
})
141+
142+
it('renders the Analysis History title', async () => {
143+
const AnalysisHistoryPage = (await import('@/pages/analysis-history/index')).default
144+
renderWithProviders(<AnalysisHistoryPage />)
145+
expect(screen.getByText('Analysis History')).toBeInTheDocument()
146+
})
147+
})
148+
149+
describe('System Status Page (/system-status)', () => {
150+
beforeEach(() => {
151+
global.fetch = jest.fn(() =>
152+
Promise.resolve({ ok: true } as Response)
153+
)
154+
})
155+
156+
afterEach(() => {
157+
jest.restoreAllMocks()
158+
})
159+
160+
it('renders without crashing', async () => {
161+
const SystemStatusPage = (await import('@/pages/system-status/index')).default
162+
const { container } = renderWithProviders(<SystemStatusPage />)
163+
expect(container).toBeTruthy()
164+
})
165+
166+
it('renders the System Status title', async () => {
167+
const SystemStatusPage = (await import('@/pages/system-status/index')).default
168+
renderWithProviders(<SystemStatusPage />)
169+
expect(screen.getByText('System Status')).toBeInTheDocument()
170+
})
171+
})
120172
})

platform/components/Layout/Footer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ export const Footer: React.FC = () => {
2828
{ label: t.footer.sections.products.aiMusic, href: '/ai-music-detection' },
2929
{ label: t.footer.sections.products.dataProcessing, href: '/data-manipulation' },
3030
{ label: t.footer.sections.products.fortune, href: '/crown-fortune' },
31+
{ label: t.footer.sections.products.creatorStudio, href: '/creator-studio' },
32+
{ label: t.footer.sections.products.systemStatus, href: '/system-status' },
3133
],
3234
},
3335
{

platform/components/Layout/Header.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export const Header: React.FC = () => {
5252
{ label: t.nav.fortune, href: '/crown-fortune' },
5353
{ label: t.nav.commend, href: '/crown-commend' },
5454
{ label: t.nav.vote, href: '/crown-vote' },
55+
{ label: t.nav.status, href: '/system-status' },
5556
{ label: t.nav.github, href: 'https://github.com/Rtur2003?tab=repositories', external: true },
5657
]
5758

platform/locales/en.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
"fortune": "Fortune",
4242
"dreams": "Dreams",
4343
"commend": "AI Comment",
44-
"vote": "Crown Vote"
44+
"vote": "Crown Vote",
45+
"status": "Status"
4546
},
4647
"hero": {
4748
"title": {
@@ -210,7 +211,9 @@
210211
"mlToolkit": "ML Toolkit",
211212
"allProjects": "All Projects",
212213
"fortune": "Crown Fortune",
213-
"vote": "Crown Vote"
214+
"vote": "Crown Vote",
215+
"creatorStudio": "Creator Studio",
216+
"systemStatus": "System Status"
214217
},
215218
"developer": {
216219
"title": "Developer",

platform/locales/tr.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
"fortune": "Şans Çarkı",
4242
"dreams": "Rüya Günlüğü",
4343
"commend": "AI Yorum",
44-
"vote": "Crown Vote"
44+
"vote": "Crown Vote",
45+
"status": "Durum"
4546
},
4647
"hero": {
4748
"title": {
@@ -210,7 +211,9 @@
210211
"mlToolkit": "ML Araç Seti",
211212
"allProjects": "Tüm Projeler",
212213
"fortune": "Şans Çarkı",
213-
"vote": "Crown Vote"
214+
"vote": "Crown Vote",
215+
"creatorStudio": "Creator Studio",
216+
"systemStatus": "Sistem Durumu"
214217
},
215218
"developer": {
216219
"title": "Geliştirici",

0 commit comments

Comments
 (0)