]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Added breadcrumb tests to Filesystems menu 26592/head
authorNathan Weinberg <nathan2@stwmd.net>
Fri, 22 Feb 2019 14:50:24 +0000 (09:50 -0500)
committerNathan Weinberg <nathan2@stwmd.net>
Fri, 22 Feb 2019 14:50:24 +0000 (09:50 -0500)
Fixes: https://tracker.ceph.com/issues/38343
Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
src/pybind/mgr/dashboard/frontend/e2e/filesystems/filesystems.e2e-spec.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/e2e/filesystems/filesystems.po.ts [new file with mode: 0644]

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 (file)
index 0000000..d530685
--- /dev/null
@@ -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 (file)
index 0000000..4f76381
--- /dev/null
@@ -0,0 +1,7 @@
+import { browser } from 'protractor';
+
+export class FilesystemsPage {
+  navigateTo() {
+    return browser.get('/#/cephfs');
+  }
+}