]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Added Object Gateway menu tab tests 27565/head
authorNathan <nathan2@stwmd.net>
Fri, 12 Apr 2019 17:19:24 +0000 (13:19 -0400)
committerNathan <nathan2@stwmd.net>
Fri, 12 Apr 2019 17:19:24 +0000 (13:19 -0400)
Fixes: https://tracker.ceph.com/issues/39276
Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
src/pybind/mgr/dashboard/frontend/e2e/rgw/daemons.e2e-spec.ts

index b4249e643077df10c4271e5821be90be0fb5d72f..b673f6a39eaff4d7addefdf992be439f7b9a167b 100644 (file)
@@ -12,7 +12,7 @@ describe('RGW daemons page', () => {
     Helper.checkConsole();
   });
 
-  describe('breadcrumb test', () => {
+  describe('breadcrumb and tab tests', () => {
     beforeAll(() => {
       page.navigateTo();
     });
@@ -20,5 +20,17 @@ describe('RGW daemons page', () => {
     it('should open and show breadcrumb', () => {
       expect(Helper.getBreadcrumbText()).toEqual('Daemons');
     });
+
+    it('should show two tabs', () => {
+      expect(Helper.getTabsCount()).toEqual(2);
+    });
+
+    it('should show daemons list tab at first', () => {
+      expect(Helper.getTabText(0)).toEqual('Daemons List');
+    });
+
+    it('should show overall performance as a second tab', () => {
+      expect(Helper.getTabText(1)).toEqual('Overall Performance');
+    });
   });
 });