Refactor CSS Grid Highlighter tests to use generic highlighter test helpers
Categories
(DevTools :: Inspector, task, P3)
Tracking
(Fission Milestone:Future, firefox139 fixed)
| Tracking | Status | |
|---|---|---|
| firefox139 | --- | fixed |
People
(Reporter: rcaliman, Assigned: nchevobbe)
References
Details
(Whiteboard: dt-fission-future)
Attachments
(1 file)
Follow up for Bug 1572652 where we refactored CSS Grid highlighters to use generic highlighter events ("highlighter-shown", "highlighter-hidden"), but did not update all tests to use the generic test helpers introduced in https://phabricator.services.mozilla.com/D85858.
For uniformity, the tests in https://searchfox.org/mozilla-central/source/devtools/client/inspector/grids/test should be migrated to use the new helpers and drop the custom events ("grid-highlighter-shown", "grid-highlighter-hidden"), as well as the shims for getting the parentGridHighlighters map.
Example snippet:
const HIGHLIGHTER_TYPE = inspector.highlighters.TYPES.GRID;
const { waitForHighlighterTypeShown, waitForHighlighterTypeHidden } = getHighlighterTestHelpers(inspector);
const onHighlighterShown = waitForHighlighterTypeShown(HIGHLIGHTER_TYPE)
// do action to show highlighter (ex: click toggle), then wait for the promise to resolve
const { nodeFront, highlighter } = await onHighlighterShown();
const onHighlighterHidden = waitForHighlighterTypeHidden(HIGHLIGHTER_TYPE)
// do action to hide highlighter, then wait for the promise to resolve
const { nodeFront, highlighter } = await onHighlighterHidden();
| Reporter | ||
Updated•5 years ago
|
| Reporter | ||
Updated•5 years ago
|
| Reporter | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Tracking dt-fission-m3-reserve bugs for Fission MVP.
Comment 2•5 years ago
|
||
Moving "dt-fission-m3-reserve" bugs to "dt-fission-future" because they don't block Fission MVP.
| Assignee | ||
Comment 3•1 year ago
|
||
Migrate tests that were using this to actually check the rendered highlighters
in the DOM.
We add a "isParent" option to the grid highlighters so we can set it as an
attribute in the DOM and run some assertions in tests.
Updated•1 year ago
|
Comment 6•1 year ago
|
||
| bugherder | ||
| Comment hidden (obsolete) |
| Comment hidden (obsolete) |
| Comment hidden (obsolete) |
Updated•1 year ago
|
Updated•1 year ago
|
Description
•