From 336cc9cc82f50119ddd414a69c14f6dca0079944 Mon Sep 17 00:00:00 2001 From: Nathan Weinberg Date: Fri, 22 Feb 2019 09:50:24 -0500 Subject: [PATCH] mgr/dashboard: Added breadcrumb tests to Filesystems menu Fixes: https://tracker.ceph.com/issues/38343 Signed-off-by: Nathan Weinberg --- .../e2e/filesystems/filesystems.e2e-spec.ts | 24 +++++++++++++++++++ .../e2e/filesystems/filesystems.po.ts | 7 ++++++ 2 files changed, 31 insertions(+) create mode 100644 src/pybind/mgr/dashboard/frontend/e2e/filesystems/filesystems.e2e-spec.ts create mode 100644 src/pybind/mgr/dashboard/frontend/e2e/filesystems/filesystems.po.ts diff --git a/src/pybind/mgr/dashboard/frontend/e2e/filesystems/filesystems.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/e2e/filesystems/filesystems.e2e-spec.ts new file mode 100644 index 00000000000..d5306858423 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/e2e/filesystems/filesystems.e2e-spec.ts @@ -0,0 +1,24 @@ +import { Helper } from '../helper.po'; +import { FilesystemsPage } from './filesystems.po'; + +describe('Filesystems page', () => { + let page: FilesystemsPage; + + beforeAll(() => { + page = new FilesystemsPage(); + }); + + afterEach(() => { + Helper.checkConsole(); + }); + + describe('breadcrumb test', () => { + beforeAll(() => { + page.navigateTo(); + }); + + it('should open and show breadcrumb', () => { + expect(Helper.getBreadcrumbText()).toEqual('Filesystems'); + }); + }); +}); diff --git a/src/pybind/mgr/dashboard/frontend/e2e/filesystems/filesystems.po.ts b/src/pybind/mgr/dashboard/frontend/e2e/filesystems/filesystems.po.ts new file mode 100644 index 00000000000..4f7638143b1 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/e2e/filesystems/filesystems.po.ts @@ -0,0 +1,7 @@ +import { browser } from 'protractor'; + +export class FilesystemsPage { + navigateTo() { + return browser.get('/#/cephfs'); + } +} -- 2.39.5