diff options
| author | Eloy Robillard <eloy.robillard@gmail.com> | 2024-03-18 12:19:27 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-18 11:19:27 +0000 | 
| commit | 7ee76d708934adeef06479f7757beb22c6c01d14 (patch) | |
| tree | c03ad4227e8a71939bb5efddffe57fa21a75b043 /test | |
| parent | 4fe881d68d4c1182bee2e78a559c2064aaf48b0d (diff) | |
Add an option to allow both viewing and adding duplicates (#693)
* Detect duplicates when checking if can add note
* Display the stacked add buttons
Diffstat (limited to 'test')
| -rw-r--r-- | test/playwright/playwright-util.js | 2 | ||||
| -rw-r--r-- | test/utilities/anki.js | 1 | 
2 files changed, 1 insertions, 2 deletions
| diff --git a/test/playwright/playwright-util.js b/test/playwright/playwright-util.js index 1ea2e604..5481eb75 100644 --- a/test/playwright/playwright-util.js +++ b/test/playwright/playwright-util.js @@ -114,7 +114,7 @@ export function getExpectedAddNoteBody() {                  deckName: 'Mock Deck',                  modelName: 'Mock Model',                  options: { -                    allowDuplicate: false, +                    allowDuplicate: true,                      duplicateScope: 'collection',                      duplicateScopeOptions: {                          deckName: null, diff --git a/test/utilities/anki.js b/test/utilities/anki.js index f5d281e4..550d0c0b 100644 --- a/test/utilities/anki.js +++ b/test/utilities/anki.js @@ -107,7 +107,6 @@ export async function getTemplateRenderResults(dictionaryEntries, mode, template              modelName: 'modelName',              fields: createTestFields(dictionaryEntry.type),              tags: ['yomitan'], -            checkForDuplicates: true,              duplicateScope: 'collection',              duplicateScopeCheckAllModels: false,              resultOutputMode: mode, |