test(admin-panel): add product context to AI trace warnings
Test Suite / backend-pr-quick (push) Has been skipped
Test Suite / quick-import-pr-quick (push) Has been skipped
Test Suite / backend-full (push) Failing after 2m19s
Test Suite / flutter-quality (push) Failing after 1m11s

- Added `productName` field to `AdminAiWarning` in test data
- Updated warning test cases to include product context for better traceability
This commit is contained in:
Nils-Johan Gynther
2026-05-24 21:55:45 +02:00
parent 27d622bfe6
commit e492ea9a2e
@@ -95,6 +95,7 @@ void main() {
severity: 'warning',
location: 'Steg: AI-parser',
itemIndex: 5,
productName: 'Test Product',
),
AdminAiWarning(
code: 'no_match',
@@ -105,6 +106,7 @@ void main() {
severity: 'warning',
location: 'Steg: matchning mot dina produkter',
itemIndex: 7,
productName: 'Another Test Product',
),
],
legacyWarnings: const ['parse:low_confidence', 'match:no_match'],