Open Bug 1760273 Opened 2 years ago Updated 2 years ago

Simulate adding breakpoint in mochitests to match user workflow.

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: bomsy, Assigned: bomsy)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

Currently in most of our tests, we add breakpoints by directly calling the adBreakpoint action https://searchfox.org/mozilla-central/rev/478ecccb085b7efd3c4773edb0480a7b2b16754c/devtools/client/debugger/test/mochitest/shared-head.js#908-912.

This does not match user behaviour and means the whole breakpoint workflow is not fully covered.

One example is that in the user workflow a source must be selected in the UI before the user can click in the gutter to add a breakpoint.
In the tests we can add a breakpoint with out a selected source. e.g https://searchfox.org/mozilla-central/rev/478ecccb085b7efd3c4773edb0480a7b2b16754c/devtools/client/debugger/test/mochitest/browser_dbg-bfcache.js#53. which might cause this breakpoint info to be wrong https://searchfox.org/mozilla-central/rev/478ecccb085b7efd3c4773edb0480a7b2b16754c/devtools/client/debugger/src/actions/breakpoints/modify.js#137-149.

Lets make the test match the user workflow, by always selecting a source and using then using the addBreakpointViaGutter https://searchfox.org/mozilla-central/rev/478ecccb085b7efd3c4773edb0480a7b2b16754c/devtools/client/debugger/test/mochitest/shared-head.js#926-930

Assignee: nobody → hmanilla
Status: NEW → ASSIGNED

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:bomsy, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit auto_nag documentation.

Flags: needinfo?(poirot.alex)
Flags: needinfo?(hmanilla)

A couple of try failures to fix for this to land, will get back to it soon

Flags: needinfo?(poirot.alex)
Flags: needinfo?(hmanilla)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: