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 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-
153function resetProtocolForServer ( ) {
164 // Select Diagnostics
175 cy . get ( '.panel #control_diagnostics_accord .panel-title a' )
@@ -161,12 +149,7 @@ function saveButtonValidation() {
161149
162150describe ( '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' )
You can’t perform that action at this time.
0 commit comments