File tree Expand file tree Collapse file tree 1 file changed +28
-2
lines changed
eform-client/cypress/e2e/plugins/backend-configuration-pn/c Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -98,12 +98,38 @@ describe('Area rules type 1', () => {
9898 cy . wait ( 500 ) ;
9999
100100 cy . get ( '.cdk-row' ) . should ( 'have.length' , 1 ) ;
101- cy . get ( '.cdk-row .cdk-column-actions .deleteBtn.mat-warn' ) . first ( ) . click ( ) ;
101+ // Open the action menu
102+ cy . get ( '.task-actions' )
103+ . first ( )
104+ . find ( '#actionMenu' )
105+ . should ( 'be.visible' )
106+ . click ( { force : true } ) ;
107+
108+ // Click the Delete Task button inside the opened menu
109+ cy . get ( '.cdk-overlay-container' )
110+ . find ( '[id^=deleteTaskBtn]' )
111+ . should ( 'be.visible' )
112+ . first ( )
113+ . click ( { force : true } ) ;
114+
102115 cy . get ( '#taskWizardDeleteCancelBtn' ) . click ( ) ;
103116 cy . wait ( 500 ) ;
104117 cy . get ( '.cdk-row' ) . should ( 'have.length' , 1 ) ;
105118
106- cy . get ( '.cdk-row .cdk-column-actions .deleteBtn.mat-warn' ) . first ( ) . click ( ) ;
119+ // Open the action menu again
120+ cy . get ( '.task-actions' )
121+ . first ( )
122+ . find ( '#actionMenu' )
123+ . should ( 'be.visible' )
124+ . click ( { force : true } ) ;
125+
126+ // Click the Delete Task button inside the opened menu
127+ cy . get ( '.cdk-overlay-container' )
128+ . find ( '[id^=deleteTaskBtn]' )
129+ . should ( 'be.visible' )
130+ . first ( )
131+ . click ( { force : true } ) ;
132+
107133 cy . get ( '#taskWizardDeleteDeleteBtn' ) . click ( ) ;
108134 cy . wait ( 500 ) ;
109135 cy . get ( '.cdk-row' ) . should ( 'not.exist' ) ;
You can’t perform that action at this time.
0 commit comments