1 import { HostsPageHelper } from '../cluster/hosts.po';
3 describe('Hosts page', () => {
4 const hosts = new HostsPageHelper();
8 Cypress.Cookies.preserveOnce('token');
12 describe('when Orchestrator is available', () => {
13 beforeEach(function () {
14 cy.fixture('orchestrator/inventory.json').as('hosts');
17 it('should display correct inventory', function () {
18 for (const host of this.hosts) {
19 hosts.clickTab('cd-host-details', host.name, 'Physical Disks');
20 cy.get('cd-host-details').within(() => {
21 hosts.getTableCount('total').should('be.eq', host.devices.length);