File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,15 @@ export class ServerActions extends CommonDriverExtension {
10
10
* // todo: investigate if it is better to put it before all tests?
11
11
*/
12
12
static async waitForServerInitialized ( ) : Promise < void > {
13
- const TIMEOUT = 20_000
13
+ const TIMEOUT = 30_000
14
14
const start = Date . now ( )
15
15
16
16
while ( Date . now ( ) - start < TIMEOUT ) {
17
17
try {
18
- await CommonAPIRequests . sendGetRequest ( '/info' )
19
- return
18
+ const response = await CommonAPIRequests . sendGetRequest ( '/info' )
19
+ if ( response . status === 200 ) {
20
+ return
21
+ }
20
22
} catch ( e ) {
21
23
// ignore
22
24
}
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ export class BaseComponent extends WebElement {
130
130
*/
131
131
async waitForElementVisibility (
132
132
locator : Locator ,
133
- timeout : number = 10000 ,
133
+ timeout : number = 5000 ,
134
134
stateOfDisplayed : boolean = true ,
135
135
) : Promise < boolean > {
136
136
let element : WebElement
You can’t perform that action at this time.
0 commit comments