Skip to content

Commit 0e2c988

Browse files
committed
change timeout
1 parent 7a1e6f6 commit 0e2c988

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

tests/e2e/src/helpers/common-actions/ServerActions.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ export class ServerActions extends CommonDriverExtension {
1010
* // todo: investigate if it is better to put it before all tests?
1111
*/
1212
static async waitForServerInitialized(): Promise<void> {
13-
const TIMEOUT = 20_000
13+
const TIMEOUT = 30_000
1414
const start = Date.now()
1515

1616
while(Date.now() - start < TIMEOUT) {
1717
try {
18-
await CommonAPIRequests.sendGetRequest('/info')
19-
return
18+
const response = await CommonAPIRequests.sendGetRequest('/info')
19+
if (response.status === 200) {
20+
return
21+
}
2022
} catch (e) {
2123
// ignore
2224
}

tests/e2e/src/page-objects/components/BaseComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export class BaseComponent extends WebElement {
130130
*/
131131
async waitForElementVisibility(
132132
locator: Locator,
133-
timeout: number = 10000,
133+
timeout: number = 5000,
134134
stateOfDisplayed: boolean = true,
135135
): Promise<boolean> {
136136
let element: WebElement

0 commit comments

Comments
 (0)