Add category level and turn the reticle into a background watermark
CI / test (push) Successful in 1m12s
CI / build-and-push (push) Successful in 2m53s

This commit is contained in:
2026-08-02 19:15:20 +02:00
parent 20beeeb420
commit 87c8f27e73
14 changed files with 464 additions and 63 deletions
+10 -2
View File
@@ -13,15 +13,23 @@ describe('Payload API', () => {
it('má nadefinované všechny kolekce', () => {
const slugy = Object.keys(payload.collections)
expect(slugy).toEqual(expect.arrayContaining(['products', 'media', 'pages', 'users']))
expect(slugy).toEqual(
expect.arrayContaining(['products', 'categories', 'media', 'pages', 'users']),
)
})
it('umí založit a najít položku nabídky', async () => {
const kategorie = await payload.create({
collection: 'categories',
data: { nazev: 'Zbraně' },
})
expect(kategorie.slug).toBe('zbrane')
const vytvorena = await payload.create({
collection: 'products',
data: {
nazev: 'CZ 75 SP-01 Shadow',
kategorie: 'zbrane',
kategorie: kategorie.id,
cena: 28900,
stav: 'skladem',
},