]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/cypress/e2e/pools/pools.e2e-spec.ts
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / e2e / 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.existTableCell(poolName, false);
33 pools.navigateTo('create');
34 pools.create(poolName, 8, 'rbd');
35 pools.existTableCell(poolName);
36 });
37
38 it('should edit a pools placement group', () => {
39 pools.existTableCell(poolName);
40 pools.edit_pool_pg(poolName, 32);
41 });
42
43 it('should show updated configuration field values', () => {
44 pools.existTableCell(poolName);
45 const bpsLimit = '4 B/s';
46 pools.edit_pool_configuration(poolName, bpsLimit);
47 });
48
49 it('should delete a pool', () => {
50 pools.delete(poolName);
51 });
52 });
53 });