From 6068ce8584fce5f027daf6c7da772d7ad340a44a Mon Sep 17 00:00:00 2001 From: Shmaraiev Oleksandr Date: Fri, 13 Oct 2023 14:54:23 +0300 Subject: [PATCH] Fix return type error (#22602) --- tests/e2e/pageobjects/ide/CheCodeLocatorLoader.ts | 2 +- tests/e2e/specs/miscellaneous/WorkspaceIdleTimeout.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/pageobjects/ide/CheCodeLocatorLoader.ts b/tests/e2e/pageobjects/ide/CheCodeLocatorLoader.ts index 62af081e639..93b5477dbde 100644 --- a/tests/e2e/pageobjects/ide/CheCodeLocatorLoader.ts +++ b/tests/e2e/pageobjects/ide/CheCodeLocatorLoader.ts @@ -42,7 +42,7 @@ export class CheCodeLocatorLoader extends LocatorLoader { button: By.xpath('//div[@class="monaco-dialog-box"]//a[@class="monaco-button monaco-text-button"]') }, ScmView: { - actionConstructor: (title: string) => By.xpath(`.//a[@title='${title}']`) + actionConstructor: (title: string): By => By.xpath(`.//a[@title="${title}"]`) } }, extras: { diff --git a/tests/e2e/specs/miscellaneous/WorkspaceIdleTimeout.spec.ts b/tests/e2e/specs/miscellaneous/WorkspaceIdleTimeout.spec.ts index dd2d0f43932..5e5186684d5 100644 --- a/tests/e2e/specs/miscellaneous/WorkspaceIdleTimeout.spec.ts +++ b/tests/e2e/specs/miscellaneous/WorkspaceIdleTimeout.spec.ts @@ -51,7 +51,7 @@ suite('"Check workspace idle timeout" test', function (): void { `oc get checluster/${cheClusterName} -o "jsonpath={.spec.devEnvironments.secondsOfInactivityBeforeIdling}"` ) ); - + // set spec.devEnvironments.secondsOfInactivityBeforeIdling to 60 shellExecutor.executeCommand( `oc patch checluster ${cheClusterName} --type=merge -p '{"spec":{"devEnvironments":{"secondsOfInactivityBeforeIdling": 60}}}'`