I am writing test cases and would like to test that all the links in the navigation bars work. How can I go about testing them?
When I run:
visit welcome_index_path
page.find("li", text: "Companies").click
I get an error saying that two elements matching css "li" with text "Companies"? How can I break it down further to find the elements.
Aucun commentaire:
Enregistrer un commentaire