1 import { PoolPageHelper } from '../pools/pools.po';
2 import { MirroringPageHelper } from './mirroring.po';
4 describe('Mirroring page', () => {
5 const pools = new PoolPageHelper();
6 const mirroring = new MirroringPageHelper();
10 mirroring.navigateTo();
13 it('should open and show breadcrumb', () => {
14 mirroring.expectBreadcrumbText('Mirroring');
17 it('should show three tabs', () => {
18 mirroring.getTabsCount().should('eq', 3);
21 it('should show text for all tabs', () => {
22 mirroring.getTabText(0).should('eq', 'Issues');
23 mirroring.getTabText(1).should('eq', 'Syncing');
24 mirroring.getTabText(2).should('eq', 'Ready');
27 describe('checks that edit mode functionality shows in the pools table', () => {
28 const poolName = 'mirroring_test';
31 pools.navigateTo('create'); // Need pool for mirroring testing
32 pools.create(poolName, 8, 'rbd');
34 pools.exist(poolName, true);
37 it('tests editing mode for pools', () => {
38 mirroring.navigateTo();
40 mirroring.editMirror(poolName, 'Pool');
41 mirroring.getFirstTableCell('pool').should('be.visible');
42 mirroring.editMirror(poolName, 'Image');
43 mirroring.getFirstTableCell('image').should('be.visible');
44 mirroring.editMirror(poolName, 'Disabled');
45 mirroring.getFirstTableCell('disabled').should('be.visible');
50 pools.delete(poolName);