]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/e2e/pools/pools.e2e-spec.ts
d/control: depend on python3-yaml for ceph-mgr
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / e2e / pools / pools.e2e-spec.ts
CommitLineData
9f95a23c 1import { PoolPageHelper } from './pools.po';
11fdf7f2
TL
2
3describe('Pools page', () => {
9f95a23c
TL
4 let pools: PoolPageHelper;
5 const poolName = 'pool_e2e_pool/test';
11fdf7f2 6
9f95a23c
TL
7 beforeAll(async () => {
8 pools = new PoolPageHelper();
9 await pools.navigateTo();
11fdf7f2
TL
10 });
11
9f95a23c
TL
12 afterEach(async () => {
13 await PoolPageHelper.checkConsole();
11fdf7f2
TL
14 });
15
9f95a23c
TL
16 describe('breadcrumb and tab tests', () => {
17 it('should open and show breadcrumb', async () => {
18 await pools.waitTextToBePresent(pools.getBreadcrumb(), 'Pools');
19 });
20
21 it('should show two tabs', async () => {
22 await expect(pools.getTabsCount()).toEqual(2);
23 });
24
25 it('should show pools list tab at first', async () => {
26 await expect(pools.getTabText(0)).toEqual('Pools List');
27 });
28
29 it('should show overall performance as a second tab', async () => {
30 await expect(pools.getTabText(1)).toEqual('Overall Performance');
31 });
11fdf7f2
TL
32 });
33
9f95a23c
TL
34 it('should create a pool', async () => {
35 await pools.exist(poolName, false);
36 await pools.navigateTo('create');
37 await pools.create(poolName, 8);
38 await pools.navigateTo();
39 await pools.exist(poolName, true);
11fdf7f2
TL
40 });
41
9f95a23c
TL
42 it('should edit a pools placement group', async () => {
43 await pools.exist(poolName, true);
44 await pools.navigateTo();
45 await pools.edit_pool_pg(poolName, 32);
11fdf7f2
TL
46 });
47
9f95a23c
TL
48 it('should delete a pool', async () => {
49 await pools.navigateTo();
50 await pools.delete(poolName);
11fdf7f2
TL
51 });
52});