osds = new Helper().osds;
});
- afterEach(() => {
- Helper.checkConsole();
+ afterEach(async () => {
+ await Helper.checkConsole();
});
describe('breadcrumb and tab tests', () => {
- beforeAll(() => {
- osds.navigateTo();
+ beforeAll(async () => {
+ await osds.navigateTo();
});
- it('should open and show breadcrumb', () => {
- expect(osds.getBreadcrumbText()).toEqual('OSDs');
+ it('should open and show breadcrumb', async () => {
+ expect(await osds.getBreadcrumbText()).toEqual('OSDs');
});
- it('should show two tabs', () => {
- expect(osds.getTabsCount()).toEqual(2);
+ it('should show two tabs', async () => {
+ expect(await osds.getTabsCount()).toEqual(2);
});
- it('should show OSDs list tab at first', () => {
- expect(osds.getTabText(0)).toEqual('OSDs List');
+ it('should show OSDs list tab at first', async () => {
+ expect(await osds.getTabText(0)).toEqual('OSDs List');
});
- it('should show overall performance as a second tab', () => {
- expect(osds.getTabText(1)).toEqual('Overall Performance');
+ it('should show overall performance as a second tab', async () => {
+ expect(await osds.getTabText(1)).toEqual('Overall Performance');
});
});
});
import { browser } from 'protractor';
import { ImagesPageHelper } from './block/images.po';
+import { OSDsPageHelper } from './cluster/osds.po';
import { FilesystemsPageHelper } from './filesystems/filesystems.po';
import { NfsPageHelper } from './nfs/nfs.po';
import { PoolPageHelper } from './pools/pools.po';
users: UsersPageHelper;
nfs: NfsPageHelper;
filesystems: FilesystemsPageHelper;
+ osds: OSDsPageHelper;
constructor() {
this.pools = new PoolPageHelper();
this.users = new UsersPageHelper();
this.nfs = new NfsPageHelper();
this.filesystems = new FilesystemsPageHelper();
+ this.osds = new OSDsPageHelper();
}
/**