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 Cypress.Cookies.preserveOnce('token');
11 mirroring.navigateTo();
14 it('should open and show breadcrumb', () => {
15 mirroring.expectBreadcrumbText('Mirroring');
18 it('should show three tabs', () => {
19 mirroring.getTabsCount().should('eq', 3);
22 it('should show text for all tabs', () => {
23 mirroring.getTabText(0).should('eq', 'Issues');
24 mirroring.getTabText(1).should('eq', 'Syncing');
25 mirroring.getTabText(2).should('eq', 'Ready');
28 describe('checks that edit mode functionality shows in the pools table', () => {
29 const poolName = 'mirroring_test';
32 pools.navigateTo('create'); // Need pool for mirroring testing
33 pools.create(poolName, 8, 'rbd');
35 pools.existTableCell(poolName, true);
38 it('tests editing mode for pools', () => {
39 mirroring.navigateTo();
41 mirroring.editMirror(poolName, 'Pool');
42 mirroring.getFirstTableCell('pool').should('be.visible');
43 mirroring.editMirror(poolName, 'Image');
44 mirroring.getFirstTableCell('image').should('be.visible');
45 mirroring.editMirror(poolName, 'Disabled');
46 mirroring.getFirstTableCell('disabled').should('be.visible');
51 pools.delete(poolName);