From: Nathan Weinberg Date: Fri, 22 Feb 2019 14:50:24 +0000 (-0500) Subject: mgr/dashboard: Added breadcrumb tests to Filesystems menu X-Git-Tag: v14.1.1~127^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=336cc9cc82f50119ddd414a69c14f6dca0079944;p=ceph-ci.git mgr/dashboard: Added breadcrumb tests to Filesystems menu Fixes: https://tracker.ceph.com/issues/38343 Signed-off-by: Nathan Weinberg --- 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'); + } +}