Commit 100f33e3 authored by Santino Campos's avatar Santino Campos

Add functional test for cloud hero page

parent 859af0e9
......@@ -68,6 +68,23 @@ class NewVisitorTest(unittest.TestCase):
', self.browser.page_source)
self.browser.get('http://localhost:8000/hero/cloud')
self.assertIn('Detail - Cloud', self.browser.title)
self.assertIn('<html>
<head>
<title>Detail - Cloud</title>
</head>
<body>
<img src="./cloud.png" style="width: 10vw;" />
<h1>Detail - Cloud</h1>
<dl>
<dt>Health Points</dt><dd>600</dd>
<dt>Base Attack Damage</dt><dd>57</dd>
<dt>Skills</dt><dd>Nimbus, Rain Cloud, Thunderbolt</dd>
<dt>Lore</dt><dd>I am a cloud. When I pee you call it 'rain'.</dd>
</dl>
</body>
</html>', self.browser.page_source)
# She spots the page title and header mentions the name of the hero she selected.
# While she is in a specific hero's page, she sees a button labeled "Back to Heroes List".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment