toaster.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/6] Toaster: Write UI TestCase -> Test if 'no build' message is shown
@ 2023-11-14 14:28 Alassane Yattara
  2023-11-14 14:28 ` [PATCH v2 2/6] Toaster: Write UI TestCase -> Test search box on all build page Alassane Yattara
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Alassane Yattara @ 2023-11-14 14:28 UTC (permalink / raw)
  To: toaster; +Cc: Alassane Yattara

In all builds page, check if 'no build' message is shown when there are no build.

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-14 14:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-14 14:28 [PATCH v2 1/6] Toaster: Write UI TestCase -> Test if 'no build' message is shown Alassane Yattara
2023-11-14 14:28 ` [PATCH v2 2/6] Toaster: Write UI TestCase -> Test search box on all build page Alassane Yattara
2023-11-14 14:28 ` [PATCH v2 3/6] Toaster: Write UI TestCase -> Test the filtering feature on 'failure tasks' column Alassane Yattara
2023-11-14 14:28 ` [PATCH v2 4/6] Toaster: Write UI TestCase -> Test filtering feature on 'completed_on' column Alassane Yattara
2023-11-14 14:28 ` [PATCH v2 5/6] Toaster: Write UI TestCase -> Test "edit column" feature show/hide column Alassane Yattara
2023-11-14 14:28 ` [PATCH v2 6/6] Toaster: Write UI TestCase -> Test "show rows" feature, change displaying rows in table 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).