[katello-devel] src/lib/navigation/*.rb : keys must be unique

Jeff Weiss jweiss at redhat.com
Thu Dec 20 18:40:52 UTC 2012


These are the files that define the menu navigation.  Each entry has a
:key, you cannot have duplicate keys anywhere else that whole dir, but
they keep getting added with duplicates.

The problem with dupes is that it produces HTML where multiple elements
in the DOM have the same id attribute.  That's invalid HTML, and breaks
selenium automated tests, because it can't uniquely identify the menu
items.

If anyone could write a unit test that checks this, that would be
awesome. 

I will submit a PR to correct the latest round of dupes.


-Jeff




More information about the katello-devel mailing list