1 import { InventoryPageHelper } from '../cluster/inventory.po';
3 describe('Inventory page', () => {
4 const inventory = new InventoryPageHelper();
8 Cypress.Cookies.preserveOnce('token');
9 inventory.navigateTo();
12 it('should have correct devices', () => {
13 cy.fixture('orchestrator/inventory.json').then((hosts) => {
14 const totalDiskCount = Cypress._.sumBy(hosts, 'devices.length');
15 inventory.getTableCount('total').should('be.eq', totalDiskCount);
16 for (const host of hosts) {
17 inventory.filterTable('Hostname', host['name']);
18 inventory.getTableCount('found').should('be.eq', host.devices.length);
23 it('should identify device', () => {