From 7ee76d708934adeef06479f7757beb22c6c01d14 Mon Sep 17 00:00:00 2001 From: Eloy Robillard Date: Mon, 18 Mar 2024 12:19:27 +0100 Subject: Add an option to allow both viewing and adding duplicates (#693) * Detect duplicates when checking if can add note * Display the stacked add buttons --- test/playwright/playwright-util.js | 2 +- test/utilities/anki.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'test') 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, -- cgit v1.2.3