Closed Bug 1531099 Opened 6 years ago Closed 5 years ago

Reduce CSS regressions with automation (e.g., selectors that become unused)

Categories

(Firefox :: New Tab Page, enhancement, P3)

enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1531104

People

(Reporter: Mardak, Unassigned)

References

Details

(Whiteboard: [needs-scope])

There were a number of recent visual regressions, e.g., bug 1527437, bug 1526861, bug 1527195, and parts of various design tweaks related ones re-adjusting styles.

Potentially all of these would have been caught by some automation that noticed CSS rules no longer being applied because html structure changed or selector incorrectly updated.

One tricky aspect is that there would need to be a relatively complete set of components to render making sure we get appropriate coverage.

I believe k88hudson said there should be tooling available for something like this?

See Also: → 1531104
Iteration: --- → 68.1 - Mar 18 - 31
See Also: → 1532807

There are a variety of tools to do this sort of thing, some pointers are available at

https://stackoverflow.com/questions/135657/how-to-identify-unused-css-definitions

and there's undoubtedly plenty more, probably including stuff based on PostCSS.

We could probably do something without depending on complete component coverage (a la Storybook) for at least the home page (eg by snapshotting dev-test-all regularly and rendering that).

Iteration: 68.1 - Mar 18 - 31 → 67.4 - Mar 11 - 17
Priority: -- → P1
Blocks: 1512725
Whiteboard: [needs-scope]
Iteration: 67.4 - Mar 11 - 17 → 68.2 - Apr 1 - 14
No longer blocks: 1512725
Priority: P1 → P2
Iteration: 68.2 - Apr 1 - 14 → ---
No longer blocks: pocket-newtab-69
No longer blocks: pocket-newtab-68
Assignee: nobody → pdahiya
Iteration: --- → 69.1 - May 13 - 26
Priority: P2 → P1
Blocks: 1523403
Flags: needinfo?(wkonu)
Flags: needinfo?(wkonu)
Iteration: 69.1 - May 13 - 26 → 69.2 - May 27 - Jun 9
Iteration: 69.2 - May 27 - Jun 9 → ---
Assignee: pdahiya → nobody

Moving to backlog. Punam to link to JEST conversion that needs to happen before this work can be tackled.

Flags: needinfo?(pdahiya)
Priority: P1 → P3
Component: Activity Streams: Newtab → New Tab Page

Unit tests work need to chalked out and is tracked under meta bug https://bugzilla.mozilla.org/show_bug.cgi?id=1459773

I propose tackling this work with https://bugzilla.mozilla.org/show_bug.cgi?id=1531104 which explore using story book to avoid regressing visual components.

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(pdahiya)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.