Fakultas Ilmu Komputer UI

Commit e41faa7d authored by Agas Yanpratama's avatar Agas Yanpratama 💬
Browse files

Refactor Func test, search element with js because footer will block btn

parent b46aa62e
Pipeline #28478 failed with stages
in 6 minutes and 17 seconds
......@@ -18,8 +18,7 @@ class DeleteListItemTest(FunctionalTest):
# Karena user sudah beli mcd maka user tidak jadi beli kfc dan ingin dihapus
delKFC = self.browser.find_elements_by_id('del-button-1')
delKFC.click()
self.browser.execute_script("document.getElementById('del-button-1').click();")
# Mengecek kfc sudah tidak ada di to do list
page_text = self.browser.find_element_by_tag_name('body').text
......
Markdown is supported
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