Commits

John Chandler committed 41ffcf9

Added tests for the slow one: the band search page

  • Participants
  • Parent commits b205e3d

Comments (0)

Files changed (1)

fluidocalypse/tests/twill_tests/functional_tests.twill

 find '<h3 class="heading">Related Genres</h3>'
 find '<li><a href="/genre/crust_punk">Crust punk</a></li>'
 
+# ############################################################
+# test calls to band search page
+# band search page is very slow
+# ############################################################
+
+# test with trailing slash
+go http://127.0.0.1:8000/search/band/
+code 200
+
+# test without trailing slash
+go http://127.0.0.1:8000/search/band
+code 200
+
+# check form - crude tests
+find '<form action="" method="post" name="search_form">'
+find '<select name="band">'
+find '<option value="Napalm Death">Napalm Death</option>'
+find '</select>'
+find '<input type="submit" value="Show band" />'
+
+# test form
+formvalue search_form band "Napalm Death"
+submit
+code 200
+url http://127.0.0.1:8000/band/Napalm%20Death