]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/03-inventory.e2e-spec.ts
buildsys: change download over to reef release
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / integration / orchestrator / 03-inventory.e2e-spec.ts
CommitLineData
f67539c2
TL
1import { InventoryPageHelper } from '../cluster/inventory.po';
2
522d829b 3describe('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});