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) <noreply@anthropic.com>
This commit is contained in:
Test
2026-03-16 01:35:08 +01:00
parent b03173058c
commit 899e786fdc

View File

@@ -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()