username truncation functionality added
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Disco DeDisco
2026-03-03 16:10:49 -05:00
parent 105b8f1e34
commit 1c894f8ae6
7 changed files with 19 additions and 16 deletions

View File

@@ -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