diff --git a/cypress/e2e/views/common.view.ts b/cypress/e2e/views/common.view.ts index 40df8d949..fc4bf5c8b 100644 --- a/cypress/e2e/views/common.view.ts +++ b/cypress/e2e/views/common.view.ts @@ -56,3 +56,4 @@ export const nameHelperStakeholderGroup = "#-helper"; export const kebabMenuItem = "a.pf-c-dropdown__menu-item"; export const commonTable = "table[aria-label='main-table']"; export const aboutButton = "#about-button"; +export const closeAbout = "button[aria-label='Close Dialog']"; diff --git a/cypress/utils/utils.ts b/cypress/utils/utils.ts index 0a726302d..042f786c6 100644 --- a/cypress/utils/utils.ts +++ b/cypress/utils/utils.ts @@ -53,6 +53,7 @@ import { import { actionButton, date, createEntitiesCheckbox } from "../e2e/views/applicationinventory.view"; import { aboutButton, + closeAbout, closeSuccessNotification, confirmButton, divHeader, @@ -1785,4 +1786,5 @@ export function validateMtaVersionInUi(expectedVersion: string): void { .within(() => { cy.get("dd").should("contain.text", expectedVersion); }); + click(closeAbout); }