From 2d04048a2e8bec0dc1a2da69ce6afd5b8ee2ef89 Mon Sep 17 00:00:00 2001 From: Maayan Hadasi Date: Wed, 19 Jun 2024 12:06:05 +0300 Subject: [PATCH] Fixed upgrade tests by click(closeAbout) Signed-off-by: Maayan Hadasi --- cypress/e2e/views/common.view.ts | 1 + cypress/utils/utils.ts | 2 ++ 2 files changed, 3 insertions(+) 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); }