]> git.proxmox.com Git - ceph.git/blob - 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
1 import { PoolPageHelper } from './pools.po';
2
3 describe('Pools page', () => {
4 let pools: PoolPageHelper;
5 const poolName = 'pool_e2e_pool/test';
6
7 beforeAll(async () => {
8 pools = new PoolPageHelper();
9 await pools.navigateTo();
10 });
11
12 afterEach(async () => {
13 await PoolPageHelper.checkConsole();
14 });
15
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 });
32 });
33
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);
40 });
41
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);
46 });
47
48 it('should delete a pool', async () => {
49 await pools.navigateTo();
50 await pools.delete(poolName);
51 });
52 });