created functional_tests.list_page to handle common FT helpers; almost every FT file affected & less reliant on .base, which no longer contains those helpers
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
from selenium.webdriver.common.by import By
|
||||
|
||||
from .base import FunctionalTest
|
||||
from .list_page import ListPage
|
||||
|
||||
|
||||
class MyListsTest(FunctionalTest):
|
||||
|
||||
@@ -7,8 +10,9 @@ class MyListsTest(FunctionalTest):
|
||||
self.create_pre_authenticated_session("discoman@example.com")
|
||||
|
||||
self.browser.get(self.live_server_url)
|
||||
self.add_list_item("Reticulate splines")
|
||||
self.add_list_item("Regurgitate spines")
|
||||
list_page = ListPage(self)
|
||||
list_page.add_list_item("Reticulate splines")
|
||||
list_page.add_list_item("Regurgitate spines")
|
||||
first_list_url = self.browser.current_url
|
||||
|
||||
self.browser.find_element(By.LINK_TEXT, "My lists").click()
|
||||
@@ -29,7 +33,7 @@ class MyListsTest(FunctionalTest):
|
||||
)
|
||||
|
||||
self.browser.get(self.live_server_url)
|
||||
self.add_list_item("Ribbon of death")
|
||||
list_page.add_list_item("Ribbon of death")
|
||||
second_list_url = self.browser.current_url
|
||||
|
||||
self.browser.find_element(By.LINK_TEXT, "My lists").click()
|
||||
|
||||
Reference in New Issue
Block a user