Fakultas Ilmu Komputer UI

Commit 385a56f1 authored by Syahrul Ardiansyah's avatar Syahrul Ardiansyah
Browse files

Pass the tests

parent 7594a3a8
......@@ -33,8 +33,8 @@ class NewVisitorTest(unittest.TestCase):
# She check the comment when there is no item
comment = self.browser.find_element_by_id('comment')
self.assertEqual(
comment,
'yey, waktunya libur'
comment.text,
'yey, waktunya berlibur'
)
# She is invited to enter a to-do item straight away
......@@ -70,7 +70,7 @@ class NewVisitorTest(unittest.TestCase):
# She check the comment when there is few items
comment = self.browser.find_element_by_id('comment')
self.assertEqual(
comment,
comment.text,
'sibuk tapi santai'
)
......@@ -84,7 +84,7 @@ class NewVisitorTest(unittest.TestCase):
# She check the comment when there is many items
comment = self.browser.find_element_by_id('comment')
self.assertEqual(
comment,
comment.text,
'oh tidak'
)
......
......@@ -21,5 +21,13 @@
</tr>
{% endfor %}
</table>
{% if items|length > 5 %}
<p id="comment">oh tidak</p>
{% elif items|length > 0 %}
<p id="comment">sibuk tapi santai</p>
{% else %}
<p id="comment">yey, waktunya berlibur</p>
{% endif %}
</body>
</html>
Supports Markdown
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