playwright icon indicating copy to clipboard operation
playwright copied to clipboard

fix(ct): support empty fragments

Open dgozman opened this issue 2 years ago • 0 comments

Currently, we ues #root vs #root > * selector for component roots depending on the number of root children. This heuristic detects fragments that render multiple elements inside the root.

However, this does not work with empty fragments that do not render anything.

The fix is to make the #root >> control=component selector that would dynamically detect the root. This supports empty fragments and also allows for dynamic updates of the fragments.

Fixes #17231.

dgozman avatar Sep 20 '22 19:09 dgozman