]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Verify fields on ISCSI page 29608/head
authorRafael Quintero <rafaelq@bu.edu>
Mon, 12 Aug 2019 13:44:05 +0000 (09:44 -0400)
committerRafael Quintero <rafaelq@bu.edu>
Mon, 12 Aug 2019 13:44:05 +0000 (09:44 -0400)
Fixes: https://tracker.ceph.com/issues/41207
Signed-off-by: Adam King <adking@redhat.com>
Signed-off-by: Rafael Quintero <rquinter@redhat.com>
src/pybind/mgr/dashboard/frontend/e2e/block/iscsi.e2e-spec.ts

index 523ab2e9f56dfda1cae92a3a005c44de86333552..a07200c7a132c16c6d80e909ebf3056e8fee8e64 100644 (file)
@@ -20,4 +20,40 @@ describe('Iscsi Page', () => {
       expect(iscsi.getBreadcrumbText()).toEqual('Overview');
     });
   });
+
+  describe('fields check', () => {
+    beforeAll(() => {
+      iscsi.navigateTo();
+    });
+
+    it('should check that tables are displayed and legends are correct', () => {
+      // Check tables are displayed
+      expect(
+        iscsi
+          .getTable()
+          .get(0)
+          .isDisplayed()
+      );
+      expect(
+        iscsi
+          .getTable()
+          .get(1)
+          .isDisplayed()
+      );
+
+      // Check that legends are correct
+      expect(
+        iscsi
+          .getLegends()
+          .get(0)
+          .getText()
+      ).toMatch('Gateways');
+      expect(
+        iscsi
+          .getLegends()
+          .get(1)
+          .getText()
+      ).toMatch('Images');
+    });
+  });
 });