created functional_tests.my_lists_page to contain helpers for viewing shared lists; refactored several other FTs to passing

This commit is contained in:
Disco DeDisco
2026-02-17 23:27:54 -05:00
parent e32c6bbfd6
commit a85e0597d7
4 changed files with 40 additions and 13 deletions

View File

@@ -3,6 +3,7 @@ from selenium.webdriver.common.by import By
from .base import FunctionalTest
from .list_page import ListPage
from .my_lists_page import MyListsPage
# Helper fns
@@ -36,3 +37,18 @@ class SharingTest(FunctionalTest):
)
list_page.share_list_with("friend@example.com")
self.browser = ali_browser
MyListsPage(self).go_to_my_lists_page("alice@example.com")
self.browser.find_element(By.LINK_TEXT, "Send help").click()
self.wait_for(
lambda: self.assertEqual(list_page.get_list_owner(), "discoman@example.com")
)
list_page.add_list_item("At your command, Disco King")
self.browser = disco_browser
self.browser.refresh()
list_page.wait_for_row_in_list_table("At your command, Disco King", 2)