test(admin-panel): add product context to AI trace warnings
- Added `productName` field to `AdminAiWarning` in test data - Updated warning test cases to include product context for better traceability
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user