aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress/support/steps/openInstanceAuditInfoModal.step.ts
blob: 7fc50c111ad8b6def08e1732b2489ab4964f41ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);