@@ -24,6 +24,8 @@ class Autoupgrade extends ModuleConfiguration implements ModuleAutoupgradeMainPa
24
24
25
25
private readonly radioCardLoader : string ;
26
26
27
+ private readonly radioCardLoaderWrapper : string ;
28
+
27
29
private readonly checkRequirementBlock : string ;
28
30
29
31
private readonly checkRequirementsFailedAlerts : string ;
@@ -81,6 +83,7 @@ class Autoupgrade extends ModuleConfiguration implements ModuleAutoupgradeMainPa
81
83
// 1 : version choose step
82
84
this . newVersionRadioButton = '#online' ;
83
85
this . radioCardLoader = '.radio-card__loader-title' ;
86
+ this . radioCardLoaderWrapper = '.radio-card__loader-wrapper' ;
84
87
this . checkRequirementBlock = '.check-requirements' ;
85
88
this . checkRequirementsFailedAlerts = '.check-requirements--failed' ;
86
89
this . goToMaintenancePageLink = '#radio_card_online div.radio-card__check-requirements a[href*="AdminMaintenance"]' ;
@@ -144,11 +147,12 @@ class Autoupgrade extends ModuleConfiguration implements ModuleAutoupgradeMainPa
144
147
* @param page {Page} Browser tab
145
148
* @return {Promise<string }
146
149
*/
147
- async checkRequirements ( page : Page ) : Promise < string > {
150
+ async checkRequirements ( page : Page ) : Promise < boolean > {
148
151
await page . locator ( this . checkRequirementsButton ) . click ( ) ;
149
152
await this . waitForVisibleSelector ( page , this . radioCardLoader ) ;
153
+ await this . waitForHiddenSelector ( page , this . radioCardLoaderWrapper ) ;
150
154
151
- return this . getTextContent ( page , this . alertSuccessMessage ) ;
155
+ return this . elementNotVisible ( page , ` ${ this . nextStepButton } [disabled='true']` , 2000 ) ;
152
156
}
153
157
154
158
/**
0 commit comments