]>
Commit | Line | Data |
---|---|---|
f67539c2 TL |
1 | import { InventoryPageHelper } from '../cluster/inventory.po'; |
2 | ||
522d829b | 3 | describe('Physical Disks page', () => { |
f67539c2 TL |
4 | const inventory = new InventoryPageHelper(); |
5 | ||
6 | beforeEach(() => { | |
7 | cy.login(); | |
8 | Cypress.Cookies.preserveOnce('token'); | |
9 | inventory.navigateTo(); | |
10 | }); | |
11 | ||
12 | it('should have correct devices', () => { | |
13 | cy.fixture('orchestrator/inventory.json').then((hosts) => { | |
14 | const totalDiskCount = Cypress._.sumBy(hosts, 'devices.length'); | |
a4b75251 | 15 | inventory.expectTableCount('total', totalDiskCount); |
f67539c2 TL |
16 | for (const host of hosts) { |
17 | inventory.filterTable('Hostname', host['name']); | |
18 | inventory.getTableCount('found').should('be.eq', host.devices.length); | |
19 | } | |
20 | }); | |
21 | }); | |
22 | ||
23 | it('should identify device', () => { | |
24 | inventory.identify(); | |
25 | }); | |
26 | }); |