emancipated hardcoded form views & html from base.html, apps.dashboard.views, apps.dashboard.tests.test_views; added get_item_input_box() helper method to functional_tests.base & retrofitted the other FTs to utilize it
This commit is contained in:
@@ -10,7 +10,7 @@ class LayoutAndStylingTest(FunctionalTest):
|
||||
self.browser.set_window_size(1024, 768)
|
||||
# print("Viewport width:", self.browser.execute_script("return window.innerWidth"))
|
||||
|
||||
inputbox = self.browser.find_element(By.ID, 'id-new-item')
|
||||
inputbox = self.get_item_input_box()
|
||||
self.assertAlmostEqual(
|
||||
inputbox.location['x'] + inputbox.size['width'] / 2,
|
||||
512,
|
||||
@@ -20,7 +20,7 @@ class LayoutAndStylingTest(FunctionalTest):
|
||||
inputbox.send_keys('testing')
|
||||
inputbox.send_keys(Keys.ENTER)
|
||||
self.wait_for_row_in_list_table('1. testing')
|
||||
inputbox = self.browser.find_element(By.ID, 'id-new-item')
|
||||
inputbox = self.get_item_input_box()
|
||||
self.assertAlmostEqual(
|
||||
inputbox.location['x'] + inputbox.size['width'] / 2,
|
||||
512,
|
||||
|
||||
Reference in New Issue
Block a user