Test: Arbeitsblatt-Reihenfolge unabhaengig von der Uhrzeit
Die 55 Fuellblaetter hatten keinen festen Zeitstempel und waren ab 30.09.2026 18:00 UTC neuer als ws1 - der Test schlug ab dann fehl. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d3c6858ecc
commit
c1f8ace348
2 files changed
+2
-1
No files matched your search
File renamed without changes.
@@ -22,7 +22,8 @@ const sheet = (id, extra) => ({
|
|||||||
// Neuestes Blatt, damit es auch in getCustomerActivity (max. 20 je Ticket) dabei ist
|
// Neuestes Blatt, damit es auch in getCustomerActivity (max. 20 je Ticket) dabei ist
|
||||||
aw.seed('worksheets', sheet('ws1', { supporters: JSON.stringify([andrej]), $createdAt: '2026-09-30T18:00:00.000Z' }))
|
aw.seed('worksheets', sheet('ws1', { supporters: JSON.stringify([andrej]), $createdAt: '2026-09-30T18:00:00.000Z' }))
|
||||||
// Mehr als 50 Blaetter: die Gesamtzeit zaehlt trotzdem alle
|
// Mehr als 50 Blaetter: die Gesamtzeit zaehlt trotzdem alle
|
||||||
for (let i = 0; i < 55; i++) aw.seed('worksheets', sheet(`wsx${i}`, { totalTime: 15 }))
|
// Feste, aeltere Zeitstempel: sonst waeren die Blaetter nach 30.09. 18:00 UTC neuer als ws1
|
||||||
|
for (let i = 0; i < 55; i++) aw.seed('worksheets', sheet(`wsx${i}`, { totalTime: 15, $createdAt: '2026-09-29T08:00:00.000Z' }))
|
||||||
|
|
||||||
test('GET /:id/work liefert totalMinutes inkl. Unterstützung über alle Blätter', async () => {
|
test('GET /:id/work liefert totalMinutes inkl. Unterstützung über alle Blätter', async () => {
|
||||||
const body = await get('/api/projects/p1/work', { cookie: sessionCookie({ customerId: 'c1', appwriteUserId: 'u1' }) })
|
const body = await get('/api/projects/p1/work', { cookie: sessionCookie({ customerId: 'c1', appwriteUserId: 'u1' }) })
|
||||||
|
|||||||
Reference in new issue
Block a user