created functional_tests.my_lists_page to contain helpers for viewing shared lists; refactored several other FTs to passing
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user