]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/pools/pools.e2e-spec.ts
buildsys: change download over to reef release
[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 Cypress.Cookies.preserveOnce('token');
10 pools.navigateTo();
11 });
12
13 describe('breadcrumb and tab tests', () => {
14 it('should open and show breadcrumb', () => {
15 pools.expectBreadcrumbText('Pools');
16 });
17
18 it('should show two tabs', () => {
19 pools.getTabsCount().should('equal', 2);
20 });
21
22 it('should show pools list tab at first', () => {
23 pools.getTabText(0).should('eq', 'Pools List');
24 });
25
26 it('should show overall performance as a second tab', () => {
27 pools.getTabText(1).should('eq', 'Overall Performance');
28 });
29 });
30
31 describe('Create, update and destroy', () => {
32 it('should create a pool', () => {
33 pools.existTableCell(poolName, false);
34 pools.navigateTo('create');
35 pools.create(poolName, 8, 'rbd');
36 pools.existTableCell(poolName);
37 });
38
39 it('should edit a pools placement group', () => {
40 pools.existTableCell(poolName);
41 pools.edit_pool_pg(poolName, 32);
42 });
43
44 it('should show updated configuration field values', () => {
45 pools.existTableCell(poolName);
46 const bpsLimit = '4 B/s';
47 pools.edit_pool_configuration(poolName, bpsLimit);
48 });
49
50 it('should delete a pool', () => {
51 pools.delete(poolName);
52 });
53 });
54 });