blob: 7fc50c111ad8b6def08e1732b2489ab4964f41ab [file] [log] [blame]
declare namespace Cypress {
interface Chainable {
openInstanceAuditInfoModal: typeof openInstanceAuditInfoModal,
}
}
function openInstanceAuditInfoModal(iconTextId: string): void {
cy.getElementByDataTestsId(iconTextId).click({force: true})
.getElementByDataTestsId('context-menu-showAuditInfo').click({force : true})
.getElementByDataTestsId('audit-info-title').contains('Instantiation Information');
cy.get('.table-title').contains('MSO status');
cy.get('#cancelButton').click({force: true})
}
Cypress.Commands.add('openInstanceAuditInfoModal', openInstanceAuditInfoModal);