File tree Expand file tree Collapse file tree 1 file changed +1
-31
lines changed
cypress/e2e/ui/Settings/Application-Settings Expand file tree Collapse file tree 1 file changed +1
-31
lines changed Original file line number Diff line number Diff line change @@ -534,36 +534,6 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
534534 } ) ;
535535
536536 afterEach ( ( ) => {
537- cy . url ( )
538- . then ( ( url ) => {
539- // Ensures navigation to Settings -> Application-Settings in the UI
540- if ( ! url . endsWith ( COMPONENT_ROUTE_URL ) ) {
541- cy . visit ( COMPONENT_ROUTE_URL ) ;
542- }
543- cy . accordion ( SETTINGS_OPTION ) ;
544- } )
545- . then ( ( ) => {
546- // Iterate and clean up any leftover schedules created during the test
547- cy . get ( 'div.panel-collapse.collapse.in li.list-group-item' ) . each (
548- ( item ) => {
549- const text = item . text ( ) . trim ( ) ;
550- if (
551- text === INITIAL_SCHEDULE_NAME ||
552- text === EDITED_SCHEDULE_NAME
553- ) {
554- if ( ! item . hasClass ( 'node-selected' ) ) {
555- cy . wrap ( item ) . click ( ) ;
556- }
557- cy . expect_browser_confirm_with_text ( {
558- confirmTriggerFn : ( ) =>
559- selectConfigMenu ( DELETE_SCHEDULE_CONFIG_OPTION ) ,
560- containsText : BROWSER_ALERT_DELETE_CONFIRM_TEXT ,
561- } ) ;
562- return false ; // exit iteration
563- }
564- return null ; // has no impact, just to get rid of eslint warning
565- }
566- ) ;
567- } ) ;
537+ cy . app ( 'clean' ) ;
568538 } ) ;
569539} ) ;
You can’t perform that action at this time.
0 commit comments