summaryrefslogtreecommitdiff
path: root/test/playwright
diff options
context:
space:
mode:
authorStefanVukovic99 <stefanvukovic44@gmail.com>2024-04-14 18:34:20 +0200
committerGitHub <noreply@github.com>2024-04-14 16:34:20 +0000
commitf2b3eb4eddb282d4eb88488b3dbc47c948891a6d (patch)
treed0701552f9a2d394948140f684149b9136fb59ca /test/playwright
parent0ca56ec3bb0425b84ca15f2711478c44fabd52df (diff)
fix (#811)
Diffstat (limited to 'test/playwright')
-rw-r--r--test/playwright/playwright-util.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/playwright/playwright-util.js b/test/playwright/playwright-util.js
index 5481eb75..33d35027 100644
--- a/test/playwright/playwright-util.js
+++ b/test/playwright/playwright-util.js
@@ -138,9 +138,10 @@ function getResponseBody(action) {
case 'deckNames': return ['Mock Deck'];
case 'modelNames': return ['Mock Model'];
case 'modelFieldNames': return [...getMockModelFields().keys()];
- case 'canAddNotes': return [true, true];
+ case 'canAddNotesWithErrorDetail': return [{canAdd: true}, {canAdd: true}];
case 'storeMediaFile': return 'mock_audio.mp3';
case 'addNote': return 102312488912;
+ case 'multi': return [];
default: throw new Error(`Unknown action: ${action}`);
}
}