mirror of
https://github.com/ceph/ceph
synced 2025-02-22 02:27:29 +00:00
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:
commit
1334e194f9
@ -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');
|
||||
});
|
||||
});
|
@ -0,0 +1,7 @@
|
||||
import { browser } from 'protractor';
|
||||
|
||||
export class ConfigurationPage {
|
||||
navigateTo() {
|
||||
return browser.get('/#/configuration');
|
||||
}
|
||||
}
|
@ -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');
|
||||
});
|
||||
});
|
@ -0,0 +1,7 @@
|
||||
import { browser } from 'protractor';
|
||||
|
||||
export class HostsPage {
|
||||
navigateTo() {
|
||||
return browser.get('/#/hosts');
|
||||
}
|
||||
}
|
@ -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');
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user