Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 1 | declare namespace Cypress { |
| 2 | interface Chainable { |
| 3 | openInstanceAuditInfoModal: typeof openInstanceAuditInfoModal, |
| 4 | } |
| 5 | } |
| 6 | |
| 7 | function openInstanceAuditInfoModal(iconTextId: string): void { |
| 8 | cy.getElementByDataTestsId(iconTextId).click({force: true}) |
| 9 | .getElementByDataTestsId('context-menu-showAuditInfo').click({force : true}) |
| 10 | .getElementByDataTestsId('audit-info-title').contains('Instantiation Information'); |
| 11 | cy.get('.table-title').contains('MSO status'); |
| 12 | cy.get('#cancelButton').click({force: true}) |
| 13 | |
| 14 | } |
| 15 | |
| 16 | |
| 17 | Cypress.Commands.add('openInstanceAuditInfoModal', openInstanceAuditInfoModal); |
| 18 | |