]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Added additional breadcrumb tests to Cluster 25010/head
authorNathan Weinberg <nathan2@stwmd.net>
Fri, 16 Nov 2018 14:57:30 +0000 (09:57 -0500)
committerNathan Weinberg <nathan2@stwmd.net>
Fri, 16 Nov 2018 14:57:30 +0000 (09:57 -0500)
Fixes: https://tracker.ceph.com/issues/37088
Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
src/pybind/mgr/dashboard/frontend/e2e/cluster/configuration.e2e-spec.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/e2e/cluster/configuration.po.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/e2e/cluster/hosts.e2e-spec.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/e2e/cluster/hosts.po.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/e2e/cluster/osds.e2e-spec.ts

diff --git a/src/pybind/mgr/dashboard/frontend/e2e/cluster/configuration.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/e2e/cluster/configuration.e2e-spec.ts
new file mode 100644 (file)
index 0000000..9afe540
--- /dev/null
@@ -0,0 +1,19 @@
+import { Helper } from '../helper.po';
+import { ConfigurationPage } from './configuration.po';
+
+describe('Configuration page', () => {
+  let page: ConfigurationPage;
+
+  beforeAll(() => {
+    page = new ConfigurationPage();
+  });
+
+  afterEach(() => {
+    Helper.checkConsole();
+  });
+
+  it('should open and show breadcrumb', () => {
+    page.navigateTo();
+    expect(Helper.getBreadcrumbText()).toEqual('Configuration');
+  });
+});
diff --git a/src/pybind/mgr/dashboard/frontend/e2e/cluster/configuration.po.ts b/src/pybind/mgr/dashboard/frontend/e2e/cluster/configuration.po.ts
new file mode 100644 (file)
index 0000000..b23a078
--- /dev/null
@@ -0,0 +1,7 @@
+import { browser } from 'protractor';
+
+export class ConfigurationPage {
+  navigateTo() {
+    return browser.get('/#/configuration');
+  }
+}
diff --git a/src/pybind/mgr/dashboard/frontend/e2e/cluster/hosts.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/e2e/cluster/hosts.e2e-spec.ts
new file mode 100644 (file)
index 0000000..9398799
--- /dev/null
@@ -0,0 +1,19 @@
+import { Helper } from '../helper.po';
+import { HostsPage } from './hosts.po';
+
+describe('Hosts page', () => {
+  let page: HostsPage;
+
+  beforeAll(() => {
+    page = new HostsPage();
+  });
+
+  afterEach(() => {
+    Helper.checkConsole();
+  });
+
+  it('should open and show breadcrumb', () => {
+    page.navigateTo();
+    expect(Helper.getBreadcrumbText()).toEqual('Hosts');
+  });
+});
diff --git a/src/pybind/mgr/dashboard/frontend/e2e/cluster/hosts.po.ts b/src/pybind/mgr/dashboard/frontend/e2e/cluster/hosts.po.ts
new file mode 100644 (file)
index 0000000..6a90ef7
--- /dev/null
@@ -0,0 +1,7 @@
+import { browser } from 'protractor';
+
+export class HostsPage {
+  navigateTo() {
+    return browser.get('/#/hosts');
+  }
+}
index edccc90a8ee664a0d697f7768933d43f118c8236..fe97f725e62c3698b56f45e9a857183a2a8aa9e0 100644 (file)
@@ -12,7 +12,7 @@ describe('OSDs page', () => {
     Helper.checkConsole();
   });
 
-  it('should open and show breadcrumnb', () => {
+  it('should open and show breadcrumb', () => {
     page.navigateTo();
     expect(Helper.getBreadcrumbText()).toEqual('OSDs');
   });