Skip to content

Introduce raise_on_unhandled_modal browser configuration#320

Open
seanpdoyle wants to merge 1 commit into
rubycdp:mainfrom
seanpdoyle:raise_on_unhandled_modal
Open

Introduce raise_on_unhandled_modal browser configuration#320
seanpdoyle wants to merge 1 commit into
rubycdp:mainfrom
seanpdoyle:raise_on_unhandled_modal

Conversation

@seanpdoyle

Copy link
Copy Markdown
Contributor

The problem

When executing a system test suite that relies on confirm, prompt, or other browser-level modals, the default behavior to ignore modally presented dialogs can cause false negatives.

For example, a change to the implementation might accidentally introduce a perpetually prompting confirmation modal. While the test suite outputs "Modal window … has been opened" warnings, the underlying test still passes.

The proposal

This commit proposes a new Cuprite-level :raise_on_unhandled_modal option to control whether an unhandled modal warns, or raises. When set to true, then false negative test would fail, rather than pass.

@seanpdoyle
seanpdoyle force-pushed the raise_on_unhandled_modal branch 3 times, most recently from c6b499d to 95bff0e Compare July 23, 2026 18:54
The problem
---

When executing a system test suite that relies on `confirm`, `prompt`,
or other browser-level modals, the default behavior to ignore modally
presented dialogs can cause false negatives.

For example, a change to the implementation might accidentally introduce
a perpetually prompting confirmation modal. While the test suite outputs
"Modal window … has been opened" warnings, the underlying test still
passes.

The proposal
---

This commit proposes a new Cuprite-level `:raise_on_unhandled_modal`
option to control whether an unhandled modal warns, or raises. When set
to `true`, then false negative test would fail, rather than pass.
@seanpdoyle
seanpdoyle force-pushed the raise_on_unhandled_modal branch from 95bff0e to 1692d8d Compare July 23, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant