Add a function to toggle between detached DOM nodes and attached DOM nodes for Unit Tests

RESOLVED INCOMPLETE

Status

Hello (Loop)
Client
P3
normal
Rank:
35
RESOLVED INCOMPLETE
2 years ago
a year ago

People

(Reporter: andreio, Unassigned)

Tracking

unspecified
Points:
---
Bug Flags:
firefox-backlog +

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [tech-debt])

(Reporter)

Description

2 years ago
Need: As a developer I want to be able to inspect the component I am unit testing when tests fail.

Deliverable: Instead of using detached DOM nodes attach them to the document and hide them off screen This way we can toggle them on and inspect them.

Updated

2 years ago
Flags: firefox-backlog+
Whiteboard: [tech-debt]
(In reply to Andrei Oprea [:andreio] from comment #0)
> Deliverable: Instead of using detached DOM nodes attach them to the document
> and hide them off screen This way we can toggle them on and inspect them.

I'd be concerned that this will slow our tests down even further than they are now. If it can be proved that detached versus attached+hidden is exactly the same speed, then fair enough - I just don't want them running slower than they are now.

I would suggest we rephrase this as something like "Add a function to toggle between detached DOM nodes and attached DOM nodes".

This could be a toggle like we've got on the RTL mode on the ui-showcase display, or it could be something else.

Updated

2 years ago
Rank: 35
Priority: -- → P3
Summary: Update unit tests to attach test component into the DOM → Add a function to toggle between detached DOM nodes and attached DOM nodes for Unit Tests
Support for Hello/Loop has been discontinued.

https://support.mozilla.org/kb/hello-status

Hence closing the old bugs. Thank you for your support.
Status: NEW → RESOLVED
Last Resolved: a year ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.