Skip to content

Commit

Permalink
Fixed upgrade tests by click(closeAbout)
Browse files Browse the repository at this point in the history
Signed-off-by: Maayan Hadasi <mguetta@redhat.com>
  • Loading branch information
mguetta1 committed Jun 19, 2024
1 parent 99560cd commit 0d2caf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cypress/e2e/views/common.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'";
2 changes: 2 additions & 0 deletions cypress/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ import {
import { actionButton, date, createEntitiesCheckbox } from "../e2e/views/applicationinventory.view";
import {
aboutButton,
closeAbout,
closeSuccessNotification,
confirmButton,
divHeader,
Expand Down Expand Up @@ -1785,4 +1786,5 @@ export function validateMtaVersionInUi(expectedVersion: string): void {
.within(() => {
cy.get("dd").should("contain.text", expectedVersion);
});
click(closeAbout);
}

0 comments on commit 0d2caf9

Please sign in to comment.