diff --git a/src/functional_tests/test_layout_and_styling.py b/src/functional_tests/test_layout_and_styling.py index 58eb909..d8e6261 100644 --- a/src/functional_tests/test_layout_and_styling.py +++ b/src/functional_tests/test_layout_and_styling.py @@ -1,12 +1,12 @@ from .base import FunctionalTest -from .note_page import NotePage +from .post_page import PostPage class LayoutAndStylingTest(FunctionalTest): def test_layout_and_styling(self): self.create_pre_authenticated_session("disco@test.io") - self.browser.get(self.live_server_url) - note_page = NotePage(self) + self.browser.get(self.live_server_url + '/billboard/') + post_page = PostPage(self) self.browser.set_window_size(1024, 768) @@ -27,11 +27,11 @@ class LayoutAndStylingTest(FunctionalTest): return [r.x + r.width / 2, s.x + pl + (s.width - pl - pr) / 2]; """, el) - inputbox = note_page.get_item_input_box() + inputbox = post_page.get_line_input_box() input_c, section_c = section_center(inputbox) self.assertAlmostEqual(input_c, section_c, delta=10) - note_page.add_note_item("testing") - inputbox = note_page.get_item_input_box() + post_page.add_post_line("testing") + inputbox = post_page.get_line_input_box() input_c, section_c = section_center(inputbox) self.assertAlmostEqual(input_c, section_c, delta=10) diff --git a/src/functional_tests/test_sharing.py b/src/functional_tests/test_sharing.py index 98bc7eb..ee3e5d9 100644 --- a/src/functional_tests/test_sharing.py +++ b/src/functional_tests/test_sharing.py @@ -6,8 +6,8 @@ from selenium import webdriver from selenium.webdriver.common.by import By from .base import FunctionalTest -from .note_page import NotePage -from .my_notes_page import MyNotesPage +from .post_page import PostPage +from .my_posts_page import MyPostsPage # Helper fns @@ -21,7 +21,7 @@ def quit_if_possible(browser): # Test mdls class SharingTest(FunctionalTest): @tag("two-browser") - def test_can_share_a_note_with_another_user(self): + def test_can_share_a_post_with_another_user(self): self.create_pre_authenticated_session("disco@test.io") disco_browser = self.browser self.addCleanup(lambda: quit_if_possible(disco_browser)) @@ -35,40 +35,40 @@ class SharingTest(FunctionalTest): self.create_pre_authenticated_session("alice@test.io") self.browser = disco_browser - self.browser.get(self.live_server_url) - note_page = NotePage(self).add_note_item("Send help") + self.browser.get(self.live_server_url + '/billboard/') + post_page = PostPage(self).add_post_line("Send help") - share_box = note_page.get_share_box() + share_box = post_page.get_share_box() self.assertEqual( share_box.get_attribute("placeholder"), "friend@example.com", ) - note_page.share_note_with("alice@test.io") + post_page.share_post_with("alice@test.io") self.browser = ali_browser - MyNotesPage(self).go_to_my_notes_page("alice@test.io") + MyPostsPage(self).go_to_my_posts_page("alice@test.io") self.browser.find_element(By.LINK_TEXT, "Send help").click() self.wait_for( - lambda: self.assertEqual(note_page.get_note_owner(), "disco@test.io") + lambda: self.assertEqual(post_page.get_post_owner(), "disco@test.io") ) - note_page.add_note_item("At your command, Disco King") + post_page.add_post_line("At your command, Disco King") self.browser = disco_browser self.browser.refresh() - note_page.wait_for_row_in_note_table("At your command, Disco King", 2) + post_page.wait_for_row_in_post_table("At your command, Disco King", 2) -class NoteAccessTest(FunctionalTest): - def test_stranger_cannot_access_owned_note(self): +class PostAccessTest(FunctionalTest): + def test_stranger_cannot_access_owned_post(self): self.create_pre_authenticated_session("disco@test.io") - self.browser.get(self.live_server_url) - note_page = NotePage(self).add_note_item("private eye") - note_url = self.browser.current_url + self.browser.get(self.live_server_url + '/billboard/') + PostPage(self).add_post_line("private eye") + post_url = self.browser.current_url self.browser.delete_cookie(settings.SESSION_COOKIE_NAME) - self.browser.get(note_url) + self.browser.get(post_url) - self.assertNotEqual(self.browser.current_url, note_url) + self.assertNotEqual(self.browser.current_url, post_url) diff --git a/src/static_src/scss/_note.scss b/src/static_src/scss/_note.scss index 5e971ff..8a4ad8b 100644 --- a/src/static_src/scss/_note.scss +++ b/src/static_src/scss/_note.scss @@ -45,7 +45,7 @@ // ── Notes page ───────────────────────────────────────────────────────────── .note-page { - padding: 0.75rem; + padding: 0.75rem 1.5rem; } .note-list { @@ -65,10 +65,10 @@ .note-don-doff { position: absolute; left: -1rem; - top: 0; + top: -1rem; display: flex; flex-direction: column; - gap: 1.25rem; + gap: 0.4rem; z-index: 1; .btn { margin: 0; } @@ -80,7 +80,7 @@ flex-direction: row; align-items: flex-start; gap: 0.75rem; - padding: 0.75rem; + padding: 0.75rem 0.75rem 0.75rem 1.25rem; background-color: rgba(var(--tooltip-bg), 0.75); backdrop-filter: blur(6px); border: 0.1rem solid rgba(var(--secUser), 0.4); diff --git a/src/templates/apps/billboard/my_notes.html b/src/templates/apps/billboard/my_notes.html index 68fae33..15bdbec 100644 --- a/src/templates/apps/billboard/my_notes.html +++ b/src/templates/apps/billboard/my_notes.html @@ -6,7 +6,6 @@ {% block content %}
-

My Notes