They are shown when you run the tests. Until then they appear as a hidden requirement.
Build the filters of a product table: a search box, a category and five sort orders that combine. You practice values derived from state.
Category and Sort by selects and the product table.PRODUCTS in the order the shop wants to show them first (Featured).aria-label="Search products", the Category and Sort by labels, the option values and the text No products match: the tests use them.PRODUCTS (Featured).All shows every category.Featured, the order of PRODUCTS.No products match is shown instead of the rows.Bags → you see Laptop Sleeve and Travel Backpack.Price: high to low with Displays → 27-inch Monitor, Portable Monitor, eBook Reader.zzz → you see No products match.The three controls are state; the rows are derived from them on every render.
Filter first, then sort what is left.
sort() changes the array it is called on, and its comparator must return a negative number, zero or a positive number.
The console is empty
Run your code with Ctrl+S
This console starts empty every time the preview loads. The browser's DevTools console keeps the messages with Preserve log.