Agile Web Development with Rails 7: assert_select 'li' fails (page 130) [solved]

Iteration E1
File line_items_controller_test.rb
Line assert_select 'li' "..." lets the test fail, because iteration C2 added <li> elements into the page’s nav section.
Proposal: The select statement needs to be more specific, e.g. assert_select 'main li' "..."

The tests pass for me.

The definition of assert_select states:

Assertion is true if the text value of at least one element matches the string or regular expression.

This should be the case, even with the full set of li elements.