File tree 1 file changed +10
-6
lines changed
web/server/vue-cli/e2e/specs
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -666,12 +666,16 @@ module.exports = {
666
666
667
667
reportPage . expect . element ( "@overlay" ) . to . be . visible . before ( 5000 ) ;
668
668
669
- // removeCleanupPlanDialog.click("@confirmBtn"); // trying xpath instead:
670
- browser
671
- . useXpath ( )
672
- . waitForElementVisible ( "/html/body/div/div[25]/div/div/div[3]/button[2]" , 5000 )
673
- . click ( "/html/body/div/div[25]/div/div/div[3]/button[2]" )
674
- . useCss ( ) ;
669
+ // Remove overlay as it blocks the dialog
670
+ browser . execute ( function ( ) {
671
+ let overlay = document . querySelector ( ".v-overlay" ) ;
672
+ if ( overlay ) {
673
+ overlay . remove ( ) ;
674
+ }
675
+ } ) ;
676
+ browser . waitForElementNotPresent ( ".v-overlay__scrim" , 5000 ) ;
677
+
678
+ removeCleanupPlanDialog . click ( "@confirmBtn" ) ;
675
679
676
680
dialogSection
677
681
. waitForElementVisible ( "@emptyTable" )
You can’t perform that action at this time.
0 commit comments