diff mbox series

[toaster,3/3] test_project_page: fix failing test_single_layer_page

Message ID 20240611161333.2794231-6-tim.orling@konsulko.com
State New
Headers show
Series [toaster,1/3] taoster: update fixtures for scarthgap, current | expand

Commit Message

Tim Orling June 11, 2024, 4:13 p.m. UTC
From: Tim Orling <tim.orling@konsulko.com>

The test_single_layer_page test case consistently fails. It is not obvious why
but if we change the argument in the following from 8 to 7 it passes.

  url = reverse("layerdetails", args=(TestProjectPage.project_id, 8))

E       selenium.common.exceptions.TimeoutException: Message: An element matching "#change-notification" should be visible
=========================== short test summary info ============================
FAILED ../bitbake/lib/toaster/tests/functional/test_project_page.py::TestProjectPage::test_single_layer_page

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
 lib/toaster/tests/functional/test_project_page.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/lib/toaster/tests/functional/test_project_page.py b/lib/toaster/tests/functional/test_project_page.py
index adbe3587e..0e36b44ff 100644
--- a/lib/toaster/tests/functional/test_project_page.py
+++ b/lib/toaster/tests/functional/test_project_page.py
@@ -708,7 +708,7 @@  class TestProjectPage(SeleniumFunctionalTestCase):
                 - Check layer summary
                 - Check layer description
         """
-        url = reverse("layerdetails", args=(TestProjectPage.project_id, 8))
+        url = reverse("layerdetails", args=(TestProjectPage.project_id, 7))
         self.get(url)
         self.wait_until_visible('.page-header')
         # check title is displayed