Skip to content

Commit 711e3e1

Browse files
Removed notification alert suppression logic
1 parent ef8fb4c commit 711e3e1

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

cypress/e2e/ui/Settings/Application-Settings/edit_collect_logs.cy.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
/* eslint-disable no-undef */
22

3-
function disableNotificationsIfVisible() {
4-
// Look for notification popups and disable them if present
5-
cy.get('body').then(($body) => {
6-
const $link = $body.find(
7-
'.miq-toast-wrapper .row .alert a:contains("Disable notifications")'
8-
);
9-
if ($link.length && $link.is(':visible')) {
10-
cy.wrap($link).click({ force: true });
11-
}
12-
});
13-
}
14-
153
function resetProtocolForServer() {
164
// Select Diagnostics
175
cy.get('.panel #control_diagnostics_accord .panel-title a')
@@ -161,12 +149,7 @@ function saveButtonValidation() {
161149

162150
describe('Automate Collect logs Edit form operations', () => {
163151
beforeEach(() => {
164-
cy.intercept('GET', '/api/notifications').as('getNotifications');
165152
cy.login();
166-
// After logging in, ensure the notification banner is disabled to avoid blocking other elements
167-
cy.wait('@getNotifications').then(() => {
168-
disableNotificationsIfVisible();
169-
});
170153
// Navigate to Application settings and Select Diagnostics
171154
cy.menu('Settings', 'Application Settings');
172155
cy.get('.panel #control_diagnostics_accord .panel-title a')

0 commit comments

Comments
 (0)