]>
Commit | Line | Data |
---|---|---|
f67539c2 TL |
1 | import { PageHelper } from '../page-helper.po'; |
2 | ||
3 | const pages = { | |
4 | index: { url: '#/inventory', id: 'cd-inventory' } | |
5 | }; | |
6 | ||
7 | export 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 | } |