Merge pull request #25010 from nathan-weinberg/breadcrumb-tests

mgr/dashboard: Added additional breadcrumb tests to Cluster

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
This commit is contained in:
Lenz Grimmer 2018-11-20 16:36:48 +01:00 committed by GitHub
commit 1334e194f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 53 additions and 1 deletions

View File

@ -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');
});
});

View File

@ -0,0 +1,7 @@
import { browser } from 'protractor';
export class ConfigurationPage {
navigateTo() {
return browser.get('/#/configuration');
}
}

View File

@ -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');
});
});

View File

@ -0,0 +1,7 @@
import { browser } from 'protractor';
export class HostsPage {
navigateTo() {
return browser.get('/#/hosts');
}
}

View 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');
});