Skip to content

Commit

Permalink
Fix index / privacy policy page titles
Browse files Browse the repository at this point in the history
  • Loading branch information
knrafto committed Aug 14, 2016
1 parent 28eeaf0 commit cf7633c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions server/templates/about/privacy.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{% extends "about/base.html" %}

{% block title %}Privacy Policy | Ok{% endblock %}

{% block content %}
<div class="row">
<div class="landing privacy">
Expand Down
2 changes: 2 additions & 0 deletions server/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{% extends "about/base.html" %}

{% block title %}Ok{% endblock %}

{% block content %}
<div class="landing row">
<div class="col-md-10 col-md-offset-1">
Expand Down
8 changes: 4 additions & 4 deletions tests/test_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ def test_api_is_up_and_running(self):
self.assertEqual(data['data']['version'], 'v3')

def test_static_pages(self):
about_url = "{}/about/tos".format(self.get_server_url())
about_url = "{}/about/privacy/".format(self.get_server_url())
self.pageLoad(about_url)
self.assertIn('Ok |', self.driver.title)
self.assertIn('Privacy Policy | Ok', self.driver.title)

def test_phantom_web(self):
self.pageLoad(self.get_server_url())
self.assertIn('Ok', self.driver.title)
self.assertEquals('Ok', self.driver.title)
self.driver.find_element_by_id('testing-login').click()
self.assertIn('Login', self.driver.title)

Expand All @@ -138,7 +138,7 @@ def test_phantom_web(self):
self.assertIn('Courses | Ok', self.driver.title)

self.driver.find_element_by_id('logout').click()
self.assertIn('Ok |', self.driver.title)
self.assertEquals('Ok', self.driver.title)

def test_student_view(self):
self._seed_course()
Expand Down

0 comments on commit cf7633c

Please sign in to comment.