File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
cypress/e2e/ui/Settings/Application-Settings Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-undef */
2
2
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
-
15
3
function resetProtocolForServer ( ) {
16
4
// Select Diagnostics
17
5
cy . get ( '.panel #control_diagnostics_accord .panel-title a' )
@@ -161,12 +149,7 @@ function saveButtonValidation() {
161
149
162
150
describe ( 'Automate Collect logs Edit form operations' , ( ) => {
163
151
beforeEach ( ( ) => {
164
- cy . intercept ( 'GET' , '/api/notifications' ) . as ( 'getNotifications' ) ;
165
152
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
- } ) ;
170
153
// Navigate to Application settings and Select Diagnostics
171
154
cy . menu ( 'Settings' , 'Application Settings' ) ;
172
155
cy . get ( '.panel #control_diagnostics_accord .panel-title a' )
You can’t perform that action at this time.
0 commit comments