aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress/support/steps/openInstanceAuditInfoModal.step.ts
diff options
context:
space:
mode:
Diffstat (limited to 'vid-webpack-master/cypress/support/steps/openInstanceAuditInfoModal.step.ts')
-rw-r--r--vid-webpack-master/cypress/support/steps/openInstanceAuditInfoModal.step.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/vid-webpack-master/cypress/support/steps/openInstanceAuditInfoModal.step.ts b/vid-webpack-master/cypress/support/steps/openInstanceAuditInfoModal.step.ts
new file mode 100644
index 000000000..7fc50c111
--- /dev/null
+++ b/vid-webpack-master/cypress/support/steps/openInstanceAuditInfoModal.step.ts
@@ -0,0 +1,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);
+