]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Added breadcrumb tests to NFS menu 27589/head
authorNathan <nathan2@stwmd.net>
Fri, 8 Mar 2019 14:35:08 +0000 (09:35 -0500)
committerPrashant D <pdhange@redhat.com>
Mon, 15 Apr 2019 04:59:32 +0000 (00:59 -0400)
Fixes: https://tracker.ceph.com/issues/38641
Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
(cherry picked from commit c5634ce6e5810add08bfeb19904014b19e1699be)

src/pybind/mgr/dashboard/frontend/e2e/nfs/nfs.e2e-spec.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/e2e/nfs/nfs.po.ts [new file with mode: 0644]

diff --git a/src/pybind/mgr/dashboard/frontend/e2e/nfs/nfs.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/e2e/nfs/nfs.e2e-spec.ts
new file mode 100644 (file)
index 0000000..de45daf
--- /dev/null
@@ -0,0 +1,24 @@
+import { Helper } from '../helper.po';
+import { NfsPage } from './nfs.po';
+
+describe('Nfs page', () => {
+  let page: NfsPage;
+
+  beforeAll(() => {
+    page = new NfsPage();
+  });
+
+  afterEach(() => {
+    Helper.checkConsole();
+  });
+
+  describe('breadcrumb test', () => {
+    beforeAll(() => {
+      page.navigateTo();
+    });
+
+    it('should open and show breadcrumb', () => {
+      expect(Helper.getBreadcrumbText()).toEqual('NFS');
+    });
+  });
+});
diff --git a/src/pybind/mgr/dashboard/frontend/e2e/nfs/nfs.po.ts b/src/pybind/mgr/dashboard/frontend/e2e/nfs/nfs.po.ts
new file mode 100644 (file)
index 0000000..fe6f342
--- /dev/null
@@ -0,0 +1,7 @@
+import { browser } from 'protractor';
+
+export class NfsPage {
+  navigateTo() {
+    return browser.get('/#/nfs');
+  }
+}