1 import { PoolPageHelper } from './pools.po';
3 describe('Pools page', () => {
4 const pools = new PoolPageHelper();
5 const poolName = 'pool_e2e_pool-test';
9 Cypress.Cookies.preserveOnce('token');
13 describe('breadcrumb and tab tests', () => {
14 it('should open and show breadcrumb', () => {
15 pools.expectBreadcrumbText('Pools');
18 it('should show two tabs', () => {
19 pools.getTabsCount().should('equal', 2);
22 it('should show pools list tab at first', () => {
23 pools.getTabText(0).should('eq', 'Pools List');
26 it('should show overall performance as a second tab', () => {
27 pools.getTabText(1).should('eq', 'Overall Performance');
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);
39 it('should edit a pools placement group', () => {
40 pools.existTableCell(poolName);
41 pools.edit_pool_pg(poolName, 32);
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);
50 it('should delete a pool', () => {
51 pools.delete(poolName);