mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 18:32:13 +02:00
bitbake: toaster/test: delay driver action until elements to appear
Update tests/browser/(test_landing_page.py and test_layerdetails_page.py) to delay driver actions until for elements to appear (Bitbake rev: 72908138bd2735c69f5e418ec5f0f2cf8215050a) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8efe835e3b
commit
829953631b
@@ -206,6 +206,7 @@ class TestLandingPage(SeleniumTestCase):
|
||||
|
||||
self.get(reverse('landing'))
|
||||
|
||||
self.wait_until_visible("#latest-builds")
|
||||
elements = self.find_all('#allbuildstable')
|
||||
self.assertEqual(len(elements), 1, 'should redirect to builds')
|
||||
content = self.get_page_source()
|
||||
|
||||
@@ -68,6 +68,7 @@ class TestLayerDetailsPage(SeleniumTestCase):
|
||||
check that the new values exist"""
|
||||
|
||||
self.get(self.url)
|
||||
self.wait_until_visible("#add-remove-layer-btn")
|
||||
|
||||
self.click("#add-remove-layer-btn")
|
||||
self.click("#edit-layer-source")
|
||||
@@ -105,7 +106,9 @@ class TestLayerDetailsPage(SeleniumTestCase):
|
||||
for save_btn in self.find_all(".change-btn"):
|
||||
save_btn.click()
|
||||
|
||||
self.click("#save-changes-for-switch")
|
||||
self.wait_until_visible("#save-changes-for-switch")
|
||||
btn_save_chg_for_switch = self.find("#save-changes-for-switch")
|
||||
btn_save_chg_for_switch.click()
|
||||
self.wait_until_visible("#edit-layer-source")
|
||||
|
||||
# Refresh the page to see if the new values are returned
|
||||
@@ -134,7 +137,9 @@ class TestLayerDetailsPage(SeleniumTestCase):
|
||||
new_dir = "/home/test/my-meta-dir"
|
||||
dir_input.send_keys(new_dir)
|
||||
|
||||
self.click("#save-changes-for-switch")
|
||||
self.wait_until_visible("#save-changes-for-switch")
|
||||
btn_save_chg_for_switch = self.find("#save-changes-for-switch")
|
||||
btn_save_chg_for_switch.click()
|
||||
self.wait_until_visible("#edit-layer-source")
|
||||
|
||||
# Refresh the page to see if the new values are returned
|
||||
|
||||
Reference in New Issue
Block a user