From 27bbfd558713252118fece3ec72f185240cebbff Mon Sep 17 00:00:00 2001 From: Nathan Date: Fri, 12 Apr 2019 13:19:24 -0400 Subject: [PATCH] mgr/dashboard: Added Object Gateway menu tab tests Fixes: https://tracker.ceph.com/issues/39276 Signed-off-by: Nathan Weinberg --- .../dashboard/frontend/e2e/rgw/daemons.e2e-spec.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/frontend/e2e/rgw/daemons.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/e2e/rgw/daemons.e2e-spec.ts index b4249e643077..b673f6a39eaf 100644 --- a/src/pybind/mgr/dashboard/frontend/e2e/rgw/daemons.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/e2e/rgw/daemons.e2e-spec.ts @@ -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'); + }); }); }); -- 2.47.3