blob: 7fc50c111ad8b6def08e1732b2489ab4964f41ab [file] [log] [blame]
Ittay Stern6f900cc2018-08-29 17:01:32 +03001declare namespace Cypress {
2 interface Chainable {
3 openInstanceAuditInfoModal: typeof openInstanceAuditInfoModal,
4 }
5}
6
7function 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
17Cypress.Commands.add('openInstanceAuditInfoModal', openInstanceAuditInfoModal);
18