--- /dev/null
+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');
+ });
+});
--- /dev/null
+import { browser } from 'protractor';
+
+export class ConfigurationPage {
+ navigateTo() {
+ return browser.get('/#/configuration');
+ }
+}
--- /dev/null
+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');
+ });
+});
--- /dev/null
+import { browser } from 'protractor';
+
+export class HostsPage {
+ navigateTo() {
+ return browser.get('/#/hosts');
+ }
+}
Helper.checkConsole();
});
- it('should open and show breadcrumnb', () => {
+ it('should open and show breadcrumb', () => {
page.navigateTo();
expect(Helper.getBreadcrumbText()).toEqual('OSDs');
});