From 899e786fdc6dd8b8105fa3a524b7fdc3f49adcae Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 16 Mar 2026 01:35:08 +0100 Subject: [PATCH] fix: resolve duplicate option match in changing-type smoke test Use .first() when selecting type option to handle demo vaults with duplicate type names in the dropdown. Co-Authored-By: Claude Opus 4.6 (1M context) --- tests/smoke/changing-type-data-corruption.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/smoke/changing-type-data-corruption.spec.ts b/tests/smoke/changing-type-data-corruption.spec.ts index 3ab0c307..de94b9a6 100644 --- a/tests/smoke/changing-type-data-corruption.spec.ts +++ b/tests/smoke/changing-type-data-corruption.spec.ts @@ -31,7 +31,7 @@ test.describe('Changing note type preserves content (flat vault)', () => { const targetType = currentType === 'Project' ? 'Experiment' : 'Project' await selectTrigger.click() await page.waitForTimeout(300) - const option = page.getByRole('option', { name: targetType, exact: true }) + const option = page.getByRole('option', { name: targetType, exact: true }).first() await expect(option).toBeVisible({ timeout: 3000 }) await option.click()