Fix another test (#3507)

This commit is contained in:
ikhomyn 2022-10-07 17:00:58 +02:00 committed by GitHub
parent aa3346c369
commit 9ec757cae1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 6 deletions

View file

@ -968,7 +968,6 @@ describe("Clients test", () => {
.checkTabExists(ClientsDetailsTab.Settings, true)
.checkTabExists(ClientsDetailsTab.Roles, true)
.checkTabExists(ClientsDetailsTab.Sessions, true)
.checkTabExists(ClientsDetailsTab.Authorization, true)
.checkTabExists(ClientsDetailsTab.Permissions, true)
.checkTabExists(ClientsDetailsTab.Advanced, true)
.checkNumberOfTabsIsEqual(5);

View file

@ -458,8 +458,6 @@ describe("User Federation LDAP tests", () => {
providersPage.ldapEditModeInput,
editModeUnsynced
);
masthead.closeAllAlertMessages();
});
it("Should update display name", () => {

View file

@ -383,10 +383,9 @@ describe("User creation", () => {
it("Delete credential", () => {
listingPage.goToItemDetails(itemIdWithCred);
credentialsPage.goToCredentialsTab();
masthead.closeAllAlertMessages();
cy.wait(2000);
listingPage.deleteItem(itemCredential);
modalUtils.checkModalTitle("Delete credentials?").confirmModal();
masthead.checkNotificationMessage(

View file

@ -21,7 +21,7 @@ export default class CredentialsPage {
private readonly labelField = "userLabelFld";
private readonly editConfirmationBtn = "editUserLabelAcceptBtn";
private readonly showDataDialogBtn = "showDataBtn";
private readonly closeDataDialogBtn = '[aria-label^="Close"]';
private readonly closeDataDialogBtn = '.pf-c-modal-box [aria-label^="Close"]';
goToCredentialsTab() {
cy.findByTestId(this.credentialsTab).click();