Context
During review of PR #8510, it was identified that test code could benefit from a dedicated helper for interacting with confirm dialogs and similar modal dialogs.
Current Situation
Tests currently interact with confirm dialogs using combinations of:
getByRole('dialog', { name: '...' })
.locator('..') chains
.getByRole('button', { name: 'Confirm' }) for confirmation
Proposed Enhancement
Create a reusable helper class or utility function to simplify confirm dialog interactions in browser tests, similar to existing helpers like BaseDialog, ContextMenu, etc.
References
┆Issue is synchronized with this Notion page by Unito
Context
During review of PR #8510, it was identified that test code could benefit from a dedicated helper for interacting with confirm dialogs and similar modal dialogs.
Current Situation
Tests currently interact with confirm dialogs using combinations of:
getByRole('dialog', { name: '...' }).locator('..')chains.getByRole('button', { name: 'Confirm' })for confirmationProposed Enhancement
Create a reusable helper class or utility function to simplify confirm dialog interactions in browser tests, similar to existing helpers like
BaseDialog,ContextMenu, etc.References
┆Issue is synchronized with this Notion page by Unito