]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/inventory.po.ts
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / e2e / cluster / inventory.po.ts
CommitLineData
f67539c2
TL
1import { PageHelper } from '../page-helper.po';
2
3const pages = {
4 index: { url: '#/inventory', id: 'cd-inventory' }
5};
6
7export class InventoryPageHelper extends PageHelper {
8 pages = pages;
9
10 identify() {
11 // Nothing we can do, just verify the form is there
12 this.getFirstTableCell().click();
13 cy.contains('cd-table-actions button', 'Identify').click();
14 cy.get('cd-modal').within(() => {
15 cy.get('#duration').select('15 minutes');
16 cy.get('#duration').select('10 minutes');
17 cy.get('cd-back-button').click();
18 });
20effc67 19 cy.get('cd-modal').should('not.exist');
f67539c2
TL
20 cy.get(`${this.pages.index.id}`);
21 }
22}