update sync data from site dashboard and testing closing cycles

This commit is contained in:
Alberto-Audrix committed 2026-09-15 16:52:41 +07:00
1 parent 36639d8c38
commit f49e72592c
42 files changed
+1966 -688

No files matched your search

@@ -229,7 +229,7 @@ describe('FeedSackCountingPage', () => {
screen.getByText('Monitoring karung masuk dan karung dituang per hari')
).toBeInTheDocument();
expect(screen.getByText(/10 Agu 2026 - 13 Sep 2026/i)).toBeInTheDocument();
expect(screen.getByRole('button', { name: /Sync hari ini/i })).toBeInTheDocument();
expect(screen.queryByRole('button', { name: /Sync/i })).not.toBeInTheDocument();
// Ringkasan stats
expect(screen.getAllByText('Karung Masuk').length).toBeGreaterThan(0);
@@ -240,6 +240,13 @@ describe('FeedSackCountingPage', () => {
// Saldo card
expect(screen.getByRole('heading', { name: 'Saldo Karung IOT' })).toBeInTheDocument();
// Saldo awal (read-only from site mirror)
expect(screen.getByRole('heading', { name: 'Saldo Awal' })).toBeInTheDocument();
expect(
screen.getByText('Belum ada saldo awal tersimpan untuk siklus ini.')
).toBeInTheDocument();
expect(screen.getByText(/Sumber data: site dashboard \(mirror\)/i)).toBeInTheDocument();
// Trend chart
expect(screen.getByRole('heading', { name: 'Tren Harian Karung IOT' })).toBeInTheDocument();