Skip to content

Add helper for confirm dialog interactions in browser tests #8584

@coderabbitai

Description

@coderabbitai

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions