renamed List to Note everywhere thru-out project in preparation for complete overhaul of applet capabilities
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
from .base import FunctionalTest
|
||||
from .list_page import ListPage
|
||||
from .note_page import NotePage
|
||||
|
||||
|
||||
class LayoutAndStylingTest(FunctionalTest):
|
||||
def test_layout_and_styling(self):
|
||||
self.create_pre_authenticated_session("disco@test.io")
|
||||
self.browser.get(self.live_server_url)
|
||||
list_page = ListPage(self)
|
||||
note_page = NotePage(self)
|
||||
|
||||
self.browser.set_window_size(1024, 768)
|
||||
# print("Viewport width:", self.browser.execute_script("return window.innerWidth"))
|
||||
|
||||
inputbox = list_page.get_item_input_box()
|
||||
inputbox = note_page.get_item_input_box()
|
||||
self.assertAlmostEqual(
|
||||
inputbox.location['x'] + inputbox.size['width'] / 2,
|
||||
512,
|
||||
delta=10,
|
||||
)
|
||||
|
||||
list_page.add_list_item("testing")
|
||||
inputbox = list_page.get_item_input_box()
|
||||
note_page.add_note_item("testing")
|
||||
inputbox = note_page.get_item_input_box()
|
||||
self.assertAlmostEqual(
|
||||
inputbox.location['x'] + inputbox.size['width'] / 2,
|
||||
512,
|
||||
|
||||
Reference in New Issue
Block a user