Fakultas Ilmu Komputer UI

Commit 6a45c2fe authored by Izzatul Muttaqin's avatar Izzatul Muttaqin
Browse files

Change test

parent 572b264d
Pipeline #28439 failed with stages
in 35 minutes and 57 seconds
......@@ -53,6 +53,9 @@ class FunctionalTest(StaticLiveServerTestCase):
rows = table.find_elements_by_tag_name('tr')
self.assertIn(row_text, [row.text for row in rows])
def get_item_input_box(self):
return self.browser.find_element_by_id('id_new_item')
@wait
def wait_for(self, fn):
return fn()
......@@ -64,7 +67,8 @@ class FunctionalTest(StaticLiveServerTestCase):
self.assertIn(row_text, [row.text for row in rows])
@wait
def wait_for_row_not_in_list_table_to(self, row_text):
def wait_for_row_not_in_list_table(self, row_text):
table = self.browser.find_element_by_id('id_list_table')
rows = table.find_elements_by_tag_name('tr')
self.assertNotIn(row_text, [row.text for row in rows])
\ No newline at end of file
self.assertNotIn(row_text, [row.text for row in rows])
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment