Link to user services on User Information page

This commit is contained in:
Pea Tyczynska
2018-07-16 17:36:34 +01:00
parent b3d99507bd
commit 2fab363253
2 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@
<ul>
{% for service in services %}
<li class="browse-list-item">
<p class="browse-list-hint">{{ service.name }}</p>
<a class="browse-list-hint" href={{url_for('.service_dashboard', service_id=service.id)}}>{{ service.name }}</a>
</li>
{% endfor %}
</ul>

View File

@@ -115,8 +115,8 @@ def test_user_information_page_shows_information_about_user(
assert document.xpath("//p/text()[normalize-space()='+447700900986']")
assert document.xpath("//h2/text()[normalize-space()='Services']")
assert document.xpath("//p/text()[normalize-space()='Fresh Orchard Juice']")
assert document.xpath("//p/text()[normalize-space()='Nature Therapy']")
assert document.xpath("//a/text()[normalize-space()='Fresh Orchard Juice']")
assert document.xpath("//a/text()[normalize-space()='Nature Therapy']")
assert document.xpath("//h2/text()[normalize-space()='Last login']")
assert not document.xpath("//p/text()[normalize-space()='0 failed login attempts']")