summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/tests/browser/test_all_builds_page.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/tests/browser/test_all_builds_page.py')
-rw-r--r--bitbake/lib/toaster/tests/browser/test_all_builds_page.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/bitbake/lib/toaster/tests/browser/test_all_builds_page.py b/bitbake/lib/toaster/tests/browser/test_all_builds_page.py
index e4223f482a..5ea6532536 100644
--- a/bitbake/lib/toaster/tests/browser/test_all_builds_page.py
+++ b/bitbake/lib/toaster/tests/browser/test_all_builds_page.py
@@ -27,6 +27,7 @@ from tests.browser.selenium_helpers import SeleniumTestCase
27 27
28from orm.models import BitbakeVersion, Release, Project, Build, Target 28from orm.models import BitbakeVersion, Release, Project, Build, Target
29 29
30
30class TestAllBuildsPage(SeleniumTestCase): 31class TestAllBuildsPage(SeleniumTestCase):
31 """ Tests for all builds page /builds/ """ 32 """ Tests for all builds page /builds/ """
32 33
@@ -95,17 +96,17 @@ class TestAllBuildsPage(SeleniumTestCase):
95 url = reverse('all-builds') 96 url = reverse('all-builds')
96 self.get(url) 97 self.get(url)
97 98
98 # shouldn't see a run again button for command-line builds 99 # shouldn't see a rebuild button for command-line builds
99 selector = 'div[data-latest-build-result="%s"] button' % default_build.id 100 selector = 'div[data-latest-build-result="%s"] a.run-again-btn' % default_build.id
100 run_again_button = self.find_all(selector) 101 run_again_button = self.find_all(selector)
101 self.assertEqual(len(run_again_button), 0, 102 self.assertEqual(len(run_again_button), 0,
102 'should not see a run again button for cli builds') 103 'should not see a rebuild button for cli builds')
103 104
104 # should see a run again button for non-command-line builds 105 # should see a rebuild button for non-command-line builds
105 selector = 'div[data-latest-build-result="%s"] button' % build1.id 106 selector = 'div[data-latest-build-result="%s"] a.run-again-btn' % build1.id
106 run_again_button = self.find_all(selector) 107 run_again_button = self.find_all(selector)
107 self.assertEqual(len(run_again_button), 1, 108 self.assertEqual(len(run_again_button), 1,
108 'should see a run again button for non-cli builds') 109 'should see a rebuild button for non-cli builds')
109 110
110 def test_tooltips_on_project_name(self): 111 def test_tooltips_on_project_name(self):
111 """ 112 """
@@ -124,7 +125,7 @@ class TestAllBuildsPage(SeleniumTestCase):
124 # get the project name cells from the table 125 # get the project name cells from the table
125 cells = self.find_all('#allbuildstable td[class="project"]') 126 cells = self.find_all('#allbuildstable td[class="project"]')
126 127
127 selector = 'i.get-help' 128 selector = 'span.get-help'
128 129
129 for cell in cells: 130 for cell in cells:
130 content = cell.get_attribute('innerHTML') 131 content = cell.get_attribute('innerHTML')