]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/pools/pools.e2e-spec.ts
import 15.2.4
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / integration / pools / pools.e2e-spec.ts
1 import { PoolPageHelper } from './pools.po';
2
3 describe('Pools page', () => {
4 const pools = new PoolPageHelper();
5 const poolName = 'pool_e2e_pool/test';
6
7 beforeEach(() => {
8 cy.login();
9 pools.navigateTo();
10 });
11
12 describe('breadcrumb and tab tests', () => {
13 it('should open and show breadcrumb', () => {
14 pools.expectBreadcrumbText('Pools');
15 });
16
17 it('should show two tabs', () => {
18 pools.getTabsCount().should('equal', 2);
19 });
20
21 it('should show pools list tab at first', () => {
22 pools.getTabText(0).should('eq', 'Pools List');
23 });
24
25 it('should show overall performance as a second tab', () => {
26 pools.getTabText(1).should('eq', 'Overall Performance');
27 });
28 });
29
30 describe('Create, update and destroy', () => {
31 it('should create a pool', () => {
32 pools.exist(poolName, false);
33 pools.navigateTo('create');
34 pools.create(poolName, 8);
35 pools.exist(poolName, true);
36 });
37
38 it('should edit a pools placement group', () => {
39 pools.exist(poolName, true);
40 pools.edit_pool_pg(poolName, 32);
41 });
42
43 it('should delete a pool', () => {
44 pools.delete(poolName);
45 });
46 });
47 });