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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user