Remove otvoreno field references from all test files

- Updated ui-features.test.ts to remove otvoreno field expectations
- Updated api-integration.test.ts to remove otvoreno from test data
- Updated data-consistency.test.ts to remove otvoreno from structure definitions
- Updated filament-crud.test.ts to remove otvoreno from CRUD operations
- Updated quantity calculations to only use refill and vakuum fields

All tests pass after these changes.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
DaX
2025-06-30 20:01:00 +02:00
parent 5babb9e062
commit 58b3ff2dec
4 changed files with 14 additions and 33 deletions

View File

@@ -18,7 +18,7 @@ describe('UI Features Tests', () => {
// Check for color display
expect(tableContent).toContain('ColorSwatch');
expect(tableContent).toContain('color.hex');
expect(tableContent).toContain('bojaHex');
});
it('should have number inputs for quantity fields', () => {
@@ -28,10 +28,8 @@ describe('UI Features Tests', () => {
// Check for number inputs for quantities
expect(adminContent).toMatch(/type="number"[\s\S]*?name="refill"/);
expect(adminContent).toMatch(/type="number"[\s\S]*?name="vakum"/);
expect(adminContent).toMatch(/type="number"[\s\S]*?name="otvoreno"/);
expect(adminContent).toContain('Refill');
expect(adminContent).toContain('Vakuum');
expect(adminContent).toContain('Otvoreno');
expect(adminContent).toContain('Ukupna količina');
});