def setUp(self): super().setUp() page = MainPage(self.driver) page.create_list(self.LIST_NAME) page.wait_for_list(self.LIST_NAME) self.lists = page.count_lists() page.open_list(self.LIST_NAME)
def tearDown(self): page = MainPage(self.driver) lists = page.count_lists_by_name(self.LIST_NAME) page.delete_list(self.LIST_NAME) page.refresh() page.wait_for_list_not_to_appear(self.LIST_NAME, lists) super().tearDown()
def test(self): page = MainPage(self.driver) lists = page.count_lists() page.create_list(LIST_XSS_NAME) page.wait_for_list(LIST_XSS_NAME) self.assertEqual( lists + 1, page.count_lists() ) page.refresh() wait_for_no_alert(self.driver) pass
def test(self): page = MainPage(self.driver) lists = page.count_lists() page.delete_list(self.LIST_NAME) page.wait_for_list_to_disappear(self.LIST_NAME) self.assertEqual( lists - 1, page.count_lists() )
def test(self): page = MainPage(self.driver) lists = page.count_lists() page.create_list(self.LIST_NAME) page.wait_for_list(self.LIST_NAME) self.assertEqual( lists + 1, page.count_lists() )
def test(self): page = ListPage(self.driver) page.delete() wait_for_url(self.driver, TODO_MAIN_URL) page = MainPage(self.driver) self.assertEqual( self.lists - 1, page.count_lists() )
def test(self): page = MainPage(self.driver) lists = page.count_lists() page.create_list('') self.assertEqual( lists, page.count_lists() )
def test(self): page = MainPage(self.driver) page.create_list(LIST_LONG_NAME) page.wait_for_list_to_disappear(LIST_LONG_NAME)
def setUp(self): super().setUp() page = MainPage(self.driver) page.create_list(self.LIST_NAME) page.wait_for_list(self.LIST_NAME)