mirror of
https://github.com/ceph/ceph
synced 2025-01-11 13:41:02 +00:00
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:
parent
3fab3e80a2
commit
3bc726f0c3
@ -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');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user