diff --git a/ordr2/templates/layout.jinja2 b/ordr2/templates/layout.jinja2
index 795c4b0..f65df01 100644
--- a/ordr2/templates/layout.jinja2
+++ b/ordr2/templates/layout.jinja2
@@ -36,7 +36,7 @@
Admin
-
+
+
+
+
{% endif %}
diff --git a/tests/_functional/account.py b/tests/_functional/account.py
index 9619fc8..c0b6ded 100644
--- a/tests/_functional/account.py
+++ b/tests/_functional/account.py
@@ -11,7 +11,6 @@ def test_account_register_unauthenticated(testapp):
# basic content test
assert 'Ordr | Account Registration' in response
- assert '' in response
# test the main nav section links and highlighting
li_one, li_two = response.html.find_all('li', class_='nav-item')
assert 'active' not in li_one['class']
diff --git a/tests/_functional/layout_and_pages.py b/tests/_functional/layout_and_pages.py
index 3c9777f..a01db4d 100644
--- a/tests/_functional/layout_and_pages.py
+++ b/tests/_functional/layout_and_pages.py
@@ -3,6 +3,19 @@
from . import testapp
+def test_layout_unauthenticated_user(testapp):
+ ''' test the layout template elements for unauthenticated users
+
+ The '/faq' path is used; '/' will redirect on authenticated users
+ '''
+ testapp.reset()
+
+ response = testapp.get('/faq')
+
+ assert '' in response
+ assert 'class="login-form' in response
+
+
def test_page_welcome_unauthenticated(testapp):
''' test the welcome page for a unauthenticated user '''
testapp.reset()
@@ -11,7 +24,6 @@ def test_page_welcome_unauthenticated(testapp):
# basic content test
assert 'Ordr | Welcome' in response
- assert '' in response
# test that no sections are highlightet
assert '' not in response
@@ -24,7 +36,6 @@ def test_faq_unauthenticated(testapp):
# basic content test
assert 'Ordr | FAQ' in response
- assert '' in response
# test the main nav section links and highlighting
li_one, li_two = response.html.find_all('li', class_='nav-item')
assert 'active' in li_one['class']