Open Bug 1742391 Opened 4 years ago Updated 4 years ago

Fix HighlighterTestActor#clickPausedDebuggerOverlayButton

Categories

(DevTools :: Framework, task, P3)

task

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

As we want to interact with elements rendered through CanvasFrameAnonymousContentHelper , we can't just juste EventUtils or grab the element reference to click on it.

At the moment, we directly call the actor handleEvent method, faking the target so it matches what we would actually get:
https://searchfox.org/mozilla-central/rev/702199bca53babc925e47fd8f86ed56487d42492/devtools/client/shared/test/highlighter-test-actor.js#367-384

The issue is that we might be in a state where events can't be handled, and regression can go unnoticed (like for Bug 1742107).

Let's try to be creative and find a way to follow more closely the flow of operation that we have when a user interacts with the buttons.

Type: defect → task
Priority: -- → P3

The Bugbug bot thinks this bug should belong to the 'DevTools::Framework' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Framework
You need to log in before you can comment on or make changes to this bug.