1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
import { PoolPageHelper } from './pools.po';
describe('Pools page', () => {
const pools = new PoolPageHelper();
const poolName = 'pool_e2e_pool-test';
beforeEach(() => {
cy.login();
pools.navigateTo();
});
describe('breadcrumb and tab tests', () => {
it('should open and show breadcrumb', () => {
pools.expectBreadcrumbText('Pools');
});
it('should show two tabs', () => {
pools.getTabsCount().should('equal', 2);
});
it('should show pools list tab at first', () => {
pools.getTabText(0).should('eq', 'Pools List');
});
it('should show overall performance as a second tab', () => {
pools.getTabText(1).should('eq', 'Overall Performance');
});
});
describe('Create, update and destroy', () => {
it('should create a pool', () => {
pools.existTableCell(poolName, false);
pools.navigateTo('create');
pools.create(poolName, 8, 'rbd');
pools.existTableCell(poolName);
});
it('should edit a pools placement group', () => {
pools.existTableCell(poolName);
pools.edit_pool_pg(poolName, 32);
});
it('should show updated configuration field values', () => {
pools.existTableCell(poolName);
const bpsLimit = '4 B/s';
pools.edit_pool_configuration(poolName, bpsLimit);
});
it('should delete a pool', () => {
pools.delete(poolName);
});
});
});
|