diff --git a/src/functional_tests/test_login.py b/src/functional_tests/test_login.py index ca52ec3..1203174 100644 --- a/src/functional_tests/test_login.py +++ b/src/functional_tests/test_login.py @@ -8,7 +8,7 @@ from .base import FunctionalTest from apps.lyric.tasks import send_login_email_task -TEST_EMAIL = "discoman@example.com" +TEST_EMAIL = "disco@test.io" SUBJECT = "A magic login link to your Dashboard" diff --git a/src/functional_tests/test_my_lists.py b/src/functional_tests/test_my_lists.py index 83139eb..979b37c 100644 --- a/src/functional_tests/test_my_lists.py +++ b/src/functional_tests/test_my_lists.py @@ -8,7 +8,7 @@ from .my_lists_page import MyListsPage class MyListsTest(FunctionalTest): def test_logged_in_users_lists_are_saved_as_my_lists(self): - self.create_pre_authenticated_session("discoman@example.com") + self.create_pre_authenticated_session("disco@test.io") self.browser.get(self.live_server_url) list_page = ListPage(self) @@ -16,7 +16,7 @@ class MyListsTest(FunctionalTest): list_page.add_list_item("Regurgitate spines") first_list_url = self.browser.current_url - MyListsPage(self).go_to_my_lists_page("discoman@example.com") + MyListsPage(self).go_to_my_lists_page("disco@test.io") self.wait_for( lambda: self.browser.find_element(By.LINK_TEXT, "Reticulate splines") @@ -34,7 +34,7 @@ class MyListsTest(FunctionalTest): self.wait_for( lambda: self.browser.find_element(By.LINK_TEXT, "Ribbon of death") ) - MyListsPage(self).go_to_my_lists_page("discoman@example.com") + MyListsPage(self).go_to_my_lists_page("disco@test.io") self.browser.find_element(By.CSS_SELECTOR, "#id_logout").click() self.wait_for( diff --git a/src/functional_tests/test_sharing.py b/src/functional_tests/test_sharing.py index 7317c26..10093be 100644 --- a/src/functional_tests/test_sharing.py +++ b/src/functional_tests/test_sharing.py @@ -20,7 +20,7 @@ def quit_if_possible(browser): # Test mdls class SharingTest(FunctionalTest): def test_can_share_a_list_with_another_user(self): - self.create_pre_authenticated_session("discoman@example.com") + self.create_pre_authenticated_session("disco@test.io") disco_browser = self.browser self.addCleanup(lambda: quit_if_possible(disco_browser)) @@ -30,7 +30,7 @@ class SharingTest(FunctionalTest): ali_browser = webdriver.Firefox(options=options) self.addCleanup(lambda: quit_if_possible(ali_browser)) self.browser = ali_browser - self.create_pre_authenticated_session("alice@example.com") + self.create_pre_authenticated_session("alice@test.io") self.browser = disco_browser self.browser.get(self.live_server_url) @@ -42,15 +42,15 @@ class SharingTest(FunctionalTest): "friend@example.com", ) - list_page.share_list_with("alice@example.com") + list_page.share_list_with("alice@test.io") self.browser = ali_browser - MyListsPage(self).go_to_my_lists_page("alice@example.com") + MyListsPage(self).go_to_my_lists_page("alice@test.io") self.browser.find_element(By.LINK_TEXT, "Send help").click() self.wait_for( - lambda: self.assertEqual(list_page.get_list_owner(), "discoman@example.com") + lambda: self.assertEqual(list_page.get_list_owner(), "disco@test.io") ) list_page.add_list_item("At your command, Disco King") @@ -61,7 +61,7 @@ class SharingTest(FunctionalTest): class ListAccessTest(FunctionalTest): def test_stranger_cannot_access_owned_list(self): - self.create_pre_authenticated_session("disco@example.com") + self.create_pre_authenticated_session("disco@test.io") self.browser.get(self.live_server_url) list_page = ListPage(self).add_list_item("private eye") list_url = self.browser.current_url diff --git a/src/templates/apps/dashboard/home.html b/src/templates/apps/dashboard/home.html index 1c7ea69..70a1323 100644 --- a/src/templates/apps/dashboard/home.html +++ b/src/templates/apps/dashboard/home.html @@ -24,7 +24,7 @@ {% else %} - 🔒 + × {% endif %} {% endfor %} diff --git a/src/templates/apps/dashboard/list.html b/src/templates/apps/dashboard/list.html index 3ab0a4a..1863952 100644 --- a/src/templates/apps/dashboard/list.html +++ b/src/templates/apps/dashboard/list.html @@ -1,4 +1,5 @@ {% extends "core/base.html" %} +{% load lyric_extras %} {% block title_text %}Your to-do list{% endblock title_text %} {% block header_text %}Your to-do list{% endblock header_text %} @@ -12,7 +13,7 @@ {% block content %}
| {{ forloop.counter }}. {{ item.text }} |