toaster.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/6] Toaster: Write UI TestCase -> Visualize all builds
@ 2023-11-10 17:25 Alassane Yattara
  2023-11-10 17:25 ` [PATCH 2/6] " Alassane Yattara
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Alassane Yattara @ 2023-11-10 17:25 UTC (permalink / raw)
  To: toaster; +Cc: Alassane Yattara

Test a message is shown when there are no build in all builds page

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
---
 lib/toaster/tests/browser/test_sample.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/lib/toaster/tests/browser/test_sample.py b/lib/toaster/tests/browser/test_sample.py
index b0067c21..73973778 100644
--- a/lib/toaster/tests/browser/test_sample.py
+++ b/lib/toaster/tests/browser/test_sample.py
@@ -27,3 +27,12 @@ class TestSample(SeleniumTestCase):
         self.get(url)
         brand_link = self.find('.toaster-navbar-brand a.brand')
         self.assertEqual(brand_link.text.strip(), 'Toaster')
+
+    def test_no_builds_message(self):
+        """ Test that a message is shown when there are no builds """
+        url = reverse('all-builds')
+        self.get(url)
+        div_msg = self.find('#empty-state-allbuildstable .alert-info')
+
+        msg = 'Sorry - no data found'
+        self.assertEqual(div_msg.text, msg)
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-11-10 17:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-10 17:25 [PATCH 1/6] Toaster: Write UI TestCase -> Visualize all builds Alassane Yattara
2023-11-10 17:25 ` [PATCH 2/6] " Alassane Yattara
2023-11-10 17:25 ` [PATCH 3/6] " Alassane Yattara
2023-11-10 17:25 ` [PATCH 4/6] " Alassane Yattara
2023-11-10 17:25 ` [PATCH 5/6] Toaster: " Alassane Yattara
2023-11-10 17:25 ` [PATCH 6/6] " Alassane Yattara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).