mgr/dashboard: migrate E2E filesystems to async/await

Fixes: https://tracker.ceph.com/issues/40693

Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
This commit is contained in:
Patrick Seidensal 2019-08-19 11:47:47 +02:00
parent 3fab3e80a2
commit 3bc726f0c3
2 changed files with 9 additions and 6 deletions

View File

@ -7,17 +7,17 @@ describe('Filesystems page', () => {
filesystems = new Helper().filesystems;
});
afterEach(() => {
Helper.checkConsole();
afterEach(async () => {
await Helper.checkConsole();
});
describe('breadcrumb test', () => {
beforeAll(() => {
filesystems.navigateTo();
beforeAll(async () => {
await filesystems.navigateTo();
});
it('should open and show breadcrumb', () => {
expect(filesystems.getBreadcrumbText()).toEqual('Filesystems');
it('should open and show breadcrumb', async () => {
expect(await filesystems.getBreadcrumbText()).toEqual('Filesystems');
});
});
});

View File

@ -1,5 +1,6 @@
import { browser } from 'protractor';
import { ImagesPageHelper } from './block/images.po';
import { FilesystemsPageHelper } from './filesystems/filesystems.po';
import { NfsPageHelper } from './nfs/nfs.po';
import { PoolPageHelper } from './pools/pools.po';
import { BucketsPageHelper } from './rgw/buckets.po';
@ -21,6 +22,7 @@ export class Helper {
daemons: DaemonsPageHelper;
users: UsersPageHelper;
nfs: NfsPageHelper;
filesystems: FilesystemsPageHelper;
constructor() {
this.pools = new PoolPageHelper();
@ -33,6 +35,7 @@ export class Helper {
this.daemons = new DaemonsPageHelper();
this.users = new UsersPageHelper();
this.nfs = new NfsPageHelper();
this.filesystems = new FilesystemsPageHelper();
}
/**